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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰fixed vpc deletion failure #9

Closed
wants to merge 4 commits into from
Closed

Conversation

LochanRn
Copy link

What this PR does / why we need it:

Fixes cluster deletion failure.
If a cluster is created when with VPC quota limit is exhausted vpc id is not provided, when try to delete the cluster, it gets stuck at delete security groups because there is no VPC-ID.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #kubernetes-sigs#2227

@spectro-prow
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: LochanRn
To complete the pull request process, please assign after the PR has been reviewed.
You can assign the PR to them by writing /assign in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@LochanRn LochanRn self-assigned this Mar 23, 2021
@@ -162,6 +162,12 @@ func (s *Service) ReconcileSecurityGroups() error {

func (s *Service) DeleteSecurityGroups() error {
conditions.MarkFalse(s.scope.InfraCluster(), infrav1.ClusterSecurityGroupsReadyCondition, clusterv1.DeletingReason, clusterv1.ConditionSeverityInfo, "")

if s.scope.VPC().ID == "" {

Choose a reason for hiding this comment

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

this looks good. lets close this and open PR to capa.

@LochanRn LochanRn closed this Mar 24, 2021
@LochanRn LochanRn reopened this Mar 30, 2021
@LochanRn LochanRn closed this Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants