Skip to content
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

Block deletion if customer stream and sap stream consumer exists #145

Merged
merged 3 commits into from
Sep 22, 2023

Conversation

muralov
Copy link
Contributor

@muralov muralov commented Sep 21, 2023

Don't delete if sap stream consumer exists or customer streams exist
Description

  • Don't delete if customer stream exists other than sap stream
  • Don't delete if sap stream consumer exists
  • Add WARNING state if deletion is blocked
  • Add and adapt tests for deletion block

Related issue(s)
#143

* Don't delete if customer stream exists other than sap stream
* Don't delete if sap stream consumer exists
* Add WARNING state if deletion is blocked
* Add and adapt tests for deletion block
@muralov muralov requested a review from a team as a code owner September 21, 2023 07:18
@kyma-bot kyma-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 21, 2023
@muralov muralov linked an issue Sep 21, 2023 that may be closed by this pull request
5 tasks
@muralov muralov requested review from k15r and removed request for friedrichwilken September 21, 2023 07:23
ConsumerExistsErrorMsg = "Cannot delete NATS cluster as stream consumer exists"
natsClientPort = 4222
InstanceLabelKey = "app.kubernetes.io/instance"
SapStreamName = "sap"
Copy link
Contributor

Choose a reason for hiding this comment

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

this constant should be sourced from a single location otherwise it will at eventually go out of sync in the various components that use it

@kyma-bot kyma-bot added the lgtm Looks good to me! label Sep 22, 2023
@kyma-bot kyma-bot merged commit 20ac7d0 into kyma-project:main Sep 22, 2023
5 checks passed
@muralov muralov deleted the fix-nats-module-delete branch September 22, 2023 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Looks good to me! size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot delete NATS as stream exists
3 participants