Skip to content

Commit

Permalink
Merge pull request #16051 from hakman/karpenter_delete_ig
Browse files Browse the repository at this point in the history
aws: Skip ASG cleanup on Karpenter managed IG deletion
  • Loading branch information
k8s-ci-robot authored Oct 24, 2023
2 parents 1f6d492 + 2c8a90c commit 419b93b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions upup/pkg/fi/cloudup/awsup/aws_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,10 @@ func NewEC2Filter(name string, values ...string) *ec2.Filter {

// DeleteGroup deletes an aws autoscaling group
func (c *awsCloudImplementation) DeleteGroup(g *cloudinstances.CloudInstanceGroup) error {
if g.InstanceGroup != nil && g.InstanceGroup.Spec.Manager == kops.InstanceManagerKarpenter {
return nil
}

if c.spotinst != nil {
if featureflag.SpotinstHybrid.Enabled() {
if _, ok := g.Raw.(*autoscaling.Group); ok {
Expand Down

0 comments on commit 419b93b

Please sign in to comment.