소스 검색

Fixes #7009: Hardcoded namespace default in lib_openshift/oc_adm_router

Jan-Otto Kröpke 6 년 전
부모
커밋
122b1c37fc
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      roles/lib_openshift/library/oc_adm_router.py
  2. 1 1
      roles/lib_openshift/src/class/oc_adm_router.py

+ 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},