Skip to content

Commit d7f2dde

Browse files
authored
[cubestore] made initRouter image repository and tag configurable (removed static reference to dockerhub / busybox) (gadsme#36)
Signed-off-by: Christopher Klug <[email protected]>
1 parent 56cc4ca commit d7f2dde

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

charts/cubestore/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ By default, local dir is not persisted. You can enable persistence on router and
209209
| `workers.spreadConstraints` | Topology spread constraint for pod assignment | `[]` |
210210
| `workers.resources` | Define resources requests and limits for single Pods | `{}` |
211211
| `workers.service.annotations` | Additional custom annotations for workers service | `{}` |
212+
| `workers.initRouter.image.repository` | Defines the image repository for the init-router initContainer | `busybox` |
213+
| `workers.initRouter.image.tag` | Defines the image tag for the init-router initContainer | `latest` |
212214
| `workers.initRouter.resources` | Defines resources for init-router initContainer | `{}` |
213215

214216
### Statsd exporter parameters

charts/cubestore/templates/workers/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ spec:
128128
{{- end }}
129129
initContainers:
130130
- name: init-router
131-
image: busybox
131+
image: "{{ .Values.workers.initRouter.image.repository }}:{{ .Values.workers.initRouter.image.tag }}"
132132
command: ['sh', '-c', 'until nc -vz {{ printf "%s-router" (include "cubestore.fullname" .)}} {{ .Values.router.metaPort }}; do echo "Waiting for router"; sleep 2; done;']
133133
{{- if .Values.workers.initRouter.resources }}
134134
resources:

charts/cubestore/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,15 @@ workers:
446446

447447
## Configurations for init-router initContainer
448448
initRouter:
449+
image:
450+
## Docker initRouter image repository
451+
##
452+
repository: busybox
453+
454+
## Docker initRouter image tag
455+
##
456+
tag: latest
457+
449458
## Define resources requests and limits for single Pods.
450459
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
451460
##

0 commit comments

Comments
 (0)