From d1296e9cc78f6ec86dcb8303ae0eb83d5975f7ee Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 6 May 2021 19:51:14 +0200 Subject: [PATCH] outposts: fix deployments referencing the wrong secret Signed-off-by: Jens Langhammer --- authentik/outposts/controllers/k8s/deployment.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/authentik/outposts/controllers/k8s/deployment.py b/authentik/outposts/controllers/k8s/deployment.py index 1bab82ec2..420e87deb 100644 --- a/authentik/outposts/controllers/k8s/deployment.py +++ b/authentik/outposts/controllers/k8s/deployment.py @@ -68,7 +68,6 @@ class DeploymentReconciler(KubernetesObjectReconciler[V1Deployment]): ) ) meta = self.get_object_meta(name=self.name) - secret_name = f"authentik-outpost-{self.controller.outpost.uuid.hex}-api" image_name = self.controller.get_container_image() return V1Deployment( metadata=meta, @@ -88,7 +87,7 @@ class DeploymentReconciler(KubernetesObjectReconciler[V1Deployment]): name="AUTHENTIK_HOST", value_from=V1EnvVarSource( secret_key_ref=V1SecretKeySelector( - name=secret_name, + name=self.name, key="authentik_host", ) ), @@ -97,7 +96,7 @@ class DeploymentReconciler(KubernetesObjectReconciler[V1Deployment]): name="AUTHENTIK_TOKEN", value_from=V1EnvVarSource( secret_key_ref=V1SecretKeySelector( - name=secret_name, + name=self.name, key="token", ) ),