Skip to content

Commit 62d64c0

Browse files
authored
cmd/k8s-operator: fix type comparison in apiserver proxy template (tailscale#17981)
ArgoCD sends boolean values but the template expects strings, causing "incompatible types for comparison" errors. Wrap values with toString so both work. Fixes tailscale#17158 Signed-off-by: Raj Singh <[email protected]>
1 parent e1dd922 commit 62d64c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/k8s-operator/deploy/chart/templates/apiserverproxy-rbac.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
# If old setting used, enable both old (operator) and new (ProxyGroup) workflows.
55
# If new setting used, enable only new workflow.
6-
{{ if or (eq .Values.apiServerProxyConfig.mode "true")
7-
(eq .Values.apiServerProxyConfig.allowImpersonation "true") }}
6+
{{ if or (eq (toString .Values.apiServerProxyConfig.mode) "true")
7+
(eq (toString .Values.apiServerProxyConfig.allowImpersonation) "true") }}
88
apiVersion: v1
99
kind: ServiceAccount
1010
metadata:
@@ -25,7 +25,7 @@ kind: ClusterRoleBinding
2525
metadata:
2626
name: tailscale-auth-proxy
2727
subjects:
28-
{{- if eq .Values.apiServerProxyConfig.mode "true" }}
28+
{{- if eq (toString .Values.apiServerProxyConfig.mode) "true" }}
2929
- kind: ServiceAccount
3030
name: operator
3131
namespace: {{ .Release.Namespace }}

0 commit comments

Comments
 (0)