Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.9.0-beta3 #230

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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: 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.0-beta2
version: 0.9.0-beta3
kubeVersion: ">= 1.13.0-0"
description: Authelia is a Single Sign-On Multi-Factor portal for web apps
type: application
Expand Down
1 change: 1 addition & 0 deletions charts/authelia/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ This documents the parameters in the chart values. As the chart values are quite
| pod.kind | Configures the kind of pod: StatefulSet, Deployment, DaemonSet | DaemonSet |
| pod.annotations | Adds annotations specifically to the pod | {} |
| pod.labels | Adds labels specifically to the pod | {} |
| pod.initContainers | Adds additional init containers specifically to the pod | [] |
| pod.replicas | Configures the replicas for Deployment's/statefulSet's | 1 |
| pod.revisionHistoryLimit | Configures the revisionHistoryLimit | 1 |
| pod.strategy.type | Configures the pods strategy/updateStrategy type | RollingUpdate |
Expand Down
15 changes: 14 additions & 1 deletion charts/authelia/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Returns true if pod is stateful.
{{- true -}}
{{- else if and (not (and (.Values.configMap.storage.mysql) (.Values.configMap.storage.mysql.enabled))) (not (and (.Values.configMap.storage.postgres) (.Values.configMap.storage.postgres.enabled))) -}}
{{- true -}}
{{- else if not (and (.Values.configMap.authentication_backend) (.Values.configMap.authentication_backend.ldap.enabled)) -}}
{{- else if or (not .Values.configMap.authentication_backend) (not .Values.configMap.authentication_backend.ldap.enabled) (and .Values.configMap.authentication_backend.file.enabled (not .Values.configMap.authentication_backend.file.watch)) -}}
{{- true -}}
{{- end -}}
{{- end -}}
Expand Down Expand Up @@ -476,6 +476,19 @@ Renders a probe
{{- end -}}
{{- end -}}

{{/*
Renders a value that contains template.
Usage:
{{ include "authelia.snippets.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
*/}}
{{- define "authelia.snippets.render" -}}
{{- if typeIs "string" .value }}
{{- tpl .value .context }}
{{- else }}
{{- tpl (.value | toYaml) .context }}
{{- end }}
{{- end -}}

{{/*
Returns the service port.
*/}}
Expand Down
3 changes: 3 additions & 0 deletions charts/authelia/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ spec:
serviceAccountName: {{ default (include "authelia.name" .) .Values.rbac.serviceAccountName }}
{{- end }}
enableServiceLinks: {{ .Values.pod.enableServiceLinks | default false }}
{{- if .Values.pod.initContainers }}
initContainers: {{- include "authelia.snippets.render" (dict "value" .Values.pod.initContainers "context" $) | nindent 8 }}
{{- end }}
containers:
- name: authelia
image: {{ include "authelia.image" . }}
Expand Down
8 changes: 7 additions & 1 deletion charts/authelia/values.local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ ingress:
tls:
enabled: true
secret: 'authelia-tls'

hostNameOverride: ''
# hostNameOverride: 'example.com'

traefikCRD:
Expand Down Expand Up @@ -214,6 +214,12 @@ pod:
# labels:
# myLabel: 'myValue'

initContainers: []
# initContainers:
# - name: myapp-init
# image: busybox:1.36
# command: ['sh', '-c', 'echo The app is starting! && sleep 5']

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'

initContainers: []
# initContainers:
# - name: myapp-init
# image: busybox:1.36
# command: ['sh', '-c', 'echo The app is starting! && sleep 5']

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