Skip to content

Commit

Permalink
feat: add support for setting different secrets for environment varia…
Browse files Browse the repository at this point in the history
…bles. (#108)

* add support for setting different secrets for environment variables.

add support of setting specific environment variables

* Fix issue with multiple items into single

* Update only set files in envFrom
  • Loading branch information
Bart-vanDongen committed Aug 2, 2024
1 parent 16e3557 commit b7623ab
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
6 changes: 4 additions & 2 deletions charts/terrakube/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
envFrom:
- secretRef:
name: terrakube-api-secrets
{{- range .Values.api.secrets }}
- secretRef:
name: {{ .name }}
{{- end }}
startupProbe:
httpGet:
path: /actuator/health
Expand Down
6 changes: 4 additions & 2 deletions charts/terrakube/templates/deployment-executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
envFrom:
- secretRef:
name: terrakube-executor-secrets
{{- range .Values.executor.secrets }}
- secretRef:
name: {{ .name }}
{{- end }}
startupProbe:
httpGet:
path: /actuator/health
Expand Down
6 changes: 4 additions & 2 deletions charts/terrakube/templates/deployment-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
envFrom:
- secretRef:
name: terrakube-registry-secrets
{{- range .Values.registry.secrets }}
- secretRef:
name: {{ .name }}
{{- end }}
startupProbe:
httpGet:
path: /actuator/health
Expand Down
6 changes: 6 additions & 0 deletions charts/terrakube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ api:
replicaCount: "1"
serviceType: "ClusterIP"
serviceAccountName: ""
secrets:
- terrakube-api-secrets
resources: {}
podLabels: {}
defaultDatabase: true
Expand Down Expand Up @@ -219,6 +221,8 @@ executor:
replicaCount: "1"
serviceType: "ClusterIP"
serviceAccountName: ""
secrets:
- terrakube-executor-secrets
resources: {}
podLabels: {}
apiServiceUrl: "http://terrakube-api-service:8080"
Expand All @@ -237,6 +241,8 @@ registry:
replicaCount: "1"
serviceType: "ClusterIP"
serviceAccountName: ""
secrets:
- terrakube-registry-secrets
resources: {}
podLabels: {}
securityContext: {}
Expand Down

0 comments on commit b7623ab

Please sign in to comment.