Skip to content

Commit 7930a19

Browse files
authored
operator rbac template bug fix (#479)
* bug fix * changelog * generated-code
1 parent 8696304 commit 7930a19

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
changelog:
2+
- type: FIX
3+
issueLink: https://github.com/solo-io/gloo-mesh-enterprise/issues/10521
4+
description: >
5+
Fixes whitespace issue in operator rbac template.
6+
resolvesIssue: false

codegen/templates/chart/operator-rbac.yamltmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Expressions evaluating SKv2 Config use [[ "[[" ]] and [[ "]]" ]]
1111

1212
{{- $[[ $operatorVar ]] := [[ (opVar $operator)]] }}
1313

14-
[[- $operatorEnabledCondition := printf "\n{{- if $%s.enabled -}}\n" $operatorVar -]]
14+
[[- $operatorEnabledCondition := printf "\n{{- if $%s.enabled }}\n" $operatorVar -]]
1515
[[- if (gt (len $operator.CustomEnableCondition) 0) -]]
1616
[[- $operatorEnabledCondition = printf "\n{{- if %s }}\n" $operator.CustomEnableCondition -]]
1717
[[- end -]]

codegen/test/chart/conditional-sidecar/templates/rbac.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Rbac manifests for gloo-mgmt-server
55

66
{{- $glooMgmtServer := $.Values.glooMgmtServer }}
7-
{{- if $glooMgmtServer.enabled -}}
7+
{{- if $glooMgmtServer.enabled }}
88

99
---
1010

0 commit comments

Comments
 (0)