From 2576b55249735d30ba7f34a46ab9544e37f91228 Mon Sep 17 00:00:00 2001 From: Jerry Sun Date: Wed, 27 Oct 2021 17:33:47 -0400 Subject: [PATCH] Dex pods fail on kubernetes version 1.21.3 Dex pod is crashing due to a recent kubernetes upversioning to 1.21.3. This causes oidc-auth-apps to fail to apply. This commit implements the fix suggested for it upstream: https://github.com/dexidp/dex/issues/2082#issuecomment-818124478 Test Plan: PASS: apply oidc-auth-apps on kubernetes version 1.18.1 PASS: apply oidc-auth-apps on kubernetes version 1.19.13 PASS: apply oidc-auth-apps on kubernetes version 1.20.9 PASS: apply oidc-auth-apps on kubernetes version 1.21.3 Change-Id: Ide9376820647fb46dfd27ea56623dfeefce9f4dd Closes-Bug: 1948981 Signed-off-by: Jerry Sun --- .../stx-oidc-auth-helm/manifests/manifest.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stx-oidc-auth-helm/stx-oidc-auth-helm/manifests/manifest.yaml b/stx-oidc-auth-helm/stx-oidc-auth-helm/manifests/manifest.yaml index 7cd4d10..fbf6dcd 100644 --- a/stx-oidc-auth-helm/stx-oidc-auth-helm/manifests/manifest.yaml +++ b/stx-oidc-auth-helm/stx-oidc-auth-helm/manifests/manifest.yaml @@ -23,6 +23,11 @@ data: values: image: docker.io/starlingx/dex imageTag: stx.4.0-v2.14.0-1 + env: + - name: KUBERNETES_POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace config: enablePasswordDB: false web: