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

fix(amazon/loadBalancer): Disable CLB deletion if instances exist #7509

Merged

Conversation

caseyhebebrand
Copy link
Contributor

Deleting a CLB should only be allowed when there are no instances attached to it.

This was true for ALBs and NLBs, but not for CLBs. We reference loadBalancer.instances.length to determine if deletion is enabled for the user. For CLBs, the instances array is always empty so we must rely on instance counts instead.

Copy link
Contributor

@christopherthielen christopherthielen left a comment

Choose a reason for hiding this comment

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

lgtm

@christopherthielen christopherthielen merged commit e4e3c46 into spinnaker:master Oct 11, 2019
christopherthielen added a commit to christopherthielen/deck that referenced this pull request Oct 11, 2019
b382a22 fix(ui): Type field missing for CLB detail view (spinnaker#7504)
e4e3c46 fix(amazon/loadBalancer): Disable CLB deletion if instances exist (spinnaker#7509)
christopherthielen added a commit that referenced this pull request Oct 11, 2019
b382a22 fix(ui): Type field missing for CLB detail view (#7504)
e4e3c46 fix(amazon/loadBalancer): Disable CLB deletion if instances exist (#7509)
@caseyhebebrand caseyhebebrand deleted the disable-delete-clb branch November 20, 2019 19:03
yunzhangit pushed a commit to yunzhangit/deck that referenced this pull request Mar 28, 2021
b382a22 fix(ui): Type field missing for CLB detail view (spinnaker#7504)
e4e3c46 fix(amazon/loadBalancer): Disable CLB deletion if instances exist (spinnaker#7509)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants