Skip to content

Commit

Permalink
feat: command and args modifications (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-elliott authored Nov 25, 2024
1 parent eaecfff commit 66e31d4
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/authelia/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: authelia
version: 0.9.9
version: 0.9.10
kubeVersion: ">= 1.13.0-0"
description: Authelia is a Single Sign-On Multi-Factor portal for web apps
type: application
Expand Down
23 changes: 22 additions & 1 deletion charts/authelia/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,28 @@ spec:
- name: authelia
image: {{ include "authelia.image" . }}
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }}
command: ["authelia"]
{{- $command := list "authelia" }}
{{- if .Values.pod.command }}
{{- if kindIs "slice" .Values.pod.command }}{{ $command = .Values.pod.command }}
{{- else if kindIs "string" .Values.pod.command }}{{ $command = list .Values.pod.command }}
{{- end }}
{{- end }}
command:
{{- range $command }}
- {{ . | squote }}
{{- end }}
{{- $args := list }}
{{- if .Values.pod.args }}
{{- if kindIs "slice" .Values.pod.args }}{{ $args = .Values.pod.args }}
{{- else if kindIs "string" .Values.pod.args }}{{ $args = list .Values.pod.args }}
{{- end }}
{{- end }}
{{- if not (eq 0 (len $args)) }}
args:
{{- range $args }}
- {{ . | squote }}
{{- end }}
{{- end }}
{{- with $resources :=.Values.pod.resources }}
resources: {{ toYaml $resources | nindent 10 }}
{{- end }}
Expand Down
6 changes: 6 additions & 0 deletions charts/authelia/values.local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ pod:
# labels:
# myLabel: 'myValue'

# Modifies the command. Useful for debugging.
command: []

# Modifies the args for the command. Useful for debugging.
args: []

replicas: 1
revisionHistoryLimit: 5
priorityClassName: ''
Expand Down
6 changes: 6 additions & 0 deletions charts/authelia/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ pod:
# labels:
# myLabel: 'myValue'

# Modifies the command. Useful for debugging.
command: []

# Modifies the args for the command. Useful for debugging.
args: []

replicas: 1
revisionHistoryLimit: 5
priorityClassName: ''
Expand Down

0 comments on commit 66e31d4

Please sign in to comment.