Compare commits

..

2 commits

Author SHA1 Message Date
9ddca7c0a4 Fix secret retrieval condition
All checks were successful
Tests / test (push) Successful in 25s
2025-04-17 15:42:10 +02:00
d2ed55b606 Fix secret retrieval 2025-04-17 15:41:01 +02:00

View file

@ -618,7 +618,7 @@ class ServiceInstance(ServalaModelMixin, models.Model):
# Check if secrets are available based on conditions # Check if secrets are available based on conditions
secrets_available = any( 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 for condition in self.status_conditions
] ]
) )
@ -636,7 +636,7 @@ class ServiceInstance(ServalaModelMixin, models.Model):
self.context.control_plane.get_kubernetes_client() self.context.control_plane.get_kubernetes_client()
) )
secret = v1.read_namespaced_secret( 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 # Secret data is base64 encoded