Skip to content

Commit ec2d5b2

Browse files
authored
fix: pin busybox image digest and add pull policy for init container (#132)
Address issue https://github.com/hyperdxio/helm-charts/issues/118
1 parent 6bafe5c commit ec2d5b2

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.changeset/slimy-flowers-stick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"helm-charts": patch
3+
---
4+
5+
fix: pin busybox image digest and add pull policy for init container

charts/hdx-oss-v2/templates/hyperdx-deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ spec:
5050
{{- if .Values.mongodb.enabled }}
5151
initContainers:
5252
- name: wait-for-mongodb
53-
image: busybox
53+
image: "busybox@sha256:1fcf5df59121b92d61e066df1788e8df0cc35623f5d62d9679a41e163b6a0cdb"
54+
imagePullPolicy: IfNotPresent
5455
command: ['sh', '-c', 'until nc -z {{ include "hdx-oss.fullname" . }}-mongodb {{ .Values.mongodb.port }}; do echo waiting for mongodb; sleep 2; done;']
5556
{{- end }}
5657
containers:

charts/hdx-oss-v2/tests/hyperdx-deployment_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ tests:
119119
value: wait-for-mongodb
120120
- equal:
121121
path: spec.template.spec.initContainers[0].image
122-
value: busybox
122+
value: busybox@sha256:1fcf5df59121b92d61e066df1788e8df0cc35623f5d62d9679a41e163b6a0cdb
123123
- contains:
124124
path: spec.template.spec.initContainers[0].command
125125
content: sh

0 commit comments

Comments
 (0)