Skip to content

Commit 91af61f

Browse files
dbasunagclaude
andcommitted
fix: namespace calls should have client param
Signed-off-by: Debarati Basu-Nag <dbasunag@redhat.com> Co-Authored-By: Claude <noreply@anthropic.com>
1 parent add2c18 commit 91af61f

File tree

1 file changed

+3
-3
lines changed
  • tests/model_registry/model_registry/python_client/signing

1 file changed

+3
-3
lines changed

tests/model_registry/model_registry/python_client/signing/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def installed_tas_operator(admin_client: DynamicClient) -> Generator[None, Any]:
138138
None: Operator is ready for use
139139
"""
140140
distribution = py_config["distribution"]
141-
operator_ns = Namespace(name=OPENSHIFT_OPERATORS, ensure_exists=True)
141+
operator_ns = Namespace(client=admin_client, name=OPENSHIFT_OPERATORS, ensure_exists=True)
142142
package_name = "rhtas-operator"
143143

144144
# Determine operator source: ODH uses community-operators, RHOAI uses redhat-operators
@@ -179,7 +179,7 @@ def installed_tas_operator(admin_client: DynamicClient) -> Generator[None, Any]:
179179
clean_up_namespace=False,
180180
)
181181
# Ensure namespace exists for Securesign
182-
ns = Namespace(name=SECURESIGN_NAMESPACE)
182+
ns = Namespace(client=admin_client, name=SECURESIGN_NAMESPACE)
183183
if ns.exists:
184184
ns.delete(wait=True)
185185
else:
@@ -212,7 +212,7 @@ def securesign_instance(
212212
Resource: Securesign resource instance
213213
"""
214214
# Ensure namespace exists for Securesign
215-
ns = Namespace(name=SECURESIGN_NAMESPACE)
215+
ns = Namespace(client=admin_client, name=SECURESIGN_NAMESPACE)
216216
ns.wait_for_status(status=Namespace.Status.ACTIVE)
217217

218218
# Build Securesign CR spec

0 commit comments

Comments
 (0)