From c6aaf43ec934cbfca45bf53ee51bdba935926725 Mon Sep 17 00:00:00 2001 From: Rebecca Valente Date: Tue, 23 Sep 2025 12:10:33 -0300 Subject: [PATCH] (1.0.10) devops: add app.kubernetes.io/component=website label to wordpress-helm deployment (metadata/spec/template) and service spec --- charts/wordpress-helm/templates/deployment.yaml | 4 ++++ charts/wordpress-helm/templates/service.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/charts/wordpress-helm/templates/deployment.yaml b/charts/wordpress-helm/templates/deployment.yaml index 361ddc1..916f440 100644 --- a/charts/wordpress-helm/templates/deployment.yaml +++ b/charts/wordpress-helm/templates/deployment.yaml @@ -4,6 +4,8 @@ metadata: name: {{ .Values.fullname }} labels: {{- include "wordpress-website.labels" . | nindent 4 }} + app.kubernetes.io/component: website + spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} @@ -11,6 +13,7 @@ spec: selector: matchLabels: {{- include "wordpress-website.selectorLabels" . | nindent 6 }} + app.kubernetes.io/component: website template: metadata: {{- with .Values.podAnnotations }} @@ -19,6 +22,7 @@ spec: {{- end }} labels: {{- include "wordpress-website.selectorLabels" . | nindent 8 }} + app.kubernetes.io/component: website spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: diff --git a/charts/wordpress-helm/templates/service.yaml b/charts/wordpress-helm/templates/service.yaml index 49c2cf3..dba3cbf 100644 --- a/charts/wordpress-helm/templates/service.yaml +++ b/charts/wordpress-helm/templates/service.yaml @@ -13,3 +13,4 @@ spec: name: http selector: {{- include "wordpress-website.selectorLabels" . | nindent 4 }} + app.kubernetes.io/component: website