diff --git a/hades/templates/deployment.yaml b/hades/templates/deployment.yaml index 9bd698d..c612967 100644 --- a/hades/templates/deployment.yaml +++ b/hades/templates/deployment.yaml @@ -23,6 +23,9 @@ spec: {{- end }} labels: {{- include "hades.selectorLabels" . | nindent 8 }} + {{- with .Values.commonLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: diff --git a/hades/values-dev.yaml b/hades/values-dev.yaml index 4de47c6..2466999 100644 --- a/hades/values-dev.yaml +++ b/hades/values-dev.yaml @@ -3,6 +3,10 @@ replicaCount: 1 +# Common labels for Backstage Kubernetes plugin discovery +commonLabels: + backstage.io/kubernetes-id: "hades-service" + image: repository: localhost:5001/europe-west1-docker.pkg.dev/os-docker-images/onlinesales/prod/services/java/hadesv2 pullPolicy: IfNotPresent diff --git a/hades/values.yaml b/hades/values.yaml index d3ddede..573d64c 100644 --- a/hades/values.yaml +++ b/hades/values.yaml @@ -9,9 +9,8 @@ replicaCount: 1 # Common labels to add to all resources # These labels will be applied to all hades resources and MySQL pods -commonLabels: {} - # Example usage: - # backstage.io/kubernetes-id: "hades-service" +commonLabels: + backstage.io/kubernetes-id: "hades-service" image: repository: localhost:5001/prj-onlinesales-prod-01/os-docker-images/onlinesales/prod/services/java/hadesv2