Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(TKC-1673): add headless service and CRDs for distributed pods in TestWorkflows #805

2 changes: 1 addition & 1 deletion charts/testkube-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: testkube-api
description: A Helm chart for Testkube api
type: application
version: 1.17.10
version: 1.17.11
appVersion: 1.17.10
dependencies:
- name: global
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{- if .Values.global.testWorkflows.createAssistingPodsService }}
apiVersion: v1
kind: Service
metadata:
name: tkassist
spec:
selector:
tkassist: 'true'
clusterIP: None
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{{- if .Values.global.testWorkflows.createServiceAccountTemplates }}
apiVersion: testworkflows.testkube.io/v1
kind: TestWorkflowTemplate
metadata:
name: serviceaccount--fullaccess
spec:
pod:
serviceAccountName: {{ include "testkube-api.serviceAccountName" . }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/testkube-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ global:
tolerations: []
features:
logsV2: false
testWorkflows:
createAssistingPodsService: true
createServiceAccountTemplates: true

### @section Common parameters
## Kubernetes version (using Helm capabilities if not set)
Expand Down
2 changes: 1 addition & 1 deletion charts/testkube-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: testkube-operator
description: A Helm chart for the testkube-operator (installs needed CRDs only for now)
type: application
version: 1.17.8
version: 1.17.9
appVersion: 1.17.8
dependencies:
- name: global
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions charts/testkube/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type: application
version: 1.17.16
dependencies:
- name: testkube-operator
version: 1.17.8
version: 1.17.9
#repository: https://kubeshop.github.io/helm-charts
repository: "file://../testkube-operator"
condition: testkube-operator.enabled
Expand All @@ -18,7 +18,7 @@ dependencies:
version: 1.1.7
repository: https://nats-io.github.io/k8s/helm/charts/
- name: testkube-api
version: 1.17.10
version: 1.17.11
#repository: https://kubeshop.github.io/helm-charts
repository: "file://../testkube-api"
- name: testkube-logs
Expand Down
6 changes: 6 additions & 0 deletions charts/testkube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ global:
# -- Features map for the whole chart
features:
logsV2: false
# -- Test Workflows configuration
testWorkflows:
# -- Create headless service for assisting pods
createAssistingPodsService: true
# -- Create TestWorkflowTemplates to easily use the service account
createServiceAccountTemplates: true

# -- MongoDB pre-upgrade parameters
preUpgradeHook:
Expand Down