From a8c3d2136e945aedf27c0fd9afce174ea39b9f44 Mon Sep 17 00:00:00 2001 From: Look Crabs <6787558+lookcrabs@users.noreply.github.com> Date: Wed, 30 Apr 2025 09:03:40 -0700 Subject: [PATCH 1/3] allow service annotations allow service annotations in values.yaml --- deploy/k8s/chart/templates/service.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/k8s/chart/templates/service.yaml b/deploy/k8s/chart/templates/service.yaml index fa7b5c7..cd8505f 100644 --- a/deploy/k8s/chart/templates/service.yaml +++ b/deploy/k8s/chart/templates/service.yaml @@ -4,6 +4,8 @@ metadata: labels: {{- include "cortex-tenant.labels" . | nindent 4 }} name: {{ include "cortex-tenant.fullname" . }} + annotations: + {{- toYaml .Values.service.annotations | nindent 4 }} spec: type: {{ .Values.service.type }} ports: From 5acc262cfb85121f90ccd607fe32ad858a482dc2 Mon Sep 17 00:00:00 2001 From: Sean Sullivan Date: Wed, 30 Apr 2025 09:06:58 -0700 Subject: [PATCH 2/3] update cortex-tenant to expose service annotations to values file --- deploy/k8s/chart/values.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/k8s/chart/values.yaml b/deploy/k8s/chart/values.yaml index 0bcb675..616cc0a 100644 --- a/deploy/k8s/chart/values.yaml +++ b/deploy/k8s/chart/values.yaml @@ -17,6 +17,7 @@ image: # - myRegistryKeySecretName service: + annotations: {} # -- The type of service type: ClusterIP # -- The port on which the service listens for traffic From c11734fb868d3ab623c683a42067ef3edad374dd Mon Sep 17 00:00:00 2001 From: Sean Sullivan Date: Wed, 30 Apr 2025 09:28:39 -0700 Subject: [PATCH 3/3] update schema validation to include annotations --- deploy/k8s/chart/values.schema.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deploy/k8s/chart/values.schema.json b/deploy/k8s/chart/values.schema.json index ae72aaa..6b9f24e 100644 --- a/deploy/k8s/chart/values.schema.json +++ b/deploy/k8s/chart/values.schema.json @@ -64,6 +64,12 @@ "LoadBalancer" ] }, + + "annotations": { + "type": "object", + "title": "Annotations", + "description": "Annotations for the service" + }, "port": { "type": "integer", "title": "Port",