Skip to content

Commit

Permalink
refactor(oauth2-proxy): use core.v1.envFromSource (grafana#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duologic authored Aug 13, 2020
1 parent 13b8e11 commit 878ee14
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions oauth2-proxy/oauth2-proxy.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ k {
}),

local container = $.core.v1.container,
local envFrom = container.envFromType,
local envFrom = $.core.v1.envFromSource,

oauth2_proxy_container::
container.new('oauth2-proxy', $._images.oauth2_proxy) +
Expand All @@ -38,8 +38,7 @@ k {
'-pass-basic-auth=%s' % $._config.oauth_pass_basic_auth,
]) +
container.withEnvFrom(
envFrom.new() +
envFrom.mixin.secretRef.withName('oauth2-proxy'),
envFrom.secretRef.withName('oauth2-proxy'),
),

local deployment = $.apps.v1.deployment,
Expand Down

0 comments on commit 878ee14

Please sign in to comment.