From 3c614c6d12ec5dd478a140203000fa82f962f2b5 Mon Sep 17 00:00:00 2001 From: Dominic DePasquale <7384087+domdepasquale@users.noreply.github.com> Date: Tue, 8 Aug 2023 10:14:36 -0400 Subject: [PATCH] allow service annotations (#43) --- charts/application-core/Chart.yaml | 2 +- charts/application-core/templates/service.yaml | 3 +++ charts/application-core/values.yaml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/application-core/Chart.yaml b/charts/application-core/Chart.yaml index 65d085a..d86513f 100644 --- a/charts/application-core/Chart.yaml +++ b/charts/application-core/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.3.1 +version: 1.4.0 maintainers: - name: Dominic DePasquale diff --git a/charts/application-core/templates/service.yaml b/charts/application-core/templates/service.yaml index 3a73a11..2e7c3ae 100644 --- a/charts/application-core/templates/service.yaml +++ b/charts/application-core/templates/service.yaml @@ -6,6 +6,9 @@ metadata: {{- include "application-core.labels" . | nindent 4 }} annotations: {{- include "application-core.annotations" $ | nindent 4 }} + {{- if .Values.service.annotations }} + {{- toYaml .Values.service.annotations | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} ports: diff --git a/charts/application-core/values.yaml b/charts/application-core/values.yaml index 12702f5..3ba840e 100644 --- a/charts/application-core/values.yaml +++ b/charts/application-core/values.yaml @@ -58,6 +58,7 @@ securityContext: service: type: ClusterIP port: 8000 + annotations: {} sessionAffinity: enabled: false