Skip to content

Commit

Permalink
Merge pull request #266 from averevki/fix-mgc-tls-secret-deletion
Browse files Browse the repository at this point in the history
Fix mgc tls secret deletion
  • Loading branch information
pehala authored Nov 8, 2023
2 parents 6ebc15a + 764b52f commit 65eccb6
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 65eccb6

Please sign in to comment.