Skip to content

Commit

Permalink
Support initContainers and arbitrary volumes (#19)
Browse files Browse the repository at this point in the history
* Support initContainers and arbitrary volumes

Signed-off-by: David Young <davidy@funkypenguin.co.nz>

* Bump Chart.yaml version for this PR

Signed-off-by: David Young <davidy@funkypenguin.co.nz>

Signed-off-by: David Young <davidy@funkypenguin.co.nz>
Co-authored-by: Julien Duchesne <julien.duchesne@grafana.com>
  • Loading branch information
funkypenguin and julienduchesne authored Sep 2, 2022
1 parent 72ff806 commit 2f411f4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
9 changes: 8 additions & 1 deletion charts/k6-loadtester/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,11 @@ keywords:
- flagger
- canary
- webhook
- k6
- k6
home: https://github.com/grafana/flagger-k6-webhook
maintainers:
- name: julienduchesne
annotations:
artifacthub.io/changes: |-
- kind: updated
description: Support initContainers and arbitrary volumes
8 changes: 7 additions & 1 deletion charts/k6-loadtester/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
volumes:
{{- toYaml .Values.volumes | nindent 8 }}
initContainers:
{{ toYaml .Values.initContainers | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand All @@ -47,7 +51,9 @@ spec:
secretKeyRef:
name: {{ $.Values.webhook.name }}
key: {{ $k | quote }}
{{- end }}
{{- end }}
volumeMounts:
{{- toYaml .Values.volumeMounts | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
13 changes: 12 additions & 1 deletion charts/k6-loadtester/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,15 @@ webhook:
# A list of configurable variables
vars:
"K6_CLOUD_TOKEN" : ""
"SLACK_TOKEN" : ""
"SLACK_TOKEN" : ""

# Additional volumes Deployment (can be used with initContainers, below)
volumes: []

## InitContainers allows injecting additional initContainers. This can be used in combination
## with volumes (above) and volumeMounts (below) to import test assets from configmaps, or
## additional container images
initContainers: []

# Additional VolumeMounts on the Deployment
volumeMounts: []

0 comments on commit 2f411f4

Please sign in to comment.