Skip to content

Commit

Permalink
feat: add support for external global template
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 committed Sep 26, 2024
1 parent a278faa commit 02bba8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions charts/testkube-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ A Helm chart for Testkube api
| global.testWorkflows.createOfficialTemplates | bool | `true` | |
| global.testWorkflows.createServiceAccountTemplates | bool | `true` | |
| global.testWorkflows.globalTemplate.enabled | bool | `false` | |
| global.testWorkflows.globalTemplate.external | bool | `false` | |
| global.testWorkflows.globalTemplate.name | string | `"global-template"` | |
| global.testWorkflows.globalTemplate.spec | object | `{}` | |
| global.tls.caCertPath | string | `""` | |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.global.testWorkflows.globalTemplate.enabled }}
{{- if and .Values.global.testWorkflows.globalTemplate.enabled (not .Values.global.testWorkflows.globalTemplate.enabled) }}
apiVersion: testworkflows.testkube.io/v1
kind: TestWorkflowTemplate
metadata:
Expand Down
2 changes: 2 additions & 0 deletions charts/testkube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ global:
enabled: false
# -- Name of the global template
name: global-template
# -- Is the global template sourced externally? (otherwise it's created from spec below)
external: false
# -- Specification for the global template
spec: {}
# spec:
Expand Down

0 comments on commit 02bba8f

Please sign in to comment.