From 7f7046f0e40eb372d136c5cee315fb8a9c2c6f7d Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 9 May 2021 18:13:21 +0200 Subject: [PATCH] outposts: lowercase k8s object names Signed-off-by: Jens Langhammer --- authentik/outposts/controllers/k8s/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/outposts/controllers/k8s/base.py b/authentik/outposts/controllers/k8s/base.py index 7b75654e2..ec3b6a107 100644 --- a/authentik/outposts/controllers/k8s/base.py +++ b/authentik/outposts/controllers/k8s/base.py @@ -48,10 +48,10 @@ class KubernetesObjectReconciler(Generic[T]): @property def name(self) -> str: """Get the name of the object this reconciler manages""" - return self.controller.outpost.config.object_naming_template % { + return (self.controller.outpost.config.object_naming_template % { "name": slugify(self.controller.outpost.name), "uuid": self.controller.outpost.uuid.hex, - } + }).lower() def up(self): """Create object if it doesn't exist, update if needed or recreate if needed."""