Skip to content

Commit c219c6e

Browse files
committed
[patch] add function to fetch cluster issuers
1 parent 2741731 commit c219c6e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/mas/devops/ocp.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,12 @@ def getStorageClasses(dynClient: DynamicClient) -> list:
376376
return storageClasses
377377

378378

379+
def getClusterIssuers(dynClient: DynamicClient) -> list:
380+
clusterIssuerAPI = dynClient.resources.get(api_version="cert-manager.io", kind="ClusterIssuer")
381+
clusterIssuers = clusterIssuerAPI.get().items
382+
return clusterIssuers
383+
384+
379385
def isSNO(dynClient: DynamicClient) -> bool:
380386
"""
381387
Check if the cluster is a Single Node OpenShift (SNO) deployment.

0 commit comments

Comments
 (0)