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 6303ad3  Add extraLabels (#323)
6303ad3 is described below

commit 6303ad32bdbb425fa3d17d89c3918b54a909a786
Author: Juan C. Mancebo <[email protected]>
AuthorDate: Tue Feb 18 04:10:00 2025 +0100

    Add extraLabels (#323)
---
 charts/devlake/templates/ingresses.yaml |  3 +++
 charts/devlake/templates/services.yaml  |  9 +++++++++
 charts/devlake/values.yaml              | 10 +++++++++-
 3 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/charts/devlake/templates/ingresses.yaml 
b/charts/devlake/templates/ingresses.yaml
index 568b56c..3bce0c4 100644
--- a/charts/devlake/templates/ingresses.yaml
+++ b/charts/devlake/templates/ingresses.yaml
@@ -35,6 +35,9 @@ metadata:
   name: {{ $fullName }}
   labels:
     {{- include "devlake.labels" . | nindent 4 }}
+    {{- with .Values.ingress.extraLabels }}
+    {{- toYaml . | nindent 4 }}
+    {{- end }}
   annotations:
   {{- with .Values.ingress.annotations }}
     {{- toYaml . | nindent 4 }}
diff --git a/charts/devlake/templates/services.yaml 
b/charts/devlake/templates/services.yaml
index 081a956..eb8c6ec 100644
--- a/charts/devlake/templates/services.yaml
+++ b/charts/devlake/templates/services.yaml
@@ -25,6 +25,9 @@ metadata:
   name: {{ include "devlake.fullname" . }}-mysql
   labels:
     {{- include "devlake.labels" . | nindent 4 }}
+    {{- with .Values.mysql.service.extraLabels }}
+    {{- toYaml . | nindent 4 }}
+    {{- end }}
 spec:
   type: {{ .Values.mysql.service.type }}
   {{- if and (eq .Values.mysql.service.type "LoadBalancer") 
.Values.mysql.service.loadBalancerIP }}
@@ -51,6 +54,9 @@ metadata:
   name: {{ include "devlake.fullname" . }}-lake
   labels:
     {{- include "devlake.labels" . | nindent 4 }}
+    {{- with .Values.lake.service.extraLabels }}
+    {{- toYaml . | nindent 4 }}
+    {{- end }}
 spec:
   selector:
     {{- include "devlake.selectorLabels" . | nindent 4 }}
@@ -69,6 +75,9 @@ metadata:
   name: {{ include "devlake.fullname" . }}-ui
   labels:
     {{- include "devlake.labels" . | nindent 4 }}
+    {{- with .Values.ui.service.extraLabels }}
+    {{- toYaml . | nindent 4 }}
+    {{- end }}
 spec:
   type: {{ .Values.service.type }}
   selector:
diff --git a/charts/devlake/values.yaml b/charts/devlake/values.yaml
index 42a4865..4bb5f5a 100644
--- a/charts/devlake/values.yaml
+++ b/charts/devlake/values.yaml
@@ -91,6 +91,7 @@ mysql:
     type: "ClusterIP"
     nodePort: ""
     loadBalancerIP: ""
+    extraLabels: {}
 
 # pgsql:
 #   # if use external pgsql server, please set true
@@ -253,6 +254,9 @@ lake:
   deployment:
     extraLabels: {}
 
+  service:
+    extraLabels: {}
+
   # Additional volumes to include in the Pod. Example:
   #
   # volumes:
@@ -339,6 +343,9 @@ ui:
   deployment:
     extraLabels: {}
 
+  service:
+    extraLabels: {}
+
   ## Side Contaainer Configuration
   extraContainers: []
 #  - name: vault-agent
@@ -377,6 +384,7 @@ ingress:
   className:
   # domain name for hosting devlake, must be set if ingress is enabled
   hostname: localhost
+  extraLabels: {}
   # annotations required for your ingress controller; see the examples below
   # for nginx, use the first two lines of annotations
   # for alb (w/ external-dns), use the last 5 (6) lines of annotations
@@ -428,4 +436,4 @@ extraResources: []
   #   type: Opaque
   #   stringData:
   #     username: admin
-  #     password: mypassword
\ No newline at end of file
+  #     password: mypassword

Reply via email to