From 768fa401c15e16d92e7d987f479e367acb4d0a24 Mon Sep 17 00:00:00 2001 From: Mac Browning Date: Mon, 22 Apr 2024 11:09:28 -0700 Subject: [PATCH] Add appLabels to support labeling the application resource. --- charts/vantage-kubernetes-agent/Chart.yaml | 2 +- charts/vantage-kubernetes-agent/templates/application.yaml | 3 +++ charts/vantage-kubernetes-agent/values.schema.json | 3 +++ charts/vantage-kubernetes-agent/values.yaml | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/vantage-kubernetes-agent/Chart.yaml b/charts/vantage-kubernetes-agent/Chart.yaml index adb11ab..d86e37b 100644 --- a/charts/vantage-kubernetes-agent/Chart.yaml +++ b/charts/vantage-kubernetes-agent/Chart.yaml @@ -2,6 +2,6 @@ apiVersion: v2 name: vantage-kubernetes-agent description: Provisions the Vantage Kubernetes agent. type: application -version: 1.0.31 +version: 1.0.32 appVersion: "1.0.24" icon: "https://assets.vantage.sh/www/vantage_avatar-social.jpg" diff --git a/charts/vantage-kubernetes-agent/templates/application.yaml b/charts/vantage-kubernetes-agent/templates/application.yaml index bbb143b..3b85138 100644 --- a/charts/vantage-kubernetes-agent/templates/application.yaml +++ b/charts/vantage-kubernetes-agent/templates/application.yaml @@ -13,6 +13,9 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "vantage-kubernetes-agent.labels" . | nindent 4 }} + {{- with .Values.appLabels }} + {{- toYaml . | nindent 4 }} + {{- end}} spec: replicas: 1 {{- if .Values.agent.useDeployment }} diff --git a/charts/vantage-kubernetes-agent/values.schema.json b/charts/vantage-kubernetes-agent/values.schema.json index 31e8d69..0e3f17a 100644 --- a/charts/vantage-kubernetes-agent/values.schema.json +++ b/charts/vantage-kubernetes-agent/values.schema.json @@ -51,6 +51,9 @@ } } }, + "appLabels": { + "type": "object" + }, "clusterRole": { "type": "object", "properties": { diff --git a/charts/vantage-kubernetes-agent/values.yaml b/charts/vantage-kubernetes-agent/values.yaml index f0d3bf7..d88ff55 100644 --- a/charts/vantage-kubernetes-agent/values.yaml +++ b/charts/vantage-kubernetes-agent/values.yaml @@ -90,6 +90,7 @@ clusterRole: clusterRoleBinding: annotations: {} +appLabels: {} podLabels: {} podAnnotations: {} securityContext: {}