-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from ironcladlou/manager-refactor
Simplify multi-namespace controller setup
- Loading branch information
Showing
6 changed files
with
84 additions
and
187 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,26 @@ | ||
#!/bin/bash | ||
set -uo pipefail | ||
|
||
WHAT="${WHAT:-all}" | ||
|
||
# Disable the CVO | ||
oc scale --replicas 0 -n openshift-cluster-version deployments/cluster-version-operator | ||
|
||
# Uninstall the cluster-ingress-operator | ||
oc delete -n openshift-ingress-operator deployments/ingress-operator | ||
oc patch -n openshift-ingress-operator clusteringresses/default --patch '{"metadata":{"finalizers": []}}' --type=merge | ||
oc delete -n openshift-ingress-operator clusteroperators.operatorstatus.openshift.io/openshift-ingress | ||
oc delete clusteroperator.config.openshift.io/openshift-ingress-operator | ||
oc delete --force --grace-period=0 -n openshift-ingress-operator clusteringresses/default | ||
oc delete namespaces/openshift-ingress-operator | ||
|
||
if [ "$WHAT" == "all" ]; then | ||
oc delete namespaces/openshift-ingress-operator | ||
fi | ||
oc delete namespaces/openshift-ingress | ||
oc delete clusterroles/openshift-ingress-operator | ||
oc delete clusterroles/openshift-ingress-router | ||
oc delete clusterrolebindings/openshift-ingress-operator | ||
oc delete clusterrolebindings/openshift-ingress-router | ||
oc delete customresourcedefinition.apiextensions.k8s.io/clusteringresses.ingress.openshift.io | ||
|
||
if [ "$WHAT" == "all" ]; then | ||
oc delete clusterroles/openshift-ingress-operator | ||
oc delete clusterroles/openshift-ingress-router | ||
oc delete clusterrolebindings/openshift-ingress-operator | ||
oc delete clusterrolebindings/openshift-ingress-router | ||
oc delete customresourcedefinition.apiextensions.k8s.io/clusteringresses.ingress.openshift.io | ||
fi |
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 was deleted.
Oops, something went wrong.
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