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
kind: Namespace
metadata:
labels:
control-plane: {{ .Values.rollout.fullname }}
control-plane: controller-manager
name: {{ .Values.installation.namespace }}
{{- end }}
---
apiVersion: v1
kind: Service
@ -40,6 +42,10 @@ spec:
labels:
control-plane: {{ .Values.rollout.fullname }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ .Values.rollout.fullname }}
containers:
- name: {{ .Chart.Name }}

View File

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