From 67a3c303336450808d28505f90fb01660b9cd3aa Mon Sep 17 00:00:00 2001 From: Venkata Subbarao Chunduri Date: Tue, 7 May 2024 15:01:51 +0200 Subject: [PATCH] Dynamically build pod killer cache URL --- .../containers/_quobyte_pod_mount_monitor_container.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/csi-driver-templates/templates/pods/containers/_quobyte_pod_mount_monitor_container.tpl b/csi-driver-templates/templates/pods/containers/_quobyte_pod_mount_monitor_container.tpl index 39a2b26..84a79a3 100644 --- a/csi-driver-templates/templates/pods/containers/_quobyte_pod_mount_monitor_container.tpl +++ b/csi-driver-templates/templates/pods/containers/_quobyte_pod_mount_monitor_container.tpl @@ -14,10 +14,14 @@ args: - "--node_name=$(KUBE_NODE_NAME)" - "--driver_name={{ .Values.quobyte.csiProvisionerName }}" - - "--service_url=http://quobyte-pod-killer-cache:80/" + - "--service_url=http://quobyte-pod-killer-cache.$(NAMESPACE).svc.cluster.local:80/" - "--monitoring_interval={{ .Values.quobyte.podKiller.monitoringInterval }}" - "--role=monitor" env: + - name: NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace - name: NODE_ID valueFrom: fieldRef: