diff --git a/charts/podinfo/Chart.yaml b/charts/podinfo/Chart.yaml index f2d33f2e..eda7dc66 100644 --- a/charts/podinfo/Chart.yaml +++ b/charts/podinfo/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v1 -version: 2.0.1 +version: 2.1.0 appVersion: 1.4.0 name: podinfo engine: gotpl diff --git a/charts/podinfo/templates/canary.yaml b/charts/podinfo/templates/canary.yaml index 9fb007ec..08107f7f 100644 --- a/charts/podinfo/templates/canary.yaml +++ b/charts/podinfo/templates/canary.yaml @@ -38,8 +38,17 @@ spec: - name: request-duration threshold: {{ .Values.canary.thresholds.latency }} interval: 1m - {{- if .Values.canary.loadtest.enabled }} webhooks: + {{- if .Values.canary.helmtest.enabled }} + - name: "helm test" + type: pre-rollout + url: {{ .Values.canary.helmtest.url }} + timeout: 3m + metadata: + type: "helm" + cmd: "test {{ .Release.Name }} --cleanup" + {{- end }} + {{- if .Values.canary.loadtest.enabled }} - name: load-test-get url: {{ .Values.canary.loadtest.url }} timeout: 5s @@ -50,5 +59,5 @@ spec: timeout: 5s metadata: cmd: "hey -z 1m -q 5 -c 2 -m POST -d '{\"test\": true}' http://{{ template "podinfo.fullname" . }}.{{ .Release.Namespace }}:{{ .Values.service.port }}/echo" - {{- end }} + {{- end }} {{- end }} \ No newline at end of file diff --git a/charts/podinfo/values.yaml b/charts/podinfo/values.yaml index 2aaa0f3b..b1af8b6f 100644 --- a/charts/podinfo/values.yaml +++ b/charts/podinfo/values.yaml @@ -45,6 +45,10 @@ canary: enabled: false # load tester address url: http://flagger-loadtester.test/ + helmtest: + enabled: false + # helm tester address + url: http://flagger-helmtester.kube-system/ resources: limits: