Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions charts/default/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,5 @@ concerns.
|-----|---------|-------------|
| `service.type` | `ClusterIP` | Service type. |
| `service.port` | `80` | Service port (also the default `HTTPRoute` backend port). |
| `serviceAccount.name` | `''` | Existing ServiceAccount the pod runs as, e.g. one bound to an Azure Workload Identity. Empty renders no `serviceAccountName`. The chart does not create it. |
| `podLabels` | `{}` | Extra labels on the pod template only, never the selector. Values render as strings, e.g. `--set 'podLabels.azure\.workload\.identity/use=true'`. `app`, `draft` and `release` are set by the chart and can't be overridden. |
9 changes: 9 additions & 0 deletions charts/default/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,18 @@ spec:
app: {{ template "project.name" . }}
draft: {{ .Values.draft | default "draft-app" }}
release: {{ .Release.Name }}
{{- range $key, $value := .Values.podLabels }}
{{- if has $key (list "app" "draft" "release") }}
{{- fail (printf "podLabels.%s is set by the chart and can't be overridden" $key) }}
{{- end }}
{{ $key }}: {{ $value | quote }}
{{- end }}
annotations:
buildID: {{ .Values.buildID | default "" | quote }}
spec:
{{- with .Values.serviceAccount.name }}
serviceAccountName: {{ . | quote }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- range .Values.hostAliases }}
Expand Down
11 changes: 11 additions & 0 deletions charts/default/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,17 @@ tolerations: []

affinity: {}

# Existing ServiceAccount for the pod to run as, e.g. one bound to an Azure Workload Identity.
# Empty (default) renders no serviceAccountName, so the namespace's default ServiceAccount is used.
# The chart does not create the ServiceAccount.
serviceAccount:
name: ''

# Extra labels on the pod template only, never the selector. Values always render as strings.
# app, draft and release are set by the chart and can't be overridden.
# e.g. --set 'podLabels.azure\.workload\.identity/use=true'
podLabels: {}

# db is the connection string for the database
db: ""

Expand Down
Loading