cmd/k8s-operator: remove deprecated TS_EXPERIMENTAL_KUBE_API_EVENTS (#18893)
Remove the TS_EXPERIMENTAL_KUBE_API_EVENTS env var from the operator and its helm chart. This has already been marked as deprecated, and has been scheduled to be removed in release 1.96. Add a check in helm chart to fail if the removed variable is set to true, prompting users to move to ACLs instead. Fixes: #18875 Signed-off-by: Becky Pauley <becky@tailscale.com>
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
{{/*
|
||||
Fail on presence of removed TS_EXPERIMENTAL_KUBE_API_EVENTS extraEnv var.
|
||||
*/}}
|
||||
{{- $removed := "TS_EXPERIMENTAL_KUBE_API_EVENTS" -}}
|
||||
{{- range .Values.operatorConfig.extraEnv }}
|
||||
{{- if and .name (eq .name $removed) (eq .value "true") -}}
|
||||
{{- fail (printf "ERROR: operatorConfig.extraEnv.%s has been removed. Use ACLs instead." $removed) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
You have successfully installed the Tailscale Kubernetes Operator!
|
||||
|
||||
Once connected, the operator should appear as a device within the Tailscale admin console:
|
||||
|
||||
Reference in New Issue
Block a user