From 9a3f5e5a13817644ab42e572b83f5bf980b50847 Mon Sep 17 00:00:00 2001 From: Niladri Halder Date: Fri, 13 Sep 2024 15:28:44 +0530 Subject: [PATCH] feat(charts): add analytics ID and KEY envs to provisioner deployment (#201) * feat(charts): add analytics ID and KEY envs to provisioner deployment Signed-off-by: Niladri Halder * chore(charts): bump chart version Signed-off-by: Niladri Halder --------- Signed-off-by: Niladri Halder --- deploy/helm/charts/Chart.yaml | 4 ++-- deploy/helm/charts/README.md | 4 ++-- deploy/helm/charts/templates/deployment.yaml | 8 ++++++++ deploy/helm/charts/values.yaml | 4 ++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/deploy/helm/charts/Chart.yaml b/deploy/helm/charts/Chart.yaml index 945a6450..e06e74a4 100644 --- a/deploy/helm/charts/Chart.yaml +++ b/deploy/helm/charts/Chart.yaml @@ -4,10 +4,10 @@ description: Helm chart for OpenEBS Dynamic Local PV. For instructions to instal type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 4.1.0 +version: 4.1.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. -appVersion: 4.1.0 +appVersion: 4.1.1 icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/openebs/icon/color/openebs-icon-color.png home: http://www.openebs.io/ keywords: diff --git a/deploy/helm/charts/README.md b/deploy/helm/charts/README.md index 4aea0495..75730f76 100644 --- a/deploy/helm/charts/README.md +++ b/deploy/helm/charts/README.md @@ -68,7 +68,7 @@ helm install openebs-localpv openebs-localpv/localpv-provisioner --namespace ope | Parameter | Description | Default | | ------------------------------------------- |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------| -| `release.version` | LocalPV Provisioner release version | `4.1.0` | +| `release.version` | LocalPV Provisioner release version | `4.1.1` | | `analytics.enabled` | Enable sending stats to Google Analytics | `true` | | `analytics.pingInterval` | Duration(hours) between sending ping stat | `24h` | | `extraLabels` | Additional labels to add to all chart resources | `{}` | @@ -88,7 +88,7 @@ helm install openebs-localpv openebs-localpv/localpv-provisioner --namespace ope | `localpv.image.registry` | Registry for LocalPV Provisioner image | `""` | | `localpv.image.repository` | Image repository for LocalPV Provisioner | `openebs/localpv-provisioner` | | `localpv.image.pullPolicy` | Image pull policy for LocalPV Provisioner | `IfNotPresent` | -| `localpv.image.tag` | Image tag for LocalPV Provisioner | `4.1.0` | +| `localpv.image.tag` | Image tag for LocalPV Provisioner | `4.1.1` | | `localpv.updateStrategy.type` | Update strategy for LocalPV Provisioner | `RollingUpdate` | | `localpv.annotations` | Annotations for LocalPV Provisioner metadata | `""` | | `localpv.podAnnotations` | Annotations for LocalPV Provisioner pods metadata | `""` | diff --git a/deploy/helm/charts/templates/deployment.yaml b/deploy/helm/charts/templates/deployment.yaml index cc0f86dd..7976b463 100644 --- a/deploy/helm/charts/templates/deployment.yaml +++ b/deploy/helm/charts/templates/deployment.yaml @@ -78,6 +78,14 @@ spec: # default base path on the node where host-path PVs will be provisioned. - name: OPENEBS_IO_ENABLE_ANALYTICS value: "{{ .Values.analytics.enabled }}" + {{- if .Values.analytics.gaId }} + - name: GA_ID + value: {{ .Values.analytics.gaId | quote }} + {{- end }} + {{- if .Values.analytics.gaKey }} + - name: GA_KEY + value: {{ .Values.analytics.gaKey | quote }} + {{- end }} - name: OPENEBS_IO_BASE_PATH value: "{{ .Values.localpv.basePath }}" - name: OPENEBS_IO_HELPER_IMAGE diff --git a/deploy/helm/charts/values.yaml b/deploy/helm/charts/values.yaml index 14b15def..6d633ec4 100644 --- a/deploy/helm/charts/values.yaml +++ b/deploy/helm/charts/values.yaml @@ -3,7 +3,7 @@ # Declare variables to be passed into your templates. release: - version: "4.1.0" + version: "4.1.1" rbac: # rbac.create: `true` if rbac resources should be created @@ -19,7 +19,7 @@ localpv: # For example : quay.io/ is a correct value here and quay.io is incorrect registry: repository: openebs/provisioner-localpv - tag: 4.1.0 + tag: 4.1.1 pullPolicy: IfNotPresent updateStrategy: type: RollingUpdate