-
Notifications
You must be signed in to change notification settings - Fork 1.8k
OCPBUGS44935: WMCO uninstall should describe procedure of uninstalling the operator and deleteing the namespace #89121
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
Open
mburke5678
wants to merge
4
commits into
openshift:main
Choose a base branch
from
mburke5678:wmco-uninstall-updates
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,31 +4,60 @@ | |
|
||
:_mod-docs-content-type: PROCEDURE | ||
[id="deleting-wmco-namespace_{context}"] | ||
= Deleting the Windows Machine Config Operator namespace | ||
= Deleting the Windows Machine Config Operator namespace and operands | ||
|
||
You can delete the namespace that was generated for the Windows Machine Config Operator (WMCO) by default. | ||
After removing the Windows Machine Config Operator, it is recommended that you remove the other components associated with the Operator to avoid potential issues. | ||
|
||
.Prerequisites | ||
|
||
* The Windows `Machine` objects that hosted your Windows workloads are removed from your cluster. | ||
* The WMCO is removed from your cluster. | ||
|
||
.Procedure | ||
|
||
. Remove all Windows workloads that were created in the `openshift-windows-machine-config-operator` namespace: | ||
This procedure assumes that you are using the default `openshift-windows-machine-config-operator` namespace. | ||
|
||
. Remove all resources that were created in the `openshift-windows-machine-config-operator` namespace by using the following command: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc delete --all pods --namespace=openshift-windows-machine-config-operator | ||
---- | ||
|
||
. Verify that all pods in the `openshift-windows-machine-config-operator` namespace are deleted or are reporting a terminating state: | ||
. Verify that all pods in the `openshift-windows-machine-config-operator` namespace are deleted or are reporting a terminating state by using the following command: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc get pods --namespace openshift-windows-machine-config-operator | ||
---- | ||
|
||
. Delete the `openshift-windows-machine-config-operator` namespace: | ||
. Delete the subscription by using the following command: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I recommend following the Deleting Operators from a cluster using the CLI as per existing docs |
||
+ | ||
[source,terminal] | ||
---- | ||
$ oc delete subscription -n openshift-windows-machine-config-operator windows-machine-config-operator | ||
---- | ||
|
||
. Delete the CSV by using the following command: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc delete csv -n openshift-windows-machine-config-operator ${WMCO_CSV} | ||
---- | ||
|
||
. Delete RBAC resources by using the following command: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc delete clusterrolebinding windows-instance-config-daemon | ||
---- | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc delete clusterroles windows-instance-config-daemon | ||
---- | ||
|
||
. Delete the `openshift-windows-machine-config-operator` namespace by using the following command: | ||
+ | ||
[source,terminal] | ||
---- | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the recommendation here, to remove all pods or the namespace with all the resources?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jrvaldes This was your recommendation. We are deleting the WMCO-related pods in that namespace. The following steps delete resources and finally the namespace itself.