Fix kubernetes labels at instance creation
All checks were successful
Tests / test (push) Successful in 24s
All checks were successful
Tests / test (push) Successful in 24s
ref #42
This commit is contained in:
parent
db9f15856a
commit
63229a69ca
1 changed files with 1 additions and 3 deletions
|
@ -530,9 +530,7 @@ class ServiceInstance(ServalaModelMixin, models.Model):
|
|||
"spec": spec_data or {},
|
||||
}
|
||||
if label := context.control_plane.required_label:
|
||||
create_data["metadata"]["labels"] = [
|
||||
{settings.DEFAULT_LABEL_KEY: label}
|
||||
]
|
||||
create_data["metadata"]["labels"] = {settings.DEFAULT_LABEL_KEY: label}
|
||||
api_instance = client.CustomObjectsApi(
|
||||
context.control_plane.get_kubernetes_client()
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue