Fix kubernetes labels at instance creation #47
1 changed files with 1 additions and 3 deletions
|
@ -530,9 +530,7 @@ class ServiceInstance(ServalaModelMixin, models.Model):
|
||||||
"spec": spec_data or {},
|
"spec": spec_data or {},
|
||||||
}
|
}
|
||||||
if label := context.control_plane.required_label:
|
if label := context.control_plane.required_label:
|
||||||
create_data["metadata"]["labels"] = [
|
create_data["metadata"]["labels"] = {settings.DEFAULT_LABEL_KEY: label}
|
||||||
{settings.DEFAULT_LABEL_KEY: label}
|
|
||||||
]
|
|
||||||
api_instance = client.CustomObjectsApi(
|
api_instance = client.CustomObjectsApi(
|
||||||
context.control_plane.get_kubernetes_client()
|
context.control_plane.get_kubernetes_client()
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue