From 6f69a9d707239f8ef17c95deece437cda487507b Mon Sep 17 00:00:00 2001 From: Kyle Gochenour Date: Thu, 21 Nov 2019 12:09:29 -0800 Subject: [PATCH] Toggle for testframework (#18783) Signed-off-by: Kyle Gochenour --- stable/traefik/Chart.yaml | 2 +- stable/traefik/README.md | 1 + stable/traefik/templates/tests/test-configmap.yaml | 3 ++- stable/traefik/templates/tests/test.yaml | 2 ++ stable/traefik/values.yaml | 1 + 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/stable/traefik/Chart.yaml b/stable/traefik/Chart.yaml index 84178d5dd8..792cb641fc 100644 --- a/stable/traefik/Chart.yaml +++ b/stable/traefik/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: traefik -version: 1.81.0 +version: 1.82.0 appVersion: 1.7.19 description: A Traefik based Kubernetes ingress controller with Let's Encrypt support keywords: diff --git a/stable/traefik/README.md b/stable/traefik/README.md index 3e78112b6c..fac17bf90e 100644 --- a/stable/traefik/README.md +++ b/stable/traefik/README.md @@ -247,6 +247,7 @@ The following table lists the configurable parameters of the Traefik chart and t | `autoscaling` | HorizontalPodAutoscaler for the traefik Deployment | `{}` | | `configFiles` | Config files to make available in the deployment. key=filename, value=file contents | `{}` | | `secretFiles` | Secret files to make available in the deployment. key=filename, value=file contents | `{}` | +| `testFramework.enabled` | Enables test-framework | `true` | | `testFramework.image` | `test-framework` image repository. | `dduportal/bats` | | `testFramework.tag` | `test-framework` image tag. | `0.4.0` | | `forwardAuth.entryPoints` | Enable forward authentication for these entryPoints: "http", "https", "httpn" | | diff --git a/stable/traefik/templates/tests/test-configmap.yaml b/stable/traefik/templates/tests/test-configmap.yaml index 5c19b2317e..127330940a 100644 --- a/stable/traefik/templates/tests/test-configmap.yaml +++ b/stable/traefik/templates/tests/test-configmap.yaml @@ -1,3 +1,4 @@ +{{- if .Values.testFramework.enabled }} apiVersion: v1 kind: ConfigMap metadata: @@ -12,4 +13,4 @@ data: @test "Test Access" { curl -D - http://{{ template "traefik.fullname" . }}/ } - +{{- end }} diff --git a/stable/traefik/templates/tests/test.yaml b/stable/traefik/templates/tests/test.yaml index e02ae98a41..48aab9d4bf 100644 --- a/stable/traefik/templates/tests/test.yaml +++ b/stable/traefik/templates/tests/test.yaml @@ -1,3 +1,4 @@ +{{- if .Values.testFramework.enabled }} apiVersion: v1 kind: Pod metadata: @@ -40,3 +41,4 @@ spec: - name: tools emptyDir: {} restartPolicy: Never +{{- end }} diff --git a/stable/traefik/values.yaml b/stable/traefik/values.yaml index b500e47d33..61b60fc17b 100644 --- a/stable/traefik/values.yaml +++ b/stable/traefik/values.yaml @@ -10,6 +10,7 @@ imageTag: 1.7.19 testFramework: + enabled: true image: "dduportal/bats" tag: "0.4.0"