Skip to content

Commit

Permalink
Drop support for Shoots with Kubernetes version <= 1.26 (#393)
Browse files Browse the repository at this point in the history
* Adapt PDBs to use unhealthyPodEvictionPolicy: AlwaysAllow unconditionally

* Adapt service.kubernetes.io/topology-mode annotation

* Update version in service.json

* Run make generate
  • Loading branch information
RadaBDimitrova authored Feb 25, 2025
1 parent 77c543f commit 50d5e55
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ spec:
selector:
matchLabels:
{{ include "labels" . | indent 6 }}
{{- if semverCompare ">= 1.26-0" .Capabilities.KubeVersion.GitVersion }}
unhealthyPodEvictionPolicy: AlwaysAllow
{{- end }}
unhealthyPodEvictionPolicy: AlwaysAllow
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ metadata:
annotations:
networking.resources.gardener.cloud/from-all-webhook-targets-allowed-ports: '[{"protocol":"TCP","port":{{ .Values.webhookConfig.serverPort }}}]'
{{- if .Values.service.topologyAwareRouting.enabled }}
{{- if semverCompare ">= 1.27-0" .Capabilities.KubeVersion.GitVersion }}
service.kubernetes.io/topology-mode: "auto"
{{- else }}
service.kubernetes.io/topology-aware-hints: "auto"
{{- end }}
{{- end }}
labels:
{{ include "labels" . | indent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ spec:
matchLabels:
{{ include "dnsmanLabels" . | indent 6 }}
{{- end }}
{{- if semverCompare ">= 1.26-0" .Capabilities.KubeVersion.GitVersion }}
unhealthyPodEvictionPolicy: AlwaysAllow
{{- end }}
unhealthyPodEvictionPolicy: AlwaysAllow
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ spec:
selector:
matchLabels:
{{ include "labels" . | indent 6 }}
{{- if semverCompare ">= 1.26-0" .Capabilities.KubeVersion.GitVersion }}
unhealthyPodEvictionPolicy: AlwaysAllow
{{- end }}
unhealthyPodEvictionPolicy: AlwaysAllow
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ spec:
matchLabels:
app: {{ template "service.name" . }}
release: {{ .Release.Name }}
{{- if semverCompare ">= 1.26-0" .Capabilities.KubeVersion.GitVersion }}
unhealthyPodEvictionPolicy: AlwaysAllow
{{- end }}
unhealthyPodEvictionPolicy: AlwaysAllow
2 changes: 1 addition & 1 deletion example/controller-registration.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion hack/api-reference/service.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"externalPackages": [
{
"typeMatchPrefix": "^k8s\\.io/(api|apimachinery/pkg/apis)/",
"docsURLTemplate": "https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#{{lower .TypeIdentifier}}-{{arrIndex .PackageSegments -1}}-{{arrIndex .PackageSegments -2}}"
"docsURLTemplate": "https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#{{lower .TypeIdentifier}}-{{arrIndex .PackageSegments -1}}-{{arrIndex .PackageSegments -2}}"
},
{
"typeMatchPrefix": "github.com/gardener/gardener/extensions/pkg/apis/config",
Expand Down

0 comments on commit 50d5e55

Please sign in to comment.