From 7ff4e0bb909abdf17b0d060c6666754d4316b12c Mon Sep 17 00:00:00 2001 From: Tomas Boros Date: Tue, 4 Oct 2022 10:33:54 +0200 Subject: [PATCH 1/3] Add annotations to service object --- charts/trino/templates/service.yaml | 4 ++++ charts/trino/values.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/charts/trino/templates/service.yaml b/charts/trino/templates/service.yaml index bd137ef6..c6b9eccd 100644 --- a/charts/trino/templates/service.yaml +++ b/charts/trino/templates/service.yaml @@ -7,6 +7,10 @@ metadata: chart: {{ template "trino.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} ports: diff --git a/charts/trino/values.yaml b/charts/trino/values.yaml index a41b8ed6..f7a735b4 100644 --- a/charts/trino/values.yaml +++ b/charts/trino/values.yaml @@ -131,6 +131,7 @@ securityContext: service: type: ClusterIP port: 8080 + annotations: {} nodeSelector: {} From ccb189fc040529aac54917729eb9bdd976c42011 Mon Sep 17 00:00:00 2001 From: Tomas Boros Date: Tue, 4 Oct 2022 10:36:46 +0200 Subject: [PATCH 2/3] Increment version number, added annotations to service --- charts/trino/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/trino/Chart.yaml b/charts/trino/Chart.yaml index 8ecf757b..651c8cc8 100644 --- a/charts/trino/Chart.yaml +++ b/charts/trino/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: 0.8.0 +version: 0.8.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to From 478fe17d2de2eebf0b722fbe44f0071ae92ec564 Mon Sep 17 00:00:00 2001 From: Tomas Boros Date: Wed, 16 Nov 2022 20:06:53 +0100 Subject: [PATCH 3/3] Update Readme. Add service.annotations parameter --- charts/trino/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/trino/README.md b/charts/trino/README.md index 4c7a8dee..fbc5cdfa 100644 --- a/charts/trino/README.md +++ b/charts/trino/README.md @@ -47,6 +47,7 @@ The following table lists the configurable parameters of the Trino chart and the | `initContainers` | | `{}` | | `securityContext.runAsUser` | | `1000` | | `securityContext.runAsGroup` | | `1000` | +| `service.annotations` | | `{}` | | `service.type` | | `"ClusterIP"` | | `service.port` | | `8080` | | `nodeSelector` | | `{}` |