[CONTRIB] Use proper image for netbox provision job 23/107923/2
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 19 May 2020 21:50:11 +0000 (23:50 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 26 May 2020 16:09:33 +0000 (16:09 +0000)
netbox was using readiness image to run its job. This is not the
proper usage of this image and recently it started failing because
bash is no longer available in this image.

As the script does not containt bash-specific construcitons let's
change the image to curl one and just use whatever shell is there.

Issue-ID: OOM-2406
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: I0cc99c6d8fe0dbe59ee982d255753d149fcdd3eb

kubernetes/contrib/components/netbox/charts/netbox-app/resources/config/provisioning/provision.sh
kubernetes/contrib/components/netbox/charts/netbox-app/templates/job.yaml
kubernetes/contrib/components/netbox/charts/netbox-app/values.yaml

index f400277..7586a6c 100644 (file)
@@ -48,12 +48,12 @@ spec:
               fieldPath: metadata.namespace
       containers:
       - name: {{ include "common.name" . }}-provisioning-job
-        image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
+        image: "{{ .Values.global.dockerHubRepository }}/{{ .Values.global.curlImage }}"
         volumeMounts:
         - name: {{ include "common.fullname" . }}-provisioning
           mountPath: /tmp
         command:
-        - /bin/bash
+        - /bin/sh
         - ./tmp/provision.sh
       volumes:
         - name: {{ include "common.fullname" . }}-provisioning
index ddfdc4b..ff02e27 100755 (executable)
@@ -42,6 +42,9 @@ config:
   superuserName: admin
   superuserEmail: admin@onap.org
 
+  curlImage: curlimages/curl:7.69.1
+  dockerHubRepository: docker.io
+
 repository: netboxcommunity
 image: netbox:v2.5.8