This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-devlake-helm-chart.git


The following commit(s) were added to refs/heads/main by this push:
     new c2585de  adding ability to leverage basic annotations (#198)
c2585de is described below

commit c2585dee86b138b80dac4593021a32c21aab810c
Author: adamwolfe-tc <[email protected]>
AuthorDate: Mon Nov 13 04:25:11 2023 -0600

    adding ability to leverage basic annotations (#198)
    
    * adding ability to leverage basic annotations
    
    * updated terminology per maintainer request
---
 charts/devlake/templates/deployments.yaml  | 4 ++++
 charts/devlake/templates/statefulsets.yaml | 2 ++
 charts/devlake/values.yaml                 | 8 ++++++++
 3 files changed, 14 insertions(+)

diff --git a/charts/devlake/templates/deployments.yaml 
b/charts/devlake/templates/deployments.yaml
index 02390e8..62053e2 100644
--- a/charts/devlake/templates/deployments.yaml
+++ b/charts/devlake/templates/deployments.yaml
@@ -35,6 +35,8 @@ spec:
         {{- with .Values.ui.extraLabels }}
         {{- toYaml . | nindent 8 }}
         {{- end }}
+      annotations:
+        {{- toYaml .Values.ui.podAnnotations | nindent 8 }}
     spec:
       {{- with .Values.ui.securityContext }}
       securityContext:
@@ -113,6 +115,8 @@ spec:
         {{- with .Values.lake.extraLabels }}
         {{- toYaml . | nindent 8 }}
       {{- end }}
+      annotations:
+        {{- toYaml .Values.lake.podAnnotations | nindent 8 }}
     spec:
       {{- with .Values.lake.securityContext }}
       securityContext:
diff --git a/charts/devlake/templates/statefulsets.yaml 
b/charts/devlake/templates/statefulsets.yaml
index eb91c21..b3d2523 100644
--- a/charts/devlake/templates/statefulsets.yaml
+++ b/charts/devlake/templates/statefulsets.yaml
@@ -38,6 +38,8 @@ spec:
         {{- with .Values.mysql.extraLabels }}
         {{- toYaml . | nindent 8 }}
         {{- end }}
+      annotations:
+        {{- toYaml .Values.mysql.podAnnotations | nindent 8 }}
     spec:
       {{- with .Values.mysql.securityContext }}
       securityContext:
diff --git a/charts/devlake/values.yaml b/charts/devlake/values.yaml
index 8652800..2994975 100644
--- a/charts/devlake/values.yaml
+++ b/charts/devlake/values.yaml
@@ -82,6 +82,8 @@ mysql:
 
   containerSecurityContext: {}
 
+  podAnnotations: {}
+
   service:
     type: "ClusterIP"
     nodePort: ""
@@ -135,6 +137,8 @@ mysql:
 
 #   containerSecurityContext: {}
 
+#   annotations: {}
+
 # dependency chart values
 grafana:
   enabled: true
@@ -200,6 +204,8 @@ lake:
 
   containerSecurityContext: {}
 
+  podAnnotations: {}
+
 ui:
   image:
     repository: devlake.docker.scarf.sh/apache/devlake-config-ui
@@ -223,6 +229,8 @@ ui:
 
   extraLabels: {}
 
+  podAnnotations: {}
+
   ## SecurityContext holds pod-level security attributes and common container 
settings.
   ## This defaults to non root user with uid 101 and gid 1000. 
*v1.PodSecurityContext  false
   ## ref: 
https://kubernetes.io/docs/tasks/configure-pod-container/security-context/

Reply via email to