mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-27 20:16:28 -08:00
The Helm chart hardcoded the operator's Deployment, ServiceAccount, Role, and RoleBinding names to "operator". Adds a standard _helpers.tpl with name/fullname template functions and use them for the operator's resources, including the oauth Secret and the cluster-scoped ClusterRole/ClusterRoleBinding. When neither nameOverride nor fullnameOverride is set, the fullname resolves to the historical hardcoded names rather than the release name, so existing installations upgrade with no resource renames; rendering with default values is byte-identical to before. Fixes tailscale/tailscale#18232 Signed-off-by: chaosinthecrd <[email protected]>
14 lines
418 B
YAML
14 lines
418 B
YAML
# Copyright (c) Tailscale Inc & contributors
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
{{ if and .Values.oauth .Values.oauth.clientId (not .Values.oauth.audience) -}}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "tailscale-operator.fullname" . }}-oauth
|
|
namespace: {{ .Release.Namespace }}
|
|
stringData:
|
|
client_id: {{ .Values.oauth.clientId }}
|
|
client_secret: {{ .Values.oauth.clientSecret }}
|
|
{{- end -}}
|