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/truecharts/charts/tree/master/charts/incubator/authentik
- https://github.com/goauthentik/authentik - https://github.com/goauthentik/authentik
- https://goauthentik.io/docs/ - https://goauthentik.io/docs/
version: 13.0.10 version: 13.0.11
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- authentication - authentication
+17
View File
@@ -98,6 +98,15 @@ questions:
schema: schema:
type: boolean type: boolean
default: true 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 - variable: tokenLength
label: Token Length label: Token Length
description: Configure the length of generated tokens description: Configure the length of generated tokens
@@ -579,6 +588,14 @@ questions:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
# Include{persistenceBasic}
- variable: Blueprints
label: App Blueprints Storage
description: Stores the Application Blueprints.
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic} # Include{persistenceBasic}
- variable: certs - variable: certs
label: App Certs Storage label: App Certs Storage
@@ -17,6 +17,10 @@
{{- $_ := set .Values "configmap" $configmaps -}} {{- $_ := set .Values "configmap" $configmaps -}}
{{- end -}} {{- end -}}
{{- if .Values.authentik.general.overwriteDefaultBlueprints -}}
{{- $_ := set .Values.persistence.blueprints.targetSelector.worker.worker "mountPath" "/blueprints" -}}
{{- end -}}
{{- if .Values.authentik.geoip.enabled -}} {{- if .Values.authentik.geoip.enabled -}}
{{- $_ := set .Values.workload.geoip "enabled" true -}} {{- $_ := set .Values.workload.geoip "enabled" true -}}
{{- else -}} {{- else -}}
+10 -9
View File
@@ -36,6 +36,7 @@ authentik:
allowUserChangeName: true allowUserChangeName: true
allowUserChangeEmail: true allowUserChangeEmail: true
allowUserChangeUsername: true allowUserChangeUsername: true
overwriteDefaultBlueprints: false
gdprCompliance: true gdprCompliance: true
tokenLength: 128 tokenLength: 128
impersonation: true impersonation: true
@@ -436,15 +437,15 @@ persistence:
worker: worker:
worker: worker:
mountPath: /templates mountPath: /templates
# - Enabling this will override the blueprints:
# - default blueprints and initialisation enabled: true
# - will fail. targetSelector:
# blueprints: worker:
# enabled: true worker:
# targetSelector: # This will automatically change to `/blueprints`
# worker: # if `overwriteDefaultBlueprints` is set to `true
# worker: # Otherwise it will respect the value specified here
# mountPath: /blueprints mountPath: /blueprints/custom
certs: certs:
enabled: true enabled: true
mountPath: /certs mountPath: /certs