diff --git a/charts/incubator/authentik/Chart.yaml b/charts/incubator/authentik/Chart.yaml index 34ac557cb20..adacb1e4f72 100644 --- a/charts/incubator/authentik/Chart.yaml +++ b/charts/incubator/authentik/Chart.yaml @@ -23,7 +23,7 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/incubator/authentik - https://github.com/goauthentik/authentik - https://goauthentik.io/docs/ -version: 13.0.10 +version: 13.0.11 annotations: truecharts.org/catagories: | - authentication diff --git a/charts/incubator/authentik/questions.yaml b/charts/incubator/authentik/questions.yaml index e4717806118..c587fe44296 100644 --- a/charts/incubator/authentik/questions.yaml +++ b/charts/incubator/authentik/questions.yaml @@ -98,6 +98,15 @@ questions: schema: type: boolean default: true + - variable: overwriteDefaultBlueprints + label: Overwrite Default Blueprints + description: | + When enabled, all the default blueprints will be overwritten
+ True: mountPath: /blueprints
+ False: mountPath: /blueprints/custom + schema: + type: boolean + default: false - variable: tokenLength label: Token Length description: Configure the length of generated tokens @@ -579,6 +588,14 @@ questions: additional_attrs: true type: dict attrs: +# Include{persistenceBasic} + - variable: Blueprints + label: App Blueprints Storage + description: Stores the Application Blueprints. + schema: + additional_attrs: true + type: dict + attrs: # Include{persistenceBasic} - variable: certs label: App Certs Storage diff --git a/charts/incubator/authentik/templates/common.yaml b/charts/incubator/authentik/templates/common.yaml index e721eb300ec..f60f125473f 100644 --- a/charts/incubator/authentik/templates/common.yaml +++ b/charts/incubator/authentik/templates/common.yaml @@ -17,6 +17,10 @@ {{- $_ := set .Values "configmap" $configmaps -}} {{- end -}} +{{- if .Values.authentik.general.overwriteDefaultBlueprints -}} + {{- $_ := set .Values.persistence.blueprints.targetSelector.worker.worker "mountPath" "/blueprints" -}} +{{- end -}} + {{- if .Values.authentik.geoip.enabled -}} {{- $_ := set .Values.workload.geoip "enabled" true -}} {{- else -}} diff --git a/charts/incubator/authentik/values.yaml b/charts/incubator/authentik/values.yaml index 45ab022490b..4194d93107f 100644 --- a/charts/incubator/authentik/values.yaml +++ b/charts/incubator/authentik/values.yaml @@ -36,6 +36,7 @@ authentik: allowUserChangeName: true allowUserChangeEmail: true allowUserChangeUsername: true + overwriteDefaultBlueprints: false gdprCompliance: true tokenLength: 128 impersonation: true @@ -436,15 +437,15 @@ persistence: worker: worker: mountPath: /templates - # - Enabling this will override the - # - default blueprints and initialisation - # - will fail. - # blueprints: - # enabled: true - # targetSelector: - # worker: - # worker: - # mountPath: /blueprints + blueprints: + enabled: true + targetSelector: + worker: + worker: + # This will automatically change to `/blueprints` + # if `overwriteDefaultBlueprints` is set to `true + # Otherwise it will respect the value specified here + mountPath: /blueprints/custom certs: enabled: true mountPath: /certs