Skip to content

Commit

Permalink
Fix extension deletion flow regression. (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Mar 22, 2024
1 parent a993d73 commit a84584c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/webhook/kapiserver/ensurer.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ func (e *ensurer) EnsureKubeAPIServerDeployment(ctx context.Context, gctx gconte
return err
}

if cluster.Shoot.DeletionTimestamp != nil && !cluster.Shoot.DeletionTimestamp.IsZero() {
e.logger.Info("skip mutating api server because shoot is in deletion")
return nil
}

namespace := cluster.ObjectMeta.Name

ex := &extensionsv1alpha1.Extension{
Expand Down

0 comments on commit a84584c

Please sign in to comment.