Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Delete operator CRs in teardown#79

Open
misberner wants to merge 2 commits intomasterstackrox/workflow:masterfrom
mi/teardown-operatorstackrox/workflow:mi/teardown-operatorCopy head branch name to clipboard
Open

Delete operator CRs in teardown#79
misberner wants to merge 2 commits intomasterstackrox/workflow:masterfrom
mi/teardown-operatorstackrox/workflow:mi/teardown-operatorCopy head branch name to clipboard

Conversation

@misberner
Copy link
Contributor

No description provided.

# Delete operator CRs. This is broken out into a separate invocation, as the entire command fails
# if the CRDs are not available
kubectl -n stackrox get central.platform.stackrox.io,securedcluster.platform.stackrox.io -o name 2>/dev/null || true
} | xargs kubectl -n stackrox delete --wait
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a CRD can't be cleanup if the operator does not run and a Central/SecuredCluster instance is tried to be deleted.
At least I failed on this the last time I wanted to add it to the teardown script.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, because of the finalizer? We can solve this via force deletion, but good catch

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which finalizer do you mean?
I had the assumption that the CR can't be deleted because the operator executes the deletion. Therefore if the operator is running the CR can't be deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments

Close sidebar
Morty Proxy This is a proxified and sanitized view of the page, visit original site.