From c9982212261353ecb4b99714ad35a73450373c3a Mon Sep 17 00:00:00 2001 From: Ernesto Huizar <33471880+ehuizar1028@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:06:28 -0500 Subject: [PATCH] Pod-Annotations-For-Executor (#140) * Pod-Annotations-For-Executor --- charts/terrakube/Chart.yaml | 2 +- charts/terrakube/templates/deployment-executor.yaml | 3 +++ charts/terrakube/values.schema.json | 5 ++++- charts/terrakube/values.yaml | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/charts/terrakube/Chart.yaml b/charts/terrakube/Chart.yaml index d05215b..79469f6 100644 --- a/charts/terrakube/Chart.yaml +++ b/charts/terrakube/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: 3.20.0 +version: 3.21.0 # 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 diff --git a/charts/terrakube/templates/deployment-executor.yaml b/charts/terrakube/templates/deployment-executor.yaml index 5576565..8b220f7 100644 --- a/charts/terrakube/templates/deployment-executor.yaml +++ b/charts/terrakube/templates/deployment-executor.yaml @@ -19,6 +19,9 @@ spec: {{- end }} annotations: checksum/config: {{ include (print $.Template.BasePath "/secrets-executor.yaml") . | sha256sum }} + {{- with .Values.executor.podAnnotations }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: {{- with .Values.executor.imagePullSecrets | default .Values.global.imagePullSecrets }} imagePullSecrets: diff --git a/charts/terrakube/values.schema.json b/charts/terrakube/values.schema.json index ed128ca..5ad6535 100644 --- a/charts/terrakube/values.schema.json +++ b/charts/terrakube/values.schema.json @@ -302,6 +302,9 @@ "podLabels": { "type": "object" }, + "podAnnotations": { + "type": "object" + }, "env": { "type": "array", "items": { @@ -557,4 +560,4 @@ }, "title": "Terrakube Chart Values", "type": "object" - } \ No newline at end of file + } diff --git a/charts/terrakube/values.yaml b/charts/terrakube/values.yaml index cebe6f9..8dc3b55 100644 --- a/charts/terrakube/values.yaml +++ b/charts/terrakube/values.yaml @@ -231,6 +231,7 @@ executor: - terrakube-executor-secrets resources: {} podLabels: {} + podAnnotations: {} apiServiceUrl: "http://terrakube-api-service:8080" properties: toolsRepository: "https://github.com/AzBuilder/terrakube-extensions"