From 8955b455af7fe2ae4c0af5c106c28c079eaa33b2 Mon Sep 17 00:00:00 2001 From: Amey Karandikar Date: Tue, 9 Jul 2024 17:24:36 +0530 Subject: [PATCH] add metadata.uid to environment variable --- charts/accessnode/Chart.yaml | 2 +- charts/accessnode/templates/_cv.tpl | 4 ++++ charts/commandcenter/Chart.yaml | 2 +- charts/commandcenter/templates/_cv.tpl | 4 ++++ charts/config/Chart.yaml | 2 +- charts/config/templates/_cv.tpl | 4 ++++ charts/cs/Chart.yaml | 2 +- charts/cs/templates/_cv.tpl | 4 ++++ charts/mediaagent/Chart.yaml | 2 +- charts/mediaagent/templates/_cv.tpl | 4 ++++ charts/networkgateway/Chart.yaml | 2 +- charts/networkgateway/templates/_cv.tpl | 4 ++++ charts/webserver/Chart.yaml | 2 +- charts/webserver/templates/_cv.tpl | 4 ++++ 14 files changed, 35 insertions(+), 7 deletions(-) diff --git a/charts/accessnode/Chart.yaml b/charts/accessnode/Chart.yaml index 2a4d962..59f0346 100644 --- a/charts/accessnode/Chart.yaml +++ b/charts/accessnode/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: accessnode description: A Helm chart for creating an access node type: application -version: "1.0.3" +version: "1.0.4" appVersion: "1" diff --git a/charts/accessnode/templates/_cv.tpl b/charts/accessnode/templates/_cv.tpl index 270a8c6..5399b7b 100644 --- a/charts/accessnode/templates/_cv.tpl +++ b/charts/accessnode/templates/_cv.tpl @@ -250,6 +250,10 @@ cv.commonenv creates environment variables that are common to all deployments valueFrom: fieldRef: fieldPath: metadata.namespace + - name: CV_POD_ID + valueFrom: + fieldRef: + fieldPath: metadata.uid {{- end -}} diff --git a/charts/commandcenter/Chart.yaml b/charts/commandcenter/Chart.yaml index f9ef5fc..1dfc2d2 100644 --- a/charts/commandcenter/Chart.yaml +++ b/charts/commandcenter/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: commandcenter description: A Helm chart for creating the command center type: application -version: "1.0.3" +version: "1.0.4" appVersion: "1" diff --git a/charts/commandcenter/templates/_cv.tpl b/charts/commandcenter/templates/_cv.tpl index 270a8c6..5399b7b 100644 --- a/charts/commandcenter/templates/_cv.tpl +++ b/charts/commandcenter/templates/_cv.tpl @@ -250,6 +250,10 @@ cv.commonenv creates environment variables that are common to all deployments valueFrom: fieldRef: fieldPath: metadata.namespace + - name: CV_POD_ID + valueFrom: + fieldRef: + fieldPath: metadata.uid {{- end -}} diff --git a/charts/config/Chart.yaml b/charts/config/Chart.yaml index b751efa..bd0480f 100644 --- a/charts/config/Chart.yaml +++ b/charts/config/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: config description: A Helm chart for creating the base configuration and secret for all cv components in the namespace type: application -version: "1.0.3" +version: "1.0.4" appVersion: "1" diff --git a/charts/config/templates/_cv.tpl b/charts/config/templates/_cv.tpl index 270a8c6..5399b7b 100644 --- a/charts/config/templates/_cv.tpl +++ b/charts/config/templates/_cv.tpl @@ -250,6 +250,10 @@ cv.commonenv creates environment variables that are common to all deployments valueFrom: fieldRef: fieldPath: metadata.namespace + - name: CV_POD_ID + valueFrom: + fieldRef: + fieldPath: metadata.uid {{- end -}} diff --git a/charts/cs/Chart.yaml b/charts/cs/Chart.yaml index 908b02a..14067f7 100644 --- a/charts/cs/Chart.yaml +++ b/charts/cs/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: commserve description: A Helm chart for creating the CS component type: application -version: "1.0.3" +version: "1.0.4" appVersion: "1" diff --git a/charts/cs/templates/_cv.tpl b/charts/cs/templates/_cv.tpl index 270a8c6..5399b7b 100644 --- a/charts/cs/templates/_cv.tpl +++ b/charts/cs/templates/_cv.tpl @@ -250,6 +250,10 @@ cv.commonenv creates environment variables that are common to all deployments valueFrom: fieldRef: fieldPath: metadata.namespace + - name: CV_POD_ID + valueFrom: + fieldRef: + fieldPath: metadata.uid {{- end -}} diff --git a/charts/mediaagent/Chart.yaml b/charts/mediaagent/Chart.yaml index 51e1aa7..15e0944 100644 --- a/charts/mediaagent/Chart.yaml +++ b/charts/mediaagent/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: mediaagent description: A Helm chart for creating a media agent type: application -version: "1.0.3" +version: "1.0.4" appVersion: "1" diff --git a/charts/mediaagent/templates/_cv.tpl b/charts/mediaagent/templates/_cv.tpl index 270a8c6..5399b7b 100644 --- a/charts/mediaagent/templates/_cv.tpl +++ b/charts/mediaagent/templates/_cv.tpl @@ -250,6 +250,10 @@ cv.commonenv creates environment variables that are common to all deployments valueFrom: fieldRef: fieldPath: metadata.namespace + - name: CV_POD_ID + valueFrom: + fieldRef: + fieldPath: metadata.uid {{- end -}} diff --git a/charts/networkgateway/Chart.yaml b/charts/networkgateway/Chart.yaml index ab94fec..2d5a270 100644 --- a/charts/networkgateway/Chart.yaml +++ b/charts/networkgateway/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: networkgateway description: A Helm chart for creating an FS agent which can serve as a network gateway type: application -version: "1.0.3" +version: "1.0.4" appVersion: "1" diff --git a/charts/networkgateway/templates/_cv.tpl b/charts/networkgateway/templates/_cv.tpl index 270a8c6..5399b7b 100644 --- a/charts/networkgateway/templates/_cv.tpl +++ b/charts/networkgateway/templates/_cv.tpl @@ -250,6 +250,10 @@ cv.commonenv creates environment variables that are common to all deployments valueFrom: fieldRef: fieldPath: metadata.namespace + - name: CV_POD_ID + valueFrom: + fieldRef: + fieldPath: metadata.uid {{- end -}} diff --git a/charts/webserver/Chart.yaml b/charts/webserver/Chart.yaml index e9a5b2c..ce65d9c 100644 --- a/charts/webserver/Chart.yaml +++ b/charts/webserver/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: webserver description: A Helm chart for creating the webserver type: application -version: "1.0.3" +version: "1.0.4" appVersion: "1" diff --git a/charts/webserver/templates/_cv.tpl b/charts/webserver/templates/_cv.tpl index 270a8c6..5399b7b 100644 --- a/charts/webserver/templates/_cv.tpl +++ b/charts/webserver/templates/_cv.tpl @@ -250,6 +250,10 @@ cv.commonenv creates environment variables that are common to all deployments valueFrom: fieldRef: fieldPath: metadata.namespace + - name: CV_POD_ID + valueFrom: + fieldRef: + fieldPath: metadata.uid {{- end -}}