mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-22 19:00:35 +00:00
Starting with Kubernetes 1.24, secrets are no longer automatically created for SAs. This adds secrets to the relevant templates; creating secrets in this way is supported in all Kubernetes versions. This also enables testing with 1.24 in CI, to make sure that the fix actually works. Signed-off-by: Stephen Kitt <skitt@redhat.com>
19 lines
672 B
YAML
19 lines
672 B
YAML
{{- if .Values.serviceAccounts.client.create }}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ template "submariner-k8s-broker.clientServiceAccountName" . }}
|
|
labels:
|
|
heritage: {{ .Release.Service | quote }}
|
|
release: {{ .Release.Name | quote }}
|
|
chart: {{ template "submariner-k8s-broker.chart" . }}
|
|
app: {{ template "submariner-k8s-broker.name" . }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ template "submariner-k8s-broker.clientServiceAccountName" . }}-token
|
|
annotations:
|
|
kubernetes.io/service-account.name: {{ template "submariner-k8s-broker.clientServiceAccountName" . }}
|
|
type: kubernetes.io/service-account-token
|
|
{{- end }} |