outposts: lowercase k8s object names
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
3208358a03
commit
7f7046f0e4
|
@ -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."""
|
||||
|
|
Reference in New Issue