Use full spec data to retrieve secret ref
All checks were successful
Tests / test (push) Successful in 24s
All checks were successful
Tests / test (push) Successful in 24s
This commit is contained in:
parent
9ddca7c0a4
commit
aa73805cf6
1 changed files with 2 additions and 1 deletions
|
@ -625,7 +625,8 @@ class ServiceInstance(ServalaModelMixin, models.Model):
|
|||
if not secrets_available:
|
||||
return {}
|
||||
|
||||
if not (secret_ref := self.spec.get("writeConnectionSecretToRef")):
|
||||
spec = self.kubernetes_object.get("spec")
|
||||
if not (secret_ref := spec.get("writeConnectionSecretToRef")):
|
||||
return {}
|
||||
if not (secret_name := secret_ref.get("name")):
|
||||
return {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue