mirror of https://github.com/kubernetes/kops.git
aws: Skip ASG cleanup on Karpenter managed IG deletion
This commit is contained in:
parent
b427cc0e43
commit
2c8a90cc73
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue