Skip to content

Commit

Permalink
tk fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mriedmann committed Nov 28, 2023
1 parent 31e50bf commit 47d2de6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions infrastructure/nginx-ingress/nginx-ingress.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local k = (import '../../prelude.libsonnet');
// https://github.com/google/jsonnet/issues/234#issuecomment-275489855
local join(a) =
local notNull(i) = i != null;
local maybeFlatten(acc, i) = if std.type(i) == "array" then acc + i else acc + [i];
local maybeFlatten(acc, i) = if std.type(i) == 'array' then acc + i else acc + [i];
std.foldl(maybeFlatten, std.filter(notNull, a), []),

'service-ingress-nginx-controller'+: if cfg.type == 'external' then {
Expand All @@ -48,9 +48,10 @@ local k = (import '../../prelude.libsonnet');
spec+: {
containers: [
super.containers[0] {
args: join([super.args,
'--watch-ingress-without-class',
if cfg.defaultTlsCertificate != null then ['--default-ssl-certificate='+cfg.defaultTlsCertificate]
args: join([
super.args,
'--watch-ingress-without-class',
if cfg.defaultTlsCertificate != null then ['--default-ssl-certificate=' + cfg.defaultTlsCertificate],
]),
},
] + super.containers[1:],
Expand Down

0 comments on commit 47d2de6

Please sign in to comment.