Skip to content

Commit 878ee14

Browse files
authored
refactor(oauth2-proxy): use core.v1.envFromSource (#325)
1 parent 13b8e11 commit 878ee14

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

oauth2-proxy/oauth2-proxy.libsonnet

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ k {
2525
}),
2626

2727
local container = $.core.v1.container,
28-
local envFrom = container.envFromType,
28+
local envFrom = $.core.v1.envFromSource,
2929

3030
oauth2_proxy_container::
3131
container.new('oauth2-proxy', $._images.oauth2_proxy) +
@@ -38,8 +38,7 @@ k {
3838
'-pass-basic-auth=%s' % $._config.oauth_pass_basic_auth,
3939
]) +
4040
container.withEnvFrom(
41-
envFrom.new() +
42-
envFrom.mixin.secretRef.withName('oauth2-proxy'),
41+
envFrom.secretRef.withName('oauth2-proxy'),
4342
),
4443

4544
local deployment = $.apps.v1.deployment,

0 commit comments

Comments
 (0)