diff --git a/wiz-kubernetes-integration/Chart.yaml b/wiz-kubernetes-integration/Chart.yaml index f351728a..9ce33d75 100644 --- a/wiz-kubernetes-integration/Chart.yaml +++ b/wiz-kubernetes-integration/Chart.yaml @@ -17,5 +17,5 @@ dependencies: condition: wiz-admission-controller.enabled - name: wiz-sensor repository: https://wiz-sec.github.io/charts - version: ">=1.0.5429" + version: ">=1.0.5443" condition: wiz-sensor.enabled diff --git a/wiz-sensor/Chart.yaml b/wiz-sensor/Chart.yaml index 34e0b87e..27edc100 100644 --- a/wiz-sensor/Chart.yaml +++ b/wiz-sensor/Chart.yaml @@ -3,5 +3,5 @@ description: Wiz Sensor helm chart home: https://www.wiz.io/ name: wiz-sensor type: application -version: 1.0.5429 +version: 1.0.5443 appVersion: 1.0.5429 diff --git a/wiz-sensor/templates/_helpers.tpl b/wiz-sensor/templates/_helpers.tpl index 21fc2757..f1374687 100644 --- a/wiz-sensor/templates/_helpers.tpl +++ b/wiz-sensor/templates/_helpers.tpl @@ -40,7 +40,6 @@ Common labels {{- $dsimageparts:= split "@" .Values.image.diskScanTag }} helm.sh/chart: {{ include "wiz-sensor.chart" . }} image/tag: {{ $imageparts._0 }} -image/registry: {{ coalesce .Values.global.image.registry .Values.image.registry }} dsimage/tag: {{ $dsimageparts._0 }} {{ include "wiz-sensor.selectorLabels" . }} {{- if .Chart.AppVersion }} diff --git a/wiz-sensor/templates/daemonset.yaml b/wiz-sensor/templates/daemonset.yaml index ff61589d..d9e9dd25 100644 --- a/wiz-sensor/templates/daemonset.yaml +++ b/wiz-sensor/templates/daemonset.yaml @@ -239,9 +239,7 @@ spec: fieldRef: fieldPath: metadata.labels['image/tag'] - name: POD_IMAGE_REGISTRY - valueFrom: - fieldRef: - fieldPath: metadata.labels['image/registry'] + value: {{ coalesce .Values.global.image.registry .Values.image.registry }} {{- end }} - name: POD_MEM_LIMITS valueFrom: @@ -408,9 +406,9 @@ spec: - name: WIZ_DISK_SCANNER_REPOSITORY value: "{{ .Values.image.diskScanRepository }}" - name: WIZ_IMAGE_REGISTRY - valueFrom: - fieldRef: - fieldPath: metadata.labels['image/registry'] + value: "{{ coalesce .Values.global.image.registry .Values.image.registry }}" + - name: WIZ_SENSOR_CLUSTER_NAME + value: "{{ coalesce .Values.global.clusterDisplayName .Values.sensorClusterName }}" - name: WIZ_HELM_VERSION valueFrom: fieldRef: