Skip to content

Commit

Permalink
add parantheses and set defaults
Browse files Browse the repository at this point in the history
Signed-off-by: Kartik Pattaswamy <kpattaswamy@pixielabs.ai>
  • Loading branch information
kpattaswamy committed Oct 4, 2024
1 parent cf62364 commit 27e6b98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/newrelic-pixie/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27e6b98

Please sign in to comment.