Skip to content

Commit

Permalink
update topology aware annotation key for k8s 1.27+ (#3878)
Browse files Browse the repository at this point in the history
* update annotation key for k8s 1.27+

* add changelog

* add backward compatability
  • Loading branch information
amitsagtani97 committed Feb 7, 2024
1 parent 8266c4c commit fd9628a
Show file tree
Hide file tree
Showing 14 changed files with 53 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
updated annotation for enabling Topology Aware Routing to service.kubernetes.io/topology-mode for k8s 1.27+
4 changes: 4 additions & 0 deletions charts/background-worker/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
{{- if ge (.Capabilities.KubeVersion.Minor|int) 26 }}
service.kubernetes.io/topology-mode: Auto
{{- else }}
service.kubernetes.io/topology-aware-hints: auto
{{- end }}
spec:
type: ClusterIP
ports:
Expand Down
4 changes: 4 additions & 0 deletions charts/backoffice/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
{{- if ge (.Capabilities.KubeVersion.Minor|int) 26 }}
service.kubernetes.io/topology-mode: Auto
{{- else }}
service.kubernetes.io/topology-aware-hints: auto
{{- end }}
spec:
type: ClusterIP
ports:
Expand Down
4 changes: 4 additions & 0 deletions charts/brig/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
{{- if ge (.Capabilities.KubeVersion.Minor|int) 26 }}
service.kubernetes.io/topology-mode: Auto
{{- else }}
service.kubernetes.io/topology-aware-hints: auto
{{- end }}
spec:
type: ClusterIP
ports:
Expand Down
4 changes: 4 additions & 0 deletions charts/cannon/templates/headless-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
{{- if ge (.Capabilities.KubeVersion.Minor|int) 26 }}
service.kubernetes.io/topology-mode: Auto
{{- else }}
service.kubernetes.io/topology-aware-hints: auto
{{- end }}
spec:
type: ClusterIP
# This is what makes it a Headless Service
Expand Down
4 changes: 4 additions & 0 deletions charts/cannon/templates/nginz-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
{{- if ge (.Capabilities.KubeVersion.Minor|int) 26 }}
service.kubernetes.io/topology-mode: Auto
{{- else }}
service.kubernetes.io/topology-aware-hints: auto
{{- end }}
{{- if .Values.service.nginz.externalDNS.enabled }}
external-dns.alpha.kubernetes.io/ttl: {{ .Values.service.nginz.externalDNS.ttl | quote }}
external-dns.alpha.kubernetes.io/hostname: {{ required "Please provide .service.nginz.hostname when .service.nginz.enabled and .service.nginz.externalDNS.enabled are True" .Values.service.nginz.hostname | quote }}
Expand Down
4 changes: 4 additions & 0 deletions charts/cargohold/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
{{- if ge (.Capabilities.KubeVersion.Minor|int) 26 }}
service.kubernetes.io/topology-mode: Auto
{{- else }}
service.kubernetes.io/topology-aware-hints: auto
{{- end }}
spec:
type: ClusterIP
ports:
Expand Down
4 changes: 4 additions & 0 deletions charts/federator/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
{{- if ge (.Capabilities.KubeVersion.Minor|int) 26 }}
service.kubernetes.io/topology-mode: Auto
{{- else }}
service.kubernetes.io/topology-aware-hints: auto
{{- end }}
spec:
type: ClusterIP
ports:
Expand Down
4 changes: 4 additions & 0 deletions charts/galley/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
{{- if ge (.Capabilities.KubeVersion.Minor|int) 26 }}
service.kubernetes.io/topology-mode: Auto
{{- else }}
service.kubernetes.io/topology-aware-hints: auto
{{- end }}
spec:
type: ClusterIP
ports:
Expand Down
4 changes: 4 additions & 0 deletions charts/gundeck/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
{{- if ge (.Capabilities.KubeVersion.Minor|int) 26 }}
service.kubernetes.io/topology-mode: Auto
{{- else }}
service.kubernetes.io/topology-aware-hints: auto
{{- end }}
spec:
type: ClusterIP
ports:
Expand Down
4 changes: 4 additions & 0 deletions charts/legalhold/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ kind: Service
metadata:
name: "{{ .Release.Name }}-hold"
annotations:
{{- if ge (.Capabilities.KubeVersion.Minor|int) 26 }}
service.kubernetes.io/topology-mode: Auto
{{- else }}
service.kubernetes.io/topology-aware-hints: auto
{{- end }}
spec:
type: ClusterIP
selector:
Expand Down
4 changes: 4 additions & 0 deletions charts/nginz/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
{{- if ge (.Capabilities.KubeVersion.Minor|int) 26 }}
service.kubernetes.io/topology-mode: Auto
{{- else }}
service.kubernetes.io/topology-aware-hints: auto
{{- end }}
spec:
type: ClusterIP
ports:
Expand Down
4 changes: 4 additions & 0 deletions charts/proxy/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
{{- if ge (.Capabilities.KubeVersion.Minor|int) 26 }}
service.kubernetes.io/topology-mode: Auto
{{- else }}
service.kubernetes.io/topology-aware-hints: auto
{{- end }}
spec:
type: ClusterIP
ports:
Expand Down
4 changes: 4 additions & 0 deletions charts/spar/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
{{- if ge (.Capabilities.KubeVersion.Minor|int) 26 }}
service.kubernetes.io/topology-mode: Auto
{{- else }}
service.kubernetes.io/topology-aware-hints: auto
{{- end }}
spec:
type: ClusterIP
ports:
Expand Down

0 comments on commit fd9628a

Please sign in to comment.