File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99from simple_logger .logger import get_logger
1010
1111from utilities .constants import (
12- ISTIO_CA_BUNDLE_FILENAME ,
1312 OPENSHIFT_CA_BUNDLE_FILENAME ,
1413)
1514from utilities .infra import is_managed_cluster
@@ -26,17 +25,17 @@ def create_ca_bundle_file(client: DynamicClient) -> str:
2625 Returns:
2726 str: The path to the ca bundle file. If cert is not created, return empty string
2827 """
29-
28+
3029 certs_secret = Secret (
3130 client = client ,
3231 name = "router-certs-default" ,
3332 namespace = "openshift-ingress" ,
3433 )
35-
34+
3635 filename = OPENSHIFT_CA_BUNDLE_FILENAME
3736 bundle = base64 .b64decode (certs_secret .instance .data ["tls.crt" ]).decode ()
3837 filepath = os .path .join (py_config ["tmp_base_dir" ], filename )
39-
38+
4039 with open (filepath , "w" ) as fd :
4140 fd .write (bundle )
4241
You can’t perform that action at this time.
0 commit comments