Skip to content

Commit

Permalink
Add tests.enabled to values.yaml to allow tests to be turned off
Browse files Browse the repository at this point in the history
  • Loading branch information
zalbiraw committed Nov 15, 2024
1 parent 4e0885e commit aae12db
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 3 deletions.
2 changes: 2 additions & 0 deletions tyk-data-plane/templates/tests/data-plane-test.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.tests.enabled -}}
apiVersion: v1
kind: Pod
metadata:
Expand Down Expand Up @@ -39,3 +40,4 @@ spec:
configMap:
name: test-tyk-data-plane-map
defaultMode: 0777
{{- end }}
4 changes: 3 additions & 1 deletion tyk-data-plane/templates/tests/script-configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.tests.enabled -}}
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -6,4 +7,5 @@ metadata:
"helm.sh/hook-delete-policy": hook-succeeded,hook-failed
"helm.sh/hook": test
data:
{{ (.Files.Glob "scripts/tests/data-plane-test.sh").AsConfig | indent 2 }}
{{ (.Files.Glob "scripts/tests/data-plane-test.sh").AsConfig | indent 2 }}
{{- end }}
2 changes: 2 additions & 0 deletions tyk-data-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -766,3 +766,5 @@ tyk-pump:
# mountPath: /etc/ssl/certs/ca-certs.crt
# readOnly: true
extraVolumeMounts: []
tests:
enabled: true

Check failure on line 770 in tyk-data-plane/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

[new-line-at-end-of-file] no new line character at the end of file
2 changes: 2 additions & 0 deletions tyk-oss/templates/tests/oss-test.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.tests.enabled -}}
apiVersion: v1
kind: Pod
metadata:
Expand Down Expand Up @@ -40,3 +41,4 @@ spec:
configMap:
name: test-tyk-oss-map
defaultMode: 0777
{{- end }}
4 changes: 3 additions & 1 deletion tyk-oss/templates/tests/script-configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.tests.enabled -}}
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -6,4 +7,5 @@ metadata:
"helm.sh/hook-delete-policy": hook-succeeded,hook-failed
"helm.sh/hook": test
data:
{{ (.Files.Glob "scripts/tests/oss-test.sh").AsConfig | indent 2 }}
{{ (.Files.Glob "scripts/tests/oss-test.sh").AsConfig | indent 2 }}
{{- end }}
2 changes: 2 additions & 0 deletions tyk-oss/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -802,3 +802,5 @@ tyk-pump:
# mountPath: /etc/ssl/certs/ca-certs.crt
# readOnly: true
extraVolumeMounts: []
tests:
enabled: true
4 changes: 3 additions & 1 deletion tyk-stack/templates/tests/script-configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.tests.enabled -}}
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -6,4 +7,5 @@ metadata:
"helm.sh/hook-delete-policy": hook-succeeded,hook-failed
"helm.sh/hook": test
data:
{{ (.Files.Glob "scripts/tests/tyk-stack-test.sh").AsConfig | indent 2 }}
{{ (.Files.Glob "scripts/tests/tyk-stack-test.sh").AsConfig | indent 2 }}
{{- end }}
2 changes: 2 additions & 0 deletions tyk-stack/templates/tests/stack-test.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.tests.enabled -}}
apiVersion: v1
kind: Pod
metadata:
Expand Down Expand Up @@ -39,3 +40,4 @@ spec:
configMap:
name: test-tyk-stack-map
defaultMode: 0777
{{- end }}
2 changes: 2 additions & 0 deletions tyk-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1446,3 +1446,5 @@ tyk-dev-portal:

# podLabels specifies labels to be added in Tyk Developer Portal Pod
podLabels: {}
tests:
enabled: true

0 comments on commit aae12db

Please sign in to comment.