-
Notifications
You must be signed in to change notification settings - Fork 1.9k
OSDOCS-13230: Documenting uninstalling the K8S NMState Operator #87708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // networking/k8s_nmstate/k8s-nmstate-about-the-kubernetes-nmstate-operator.adoc | ||
|
|
||
| :_mod-docs-content-type: PROCEDURE | ||
| [id="k8s-nmstate-uninstall-operator_{context}"] | ||
| = Uninstalling the Kubernetes NMState Operator | ||
|
|
||
| You can use the {olm-first} to uninstall the Kubernetes NMState Operator, but by design {olm} does not delete any associated custom resource definitions (CRDs), custom resources (CRs), or API Services. | ||
|
|
||
| Before you uninstall the Kubernetes NMState Operator from the `Subcription` resource used by {olm}, identify what Kubernetes NMState Operator resources to delete. This identification ensures that you can delete resources without impacting your running cluster. | ||
|
|
||
| If you need to reinstall the Kubernetes NMState Operator, see "Installing the Kubernetes NMState Operator by using the CLI" or "Installing the Kubernetes NMState Operator by using the web console". | ||
|
|
||
| .Prerequisites | ||
|
|
||
| * You have installed the {oc-first}. | ||
| * You are logged in as a user with `cluster-admin` privileges. | ||
|
|
||
| .Procedure | ||
|
|
||
| . Unsubscribe the Kubernetes NMState Operator from the `Subcription` resource by running the following command: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ oc delete --namespace openshift-nmstate subscription kubernetes-nmstate-operator | ||
| ---- | ||
|
|
||
| . Find the `ClusterServiceVersion` (CSV) resource that associates with the Kubernetes NMState Operator: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ oc get --namespace openshift-nmstate clusterserviceversion | ||
| ---- | ||
| + | ||
| .Example output that lists a CSV resource | ||
| [source,terminal] | ||
| ---- | ||
| NAME DISPLAY VERSION REPLACES PHASE | ||
| kubernetes-nmstate-operator.v4.18.0 Kubernetes NMState Operator 4.18.0 Succeeded | ||
| ---- | ||
|
|
||
| . Delete the CSV resource. After you delete the file, {olm} deletes certain resources, such as `RBAC`, that it created for the Operator. | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ oc delete --namespace openshift-nmstate clusterserviceversion kubernetes-nmstate-operator.v4.18.0 | ||
| ---- | ||
|
|
||
| . Delete the `nmstate` CR and any associated `Deployment` resources by running the following commands: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ oc -n openshift-nmstate delete nmstate nmstate | ||
| ---- | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ oc delete --all deployments --namespace=openshift-nmstate | ||
| ---- | ||
|
|
||
| . Delete all the custom resource definition (CRD), such as `nmstates`, that exist in the `nmstate.io` namespace by running the following commands: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ oc delete crd nmstates.nmstate.io | ||
| ---- | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ oc delete crd nodenetworkconfigurationenactments.nmstate.io | ||
| ---- | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ oc delete crd nodenetworkstates.nmstate.io | ||
| ---- | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ oc delete crd nodenetworkconfigurationpolicies.nmstate.io | ||
| ---- | ||
|
|
||
| . Delete the namespace: | ||
| + | ||
| [source,terminal] | ||
| ---- | ||
| $ oc delete namespace kubernetes-nmstate | ||
| ---- | ||
|
|
||
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.