Skip to content

Commit

Permalink
Merge pull request #28 from dominikkaminski/feature/imagePullSecrets
Browse files Browse the repository at this point in the history
HELM-57 Add imagePullSecrets to xwiki
  • Loading branch information
gsautner committed Jan 11, 2024
2 parents 09687d0 + 2f6b736 commit 7e3e27c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
8 changes: 7 additions & 1 deletion charts/xwiki/templates/xwiki.yaml
Expand Up @@ -74,7 +74,7 @@ spec:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
{{- if (and .Values.externalDB.customKeyRef .Values.externalDB.customKeyRef.enabled ) }}
{{- if (and .Values.externalDB.customKeyRef .Values.externalDB.customKeyRef.enabled ) }}
name: {{ .Values.externalDB.customKeyRef.name | quote }}
key: {{ .Values.externalDB.customKeyRef.key | quote }}
{{- else if .Values.mysql.enabled }}
Expand Down Expand Up @@ -178,6 +178,12 @@ spec:
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.imagePullSecrets }}
- name: "{{ . }}"
{{- end }}
{{- end }}
volumes:
- name: configmaps
Expand Down
15 changes: 12 additions & 3 deletions charts/xwiki/values.yaml
Expand Up @@ -310,6 +310,15 @@ affinity: {}
# - e2e-az1
# - e2e-az2

# Credentials to fetch images from private registry.
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
#
# imagePullSecrets:
# - "docker-registry"
#
imagePullSecrets: []


# Custom configuration files for xwiki
customConfigs:
# Properties key that exists, replace in line is done with value here defined.
Expand Down Expand Up @@ -395,7 +404,7 @@ probes:
initialDelaySeconds: 30
timeoutSeconds: 3
periodSeconds: 30
# 5 minutes
# 5 minutes
failureThreshold: 10
successThreshold: 1
readiness:
Expand All @@ -406,7 +415,7 @@ probes:
initialDelaySeconds: 30
timeoutSeconds: 3
periodSeconds: 30
# 5 minutes
# 5 minutes
failureThreshold: 10
successThreshold: 1

Expand All @@ -427,4 +436,4 @@ prometheus:
rules:
- pattern: ".*"
podmonitor:
enabled: true
enabled: true

0 comments on commit 7e3e27c

Please sign in to comment.