Skip to content

Commit

Permalink
Merge pull request #182 from catpineapple/operator_deploy_by_secret
Browse files Browse the repository at this point in the history
helm operator deploy by imagePullSecret
  • Loading branch information
intelligentfu authored Jun 25, 2024
2 parents 9cecba4 + e01c9c7 commit bdfea3f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/operator/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions helm-charts/doris-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion helm-charts/doris-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bdfea3f

Please sign in to comment.