From 27e6b988849c01bb0d50f1cef590e4698e8470b6 Mon Sep 17 00:00:00 2001 From: Kartik Pattaswamy Date: Fri, 4 Oct 2024 20:33:06 +0000 Subject: [PATCH] add parantheses and set defaults Signed-off-by: Kartik Pattaswamy --- charts/newrelic-pixie/templates/job.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/newrelic-pixie/templates/job.yaml b/charts/newrelic-pixie/templates/job.yaml index 1071e40d7..25c9ba5ed 100644 --- a/charts/newrelic-pixie/templates/job.yaml +++ b/charts/newrelic-pixie/templates/job.yaml @@ -36,8 +36,8 @@ spec: restartPolicy: Never initContainers: - name: cluster-registration-wait - image: "{{ .Values.clusterRegistrationWaitImage.repository }}:{{ .Values.clusterRegistrationWaitImage.tag }}" - imagePullPolicy: "{{ .Values.clusterRegistrationWaitImage.pullPolicy }}" + image: "{{ (.Values.clusterRegistrationWaitImage).repository | default "gcr.io/pixie-oss/pixie-dev-public/curl" }}:{{ (.Values.clusterRegistrationWaitImage).tag | default "1.0" }}" + imagePullPolicy: "{{ (.Values.clusterRegistrationWaitImage).pullPolicy | default "IfNotPresent" }}" command: ['sh', '-c', 'set -x; URL="https://${SERVICE_NAME}:${SERVICE_PORT}/readyz"; until [ $(curl -m 0.5 -s -o /dev/null -w "%{http_code}" -k ${URL}) -eq 200 ]; do