Skip to content

Commit

Permalink
Fix tls secret deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
averevki committed Nov 6, 2023
1 parent 407a717 commit 764b52f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsuite/openshift/objects/gateway_api/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ def get_tls_cert(self) -> Certificate:

def delete_tls_secret(self):
"""Deletes secret with TLS certificate used by the gateway"""
tls_secret = self.openshift.get_secret(self.cert_secret_name)
tls_secret.delete(ignore_not_found=True)
with self.openshift.context:
selector(f"secret/{self.cert_secret_name}").delete(ignore_not_found=True)

def get_spoke_gateway(self, spokes: dict[str, OpenShiftClient]) -> "MGCGateway":
"""
Expand Down

0 comments on commit 764b52f

Please sign in to comment.