Browse Source

Fixes #7009: Hardcoded namespace default in lib_openshift/oc_adm_router

Jan-Otto Kröpke 6 years ago
parent
commit
122b1c37fc

+ 1 - 1
roles/lib_openshift/library/oc_adm_router.py

@@ -2692,7 +2692,7 @@ class Router(OpenShiftCLI):
            - secret/router-certs
            - clusterrolebinding/router-router-role
         '''
-        super(Router, self).__init__('default', router_config.kubeconfig, verbose)
+        super(Router, self).__init__(router_config.namespace, router_config.kubeconfig, verbose)
         self.config = router_config
         self.verbose = verbose
         self.router_parts = [{'kind': 'dc', 'name': self.config.name},

+ 1 - 1
roles/lib_openshift/src/class/oc_adm_router.py

@@ -27,7 +27,7 @@ class Router(OpenShiftCLI):
            - secret/router-certs
            - clusterrolebinding/router-router-role
         '''
-        super(Router, self).__init__('default', router_config.kubeconfig, verbose)
+        super(Router, self).__init__(router_config.namespace, router_config.kubeconfig, verbose)
         self.config = router_config
         self.verbose = verbose
         self.router_parts = [{'kind': 'dc', 'name': self.config.name},