diff --git a/charts/gardener-extension-dns-powerdns/templates/poddisruptionbudget.yaml b/charts/gardener-extension-dns-powerdns/templates/poddisruptionbudget.yaml index 7f4c3ee..4b86252 100644 --- a/charts/gardener-extension-dns-powerdns/templates/poddisruptionbudget.yaml +++ b/charts/gardener-extension-dns-powerdns/templates/poddisruptionbudget.yaml @@ -10,3 +10,6 @@ spec: selector: matchLabels: {{ include "labels" . | indent 6 }} +{{- if semverCompare ">= 1.26-0" .Capabilities.KubeVersion.Version }} + unhealthyPodEvictionPolicy: AlwaysAllow +{{- end }} diff --git a/cmd/gardener-extension-dns-powerdns/app/app.go b/cmd/gardener-extension-dns-powerdns/app/app.go index c8e13f1..7bb8203 100644 --- a/cmd/gardener-extension-dns-powerdns/app/app.go +++ b/cmd/gardener-extension-dns-powerdns/app/app.go @@ -70,7 +70,7 @@ func NewControllerManagerCommand(ctx context.Context) *cobra.Command { cmd := &cobra.Command{ Use: fmt.Sprintf("%s-controller-manager", powerdns.Name), - RunE: func(cmd *cobra.Command, args []string) error { + RunE: func(_ *cobra.Command, _ []string) error { verflag.PrintAndExitIfRequested() if err := aggOption.Complete(); err != nil {