mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-23 00:56:20 +00:00
cmd/k8s-operator: fix type comparison in apiserver proxy template (#17981)
ArgoCD sends boolean values but the template expects strings, causing "incompatible types for comparison" errors. Wrap values with toString so both work. Fixes #17158 Signed-off-by: Raj Singh <raj@tailscale.com>
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
# If old setting used, enable both old (operator) and new (ProxyGroup) workflows.
|
# If old setting used, enable both old (operator) and new (ProxyGroup) workflows.
|
||||||
# If new setting used, enable only new workflow.
|
# If new setting used, enable only new workflow.
|
||||||
{{ if or (eq .Values.apiServerProxyConfig.mode "true")
|
{{ if or (eq (toString .Values.apiServerProxyConfig.mode) "true")
|
||||||
(eq .Values.apiServerProxyConfig.allowImpersonation "true") }}
|
(eq (toString .Values.apiServerProxyConfig.allowImpersonation) "true") }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
@@ -25,7 +25,7 @@ kind: ClusterRoleBinding
|
|||||||
metadata:
|
metadata:
|
||||||
name: tailscale-auth-proxy
|
name: tailscale-auth-proxy
|
||||||
subjects:
|
subjects:
|
||||||
{{- if eq .Values.apiServerProxyConfig.mode "true" }}
|
{{- if eq (toString .Values.apiServerProxyConfig.mode) "true" }}
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: operator
|
name: operator
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
|
|||||||
Reference in New Issue
Block a user