From 5c10109ea2e90bc9ab348f45538f35feea009a08 Mon Sep 17 00:00:00 2001 From: Ismail Alidzhikov Date: Tue, 11 Apr 2023 10:52:42 +0300 Subject: [PATCH] Make the `gardener-extension-admission-openstack` Service topology-aware (#599) --- .../charts/runtime/templates/service.yaml | 7 +++++++ charts/gardener-extension-admission-openstack/values.yaml | 3 +++ 2 files changed, 10 insertions(+) diff --git a/charts/gardener-extension-admission-openstack/charts/runtime/templates/service.yaml b/charts/gardener-extension-admission-openstack/charts/runtime/templates/service.yaml index fd76ba721..9b6ed7f73 100644 --- a/charts/gardener-extension-admission-openstack/charts/runtime/templates/service.yaml +++ b/charts/gardener-extension-admission-openstack/charts/runtime/templates/service.yaml @@ -3,8 +3,15 @@ kind: Service metadata: name: {{ include "name" . }} namespace: {{ .Release.Namespace }} + {{- if .Values.global.service.topologyAwareRouting.enabled }} + annotations: + service.kubernetes.io/topology-aware-hints: "auto" + {{- end }} labels: {{ include "labels" . | indent 4 }} + {{- if .Values.global.service.topologyAwareRouting.enabled }} + endpoint-slice-hints.resources.gardener.cloud/consider: "true" + {{- end }} spec: type: ClusterIP selector: diff --git a/charts/gardener-extension-admission-openstack/values.yaml b/charts/gardener-extension-admission-openstack/values.yaml index 05d700b7f..8f851dda9 100644 --- a/charts/gardener-extension-admission-openstack/values.yaml +++ b/charts/gardener-extension-admission-openstack/values.yaml @@ -45,3 +45,6 @@ global: enabled: false expirationSeconds: 43200 audience: "" + service: + topologyAwareRouting: + enabled: false