Enhance Authentik deployment by adding verification for the presence of noble blueprints volume mounts in the authentik-worker deployment. Update README to clarify blueprint confirmation steps and troubleshooting for mounted files. This ensures proper configuration when blueprints are enabled.
This commit is contained in:
@@ -139,6 +139,24 @@
|
||||
KUBECONFIG: "{{ noble_kubeconfig }}"
|
||||
changed_when: true
|
||||
|
||||
- name: Verify authentik-worker mounts noble blueprints volume (Helm blueprints.configMaps)
|
||||
ansible.builtin.shell: |
|
||||
set -euo pipefail
|
||||
WANT="blueprints-cm-{{ noble_authentik_blueprints_configmap_name }}"
|
||||
D="$(kubectl get deploy -n "{{ noble_authentik_namespace }}" \
|
||||
-l app.kubernetes.io/name=authentik,app.kubernetes.io/component=worker \
|
||||
-o jsonpath='{.items[0].metadata.name}')"
|
||||
MOUNTS="$(kubectl get deploy -n "{{ noble_authentik_namespace }}" "$D" \
|
||||
-o jsonpath='{.spec.template.spec.containers[0].volumeMounts[*].name}')"
|
||||
if ! echo "$MOUNTS" | tr ' ' '\n' | grep -Fxq "$WANT"; then
|
||||
echo "Expected volumeMount ${WANT} on ${D}; got: ${MOUNTS}" >&2
|
||||
exit 1
|
||||
fi
|
||||
environment:
|
||||
KUBECONFIG: "{{ noble_kubeconfig }}"
|
||||
when: noble_authentik_blueprints_enabled | default(false) | bool
|
||||
changed_when: false
|
||||
|
||||
- name: Wait for authentik server rollout
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
|
||||
Reference in New Issue
Block a user