add kurise-rollout imagepullsecrets support

This commit is contained in:
liming.jlm 2023-01-03 18:09:49 +08:00
parent 1ca7afe6b4
commit 049fa13037
2 changed files with 10 additions and 2 deletions

View File

@ -1,9 +1,11 @@
{{- if .Values.installation.createNamespace }}
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
labels: labels:
control-plane: {{ .Values.rollout.fullname }} control-plane: controller-manager
name: {{ .Values.installation.namespace }} name: {{ .Values.installation.namespace }}
{{- end }}
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
@ -40,6 +42,10 @@ spec:
labels: labels:
control-plane: {{ .Values.rollout.fullname }} control-plane: {{ .Values.rollout.fullname }}
spec: spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ .Values.rollout.fullname }} serviceAccountName: {{ .Values.rollout.fullname }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}

View File

@ -5,6 +5,7 @@
# values for rollout installation # values for rollout installation
installation: installation:
namespace: kruise-rollout namespace: kruise-rollout
createNamespace: true
rollout: rollout:
fullname: kruise-rollout-controller-manager fullname: kruise-rollout-controller-manager
@ -23,7 +24,8 @@ image:
pullPolicy: Always pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion. # Overrides the image tag whose default is the chart appVersion.
tag: v0.3.0-rc.0 tag: v0.3.0-rc.0
imagePullSecrets:
# - name: for-your-secret-name
serviceAccount: serviceAccount:
# Annotations to add to the service account # Annotations to add to the service account
annotations: {} annotations: {}