Last active
February 1, 2023 16:38
-
-
Save jgato/bcfd36316852a69af0bbaaf2145edc2c to your computer and use it in GitHub Desktop.
Deleting finalizers on siteconfig deletion stuck
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
# delete finalizers for secrets of the bmc and the BMH | |
oc -n <CLUSTER_NS> get secret -o go-template='{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}' \ | |
| grep bmc \ | |
| xargs oc patch --type=merge --type=merge -p '{"metadata": {"finalizers":null}}' -n <CLUSTER_NS> secret | |
oc -n <CLUSTER_NS> get bmh -o go-template='{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}' \ | |
| xargs oc patch --type=merge --type=merge -p '{"metadata": {"finalizers":null}}' -n <CLUSTER_NS> bmh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment