diff --git a/charts/k6-loadtester/Chart.yaml b/charts/k6-loadtester/Chart.yaml index 9324859..3eb9106 100644 --- a/charts/k6-loadtester/Chart.yaml +++ b/charts/k6-loadtester/Chart.yaml @@ -10,4 +10,11 @@ keywords: - flagger - canary - webhook - - k6 \ No newline at end of file + - k6 +home: https://github.com/grafana/flagger-k6-webhook +maintainers: + - name: julienduchesne +annotations: + artifacthub.io/changes: |- + - kind: updated + description: Support initContainers and arbitrary volumes \ No newline at end of file diff --git a/charts/k6-loadtester/templates/deployment.yaml b/charts/k6-loadtester/templates/deployment.yaml index 469d362..65841fd 100644 --- a/charts/k6-loadtester/templates/deployment.yaml +++ b/charts/k6-loadtester/templates/deployment.yaml @@ -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: @@ -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 }} diff --git a/charts/k6-loadtester/values.yaml b/charts/k6-loadtester/values.yaml index e0905d3..4f08664 100644 --- a/charts/k6-loadtester/values.yaml +++ b/charts/k6-loadtester/values.yaml @@ -63,4 +63,15 @@ webhook: # A list of configurable variables vars: "K6_CLOUD_TOKEN" : "" - "SLACK_TOKEN" : "" \ No newline at end of file + "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: [] \ No newline at end of file