Skip to content

Commit

Permalink
[HELM] Added option to specify image pull secret name
Browse files Browse the repository at this point in the history
  • Loading branch information
hylkevds committed Jun 18, 2024
1 parent 67246f2 commit 62bcd52
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 2 deletions.
9 changes: 7 additions & 2 deletions helm/frost-server/README.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions helm/frost-server/templates/bus-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ spec:
app: {{ include "frost-server.name" . }}
component: {{ $tier }}
spec:
{{- if .Values.frost.bus.image.imagePullSecret }}
imagePullSecrets:
- name: {{ .Values.frost.bus.image.imagePullSecret }}
{{- end}}
containers:
- name: {{ $fullName }}
image: "{{ .Values.frost.bus.image.registry }}/{{ .Values.frost.bus.image.repository }}:{{ .Values.frost.bus.image.tag }}"
Expand Down
4 changes: 4 additions & 0 deletions helm/frost-server/templates/db-backup-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ spec:
spec:
securityContext:
{{- toYaml .Values.frost.backup.securityContext | nindent 10 }}
{{- if .Values.frost.backup.image.imagePullSecret }}
imagePullSecrets:
- name: {{ .Values.frost.backup.image.imagePullSecret }}
{{- end}}
containers:
- name: {{ $fullName }}
image: "{{ .Values.frost.backup.image.registry }}/{{ .Values.frost.backup.image.repository }}:{{ .Values.frost.backup.image.tag }}"
Expand Down
4 changes: 4 additions & 0 deletions helm/frost-server/templates/db-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.frost.db.securityContext | nindent 10 }}
{{- if .Values.frost.db.image.imagePullSecret }}
imagePullSecrets:
- name: {{ .Values.frost.db.image.imagePullSecret }}
{{- end}}
containers:
- name: {{ $fullName }}
image: "{{ .Values.frost.db.image.registry }}/{{ .Values.frost.db.image.repository }}:{{ .Values.frost.db.image.tag }}"
Expand Down
4 changes: 4 additions & 0 deletions helm/frost-server/templates/http-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ spec:
app: {{ include "frost-server.name" . }}
component: {{ $tier }}
spec:
{{- if .Values.frost.http.image.imagePullSecret }}
imagePullSecrets:
- name: {{ .Values.frost.http.image.imagePullSecret }}
{{- end}}
containers:
- name: {{ $fullName }}
image: "{{ .Values.frost.http.image.registry }}/{{ .Values.frost.http.image.repository }}:{{ .Values.frost.http.image.tag }}"
Expand Down
4 changes: 4 additions & 0 deletions helm/frost-server/templates/mqtt-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ spec:
app: {{ include "frost-server.name" . }}
component: {{ $tier }}
spec:
{{- if .Values.frost.mqtt.image.imagePullSecret }}
imagePullSecrets:
- name: {{ .Values.frost.mqtt.image.imagePullSecret }}
{{- end}}
containers:
- name: {{ $fullName }}
image: "{{ .Values.frost.mqtt.image.registry }}/{{ .Values.frost.mqtt.image.repository }}:{{ .Values.frost.mqtt.image.tag }}"
Expand Down
5 changes: 5 additions & 0 deletions helm/frost-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ frost:
repository: fraunhoferiosb/frost-server-http
tag: latest
pullPolicy: IfNotPresent
imagePullSecret:
# FROST-Server HTTP deployment settings
replicas: 1
ports:
Expand Down Expand Up @@ -188,6 +189,7 @@ frost:
repository: fraunhoferiosb/frost-server-mqtt
tag: latest
pullPolicy: IfNotPresent
imagePullSecret:
# FROST-Server MQTT deployment settings
enabled: true
annotations: {}
Expand Down Expand Up @@ -264,6 +266,7 @@ frost:
repository: postgis/postgis
tag: 14-3.2-alpine
pullPolicy: IfNotPresent
imagePullSecret:
# FROST-Server Database deployment settings
ports:
postgresql:
Expand Down Expand Up @@ -307,6 +310,7 @@ frost:
repository: kartoza/pg-backup
tag: 14-3.2
pullPolicy: IfNotPresent
imagePullSecret:

removeBefore: 14

Expand All @@ -332,6 +336,7 @@ frost:
repository: eclipse-mosquitto
tag: 1.4.12
pullPolicy: IfNotPresent
imagePullSecret:
# FROST-Server Messages Bus deployment settings
ports:
bus:
Expand Down

0 comments on commit 62bcd52

Please sign in to comment.