diff --git a/config/operator/operator.yaml b/config/operator/operator.yaml index 866ef133..5834f9ef 100644 --- a/config/operator/operator.yaml +++ b/config/operator/operator.yaml @@ -473,6 +473,8 @@ spec: - mountPath: /tmp/k8s-webhook-server/serving-certs name: cert readOnly: true + # imagePullSecrets: + # - name: my-registry-key volumes: - name: cert secret: diff --git a/helm-charts/doris-operator/templates/deployment.yaml b/helm-charts/doris-operator/templates/deployment.yaml index 0309f438..a7a06f45 100644 --- a/helm-charts/doris-operator/templates/deployment.yaml +++ b/helm-charts/doris-operator/templates/deployment.yaml @@ -107,6 +107,10 @@ spec: - mountPath: /tmp/k8s-webhook-server/serving-certs name: cert readOnly: true + {{- if .Values.dorisOperator.image.imagePullSecret }} + imagePullSecrets: + - name: {{ print .Values.dorisOperator.image.imagePullSecret}} + {{- end }} volumes: - name: cert secret: diff --git a/helm-charts/doris-operator/values.yaml b/helm-charts/doris-operator/values.yaml index e743f95d..b8c30dcf 100644 --- a/helm-charts/doris-operator/values.yaml +++ b/helm-charts/doris-operator/values.yaml @@ -8,7 +8,9 @@ dorisOperator: repository: selectdb/doris.k8s-operator tag: 1.6.0 imagePullPolicy: "" - + # ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this deployment. + # If specified, these secrets will be passed to individual puller implementations for them to use. + # imagePullSecret: "my-registry-key" # Map of nodeSelectors to match when scheduling pods on nodes nodeSelector: {} # kubernetes.io/arch: amd64