outposts: lowercase k8s object names

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-09 18:13:21 +02:00
parent 3208358a03
commit 7f7046f0e4
1 changed files with 2 additions and 2 deletions

View File

@ -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."""