Compare commits
2 commits
b2d9004359
...
9ddca7c0a4
Author | SHA1 | Date | |
---|---|---|---|
9ddca7c0a4 | |||
d2ed55b606 |
1 changed files with 2 additions and 2 deletions
|
@ -618,7 +618,7 @@ class ServiceInstance(ServalaModelMixin, models.Model):
|
|||
# Check if secrets are available based on conditions
|
||||
secrets_available = any(
|
||||
[
|
||||
condition.get("type") == "Status" and condition.get("status") == "True"
|
||||
condition.get("type") == "Ready" and condition.get("status") == "True"
|
||||
for condition in self.status_conditions
|
||||
]
|
||||
)
|
||||
|
@ -636,7 +636,7 @@ class ServiceInstance(ServalaModelMixin, models.Model):
|
|||
self.context.control_plane.get_kubernetes_client()
|
||||
)
|
||||
secret = v1.read_namespaced_secret(
|
||||
name=secret_name, namespace=secret_ref.get("namespace")
|
||||
name=secret_name, namespace=self.organization.namespace
|
||||
)
|
||||
|
||||
# Secret data is base64 encoded
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue