-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Platform][Kubernetes] Allow specifying namespace in the AZ config (#…
…6807) These set of changes introduces a new key KUBENAMESPACE in the AZ config. Useful for the situations where the platform software does not have access to create, list or delete namespaces in the cluster. When KUBENAMESPACE is present in the AZ config, the deployment in that AZ in done in that namespace only. Platform does not try to create namespace when creating the universe. It does not delete the namespace when destroying the universe. Makes changes to the kubectl, helm commands from KubernetesManager.java to use namespace as well as nodePrefix. The value of nodePrefix and namespace can be same if the AZ does not have KUBENAMESPACE. DestroyKubernetesUniverse now always deletes the volumes before deleting the namespace and uses release label selector to make sure the volumes being deleted are of the universe being destroyed. Deleting a failed universe was deleting volumes of an existing one. Use kubectl apply for the pull secret. This makes sure that we don't fail if the namespace already has a pull secret in it. This will just update the existing pull secret. [Platform UI] Add option to specify namespace in the AZ modal - Adds the given value as KUBENAMESPACE in the zone config. Fixes #6551 Fixes #6702 Test plan: The following tests have been done on OpenShift, where the Kubernetes ServiceAccount does not have access to create namespaces. - Created a single AZ provider with KUBENAMESPACE set. - Created a universe with it, tried GFlags update, database backup, universe edit operations, these pass as expected. - Destroyed the same universe. - Performed same set of operations with a multi AZ provider and a universe. Signed-off-by: Bhavin Gandhi <[email protected]>
- Loading branch information
Showing
19 changed files
with
920 additions
and
343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.