fix(authentik): fix bluieprints (#11041)

**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [x] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
This commit is contained in:
Stavros Kois
2023-07-30 15:42:50 +03:00
committed by GitHub
parent 84bd108178
commit f5a9d16dda
4 changed files with 32 additions and 10 deletions
+1 -1
View File
@@ -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
+17
View File
@@ -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</br>
True: mountPath: /blueprints</br>
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
@@ -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 -}}
+10 -9
View File
@@ -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