Skip to content

Commit

Permalink
feat: Release/v1.17.33 (#839)
Browse files Browse the repository at this point in the history
* fix: disable nats box

* fix: typo in natsbox commented param

* fix: added comments to values files

* fix: charts version bump

* fix: added empty lintconf to bypass error

* fix: removed lintconf as there is no file

* fix: linter suggestions

* fix lint values.yaml

* fix: removed maintainers validation

* fix: space in comment

* fix: space in comment

* Update executors.json

* Update executors.json

* fix: on develop push

* fix: remove ref to test repo

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* feat: side car container for slave pod

* fix: rename slave od source

* fix: remove unused fields

* fix: logs source

* Update executors.json

* Update Chart.yaml files

* Update executors.json

* Update executors.json

* Update Chart.yaml files

* Update executors.json

* Update executors.json

* fix: add secret list role

* Update executors.json

* Update Chart.yaml files

* Feature: Add support for overriding NATS image options (#781)

Co-authored-by: ypoplavs <[email protected]>

* Update executors.json

* fix: update cloud variables to pro

* Update executors.json

* fix: allow to override data volume

* fix: changed condition

* fix: removed unused volumerequest

* fix: removed unused volumerequest

* fix: chart versionb

* fix: chart

* fix: chart

* Update executors.json

* Update executors.json

* fix: Unexpected EOF in pvc-template

* enbled ingress for api

* enable logsV2 (#789)

* enable API ingress  for xyz env

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* fix: rollback changed artifact volume

* Update executors.json

* fix: dont attach init when global data directory used (#792)

* fix: dont attach init when global data directory used

* fix update chart version

* fix update chart version

* fix update chart version

* fix linter errors

* update ci

* remove testing branch

* Update executors.json

* Update executors.json

* Enable logsv2 for stage env

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update Chart.yaml files

* Update Chart.yaml files

* Update Chart.yaml file

* Update executors.json

* Update executors.json

* Update executors.json

* Update Chart.yaml files

* Update Chart.yaml file

* feat: inject custom ca (#799) (#800)

* feat: inject custom ca (#799)

* feat: inject custom ca into agent

* feat: custom ca job template

* feat: custom ca job scraper template

* feat: custom ca slave pod template

* fix: set env var to inject ca into runners

* fix: duplicate custom ca secret ref in parent chart

* Update Chart.yaml file

* feat(TKC-1808): allow to pass `run.shell` for TestWorkflow commands

* Update executors.json

* Update executors.json

* fix chart lint

* Update Chart.yaml files

* Update executors.json

* feat: add global nodeSelectors, tolerations, affinity (#803)

* add global nodeSelectors, tolerations, affinity

* Update executors.json

* Update Chart.yaml files

* Update executors.json

* fix: logs version (#806)

* Update Chart.yaml files

* Update executors.json

* Update executors.json

* Update executors.json

* Update Chart.yaml files

* Update executors.json

* Update Chart.yaml files

* Update executors.json

* feat: use default storage class name

* feat: add default storage template support to templates

* docs: add helm var desc

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* feat(testworkflows): update CRDs to support matrix/shards for execute step

* Update executors.json

* fix: rollback changess (#811)

* Update executors.json

* Update executors.json

* Update executors.json

* feat: test workflow cron job fields

* fix: Group field for cron job tempate

* feat(testworkflows): add support for built-in TestWorkflow templates (#813)

* fix: [TKC-1851] Add registry configuration for workflows docker images (#809)

* fix: add registry configuration for workflows doecker images

* fix: image tags

* fix: remove pullSecrets

* Update executors.json

* Update Chart.yaml file

* feat(testworkflows): add support for global TestWorkflowTemplate (#816)

* Update executors.json

* Update Chart.yaml files

* Update Chart.yaml files

* Update Chart.yaml file

* feat: Testkube - official test workflow templates (beta) (#815)

* official test workflow templates (beta) - artillery, cypress, gradle, jmeter, k6, maven, playwright, postman

* image - quotes added

* Update charts/testkube-api/templates/testworkflows/builtin-templates/artillery.yaml

Co-authored-by: Dawid Rusnak <[email protected]>

* artillery template updated

* test workflow templates - container replaced with run

* updated after CR

* postman template - escaped config

* typo fixed

* postman - escaping changed

* templates - escaping added

* official workflow templates - moved to testkube-operator

* test workflow templates - values files updated

* test workflow templates - helm post-install/post-upgrade hooks, weight, delete-policy

---------

Co-authored-by: Dawid Rusnak <[email protected]>

* Update Chart.yaml file

* fix: install common TestWorkflowTemplates in the context of testkube-api, to make it working for multi-namespace agents (#818)

* Update Chart.yaml file

* Update executors.json

* Update executors.json

* Update Chart.yaml files

* Update executors.json

* chore(testworkflows): update CRDs

* Update executors.json

* Update executors.json

* chore: template url values

* feat(testworkflows): add pausing steps

* chore(testworkflows): replace `paused` to be boolean

* Update Chart.yaml file

* Update executors.json

* feat: add testworkflow for triggers

* feat(testworkflows): support more advanced Pod configuration (#825)

* Update executors.json

* Update executors.json

* Update Chart.yaml files

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update Chart.yaml files

* Update executors.json

* Update executors.json

* Update Chart.yaml files

* Update executors.json

* Update executors.json

* Update Chart.yaml files

* Update executors.json

* Update executors.json

* Update Chart.yaml files

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* feat: workflow events

* fix: update comment

* fix: slack config

* fix: update slack template

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update Chart.yaml files

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update Chart.yaml files

* Update executors.json

* change update strategy for mongo

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* disable testConnection pods (#828)

* Update Chart.yaml file

* Update Chart.yaml files

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* feat: namespace for test workflow job config

* Update executors.json

* Update executors.json

* feat(testworkflows): update CRDs to add activeDeadlineSeconds for job (#832)

* Update executors.json

* Update executors.json

* Update executors.json

* Update executors.json

* Update Chart.yaml files

* Update Chart.yaml files

* Update Chart.yaml files

* Update executors.json

* Update executors.json

* Update executors.json

* Update Chart.yaml files

* Update Chart.yaml file

* fix: pull from git server with private-ca certs (#837)

Only covers pre-built and container executors.

* Update executors.json

* feat: events role

* fix: test trigger event causes

* fix: enable k8s events

* fix: enabale k8s events env

* feat(testworkflows): update CRDs to add parallel step definition (#833)

* feat(testworkflows): update CRDs to add parallel step definition
* feat(testworkflows): add distribute/evenly template

* Update executors.json

* Update executors.json

* Update executors.json

* Update Chart.yaml files

* Update executors.json

* fix: merge conflicts

* feat: add minio metrics (#834)

---------

Co-authored-by: Jacek Wysocki <[email protected]>
Co-authored-by: kubeshop-bot <[email protected]>
Co-authored-by: Emil Davtyan <[email protected]>
Co-authored-by: Emil Davtyan <[email protected]>
Co-authored-by: Michael Walsh <[email protected]>
Co-authored-by: ypoplavs <[email protected]>
Co-authored-by: Lilla Vass <[email protected]>
Co-authored-by: ypoplavs <[email protected]>
Co-authored-by: vsukhin <[email protected]>
Co-authored-by: emil2k <[email protected]>
Co-authored-by: Dawid Rusnak <[email protected]>
Co-authored-by: nicufk <[email protected]>
Co-authored-by: nicufk <[email protected]>
Co-authored-by: Tomasz Konieczny <[email protected]>
Co-authored-by: tkonieczny <[email protected]>
Co-authored-by: rangoo94 <[email protected]>
Co-authored-by: Delnat Wito <[email protected]>
Co-authored-by: Wito <[email protected]>
Co-authored-by: ypoplavs <[email protected]>
Co-authored-by: Nelson Silva <[email protected]>
  • Loading branch information
21 people authored May 16, 2024
1 parent c3750d2 commit 8ae541e
Show file tree
Hide file tree
Showing 38 changed files with 14,023 additions and 14,137 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/dispatch-develop-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Dispatch events based on develop push

on:
push:
branches:
- develop

jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Repository dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.DISPATCH_GITHUB_TOKEN }}
repository: kubeshop/testkube-deployment
event-type: testkube_charts_push
client-payload: '{"ref": "${{ github.ref }}", "ref_name": "${{ github.ref_name }}", "sha": "${{ github.sha }}", "repository": "${{ github.repository }}"}'
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,11 @@ jobs:
run: |
echo ::set-output name=api_image_tag::$(kubectl get deployment testkube-api-server -o=jsonpath='{$.spec.template.spec.containers[:1].image}' -n ${{ env.DEPLOYMENT_NAME }} | awk -F':' '{print $2}') || exit 1
echo ::set-output name=operator_image_tag::$(kubectl get deployment testkube-operator-controller-manager -o=jsonpath='{$.spec.template.spec.containers[1].image}' -n ${{ env.DEPLOYMENT_NAME }} | awk -F':' '{print $2}') || exit 1
echo ::set-output name=dashboard_image_tag::$(kubectl get deployment testkube-dashboard -o=jsonpath='{$.spec.template.spec.containers[:1].image}' -n ${{ env.DEPLOYMENT_NAME }} | awk -F':' '{print $2}') || exit 1
- name: Deploy helm chart to Develop Cluster
run: |
helm dependency update ./charts/testkube
helm upgrade --debug --install --atomic --timeout 180s ${{ env.DEPLOYMENT_NAME }} ./charts/testkube --namespace ${{ env.DEPLOYMENT_NAME }} --create-namespace --values ./charts/testkube/values-${{ env.ENV }}.yaml --set testkube-api.image.tag=${{ steps.vars.outputs.api_image_tag }} --set testkube-operator.image.tag=${{ steps.vars.outputs.operator_image_tag }} --set testkube-dashboard.image.tag=${{ steps.vars.outputs.dashboard_image_tag }} --set mongodb.livenessProbe.enabled=false --set mongodb.readinessProbe.enabled=false
helm upgrade --debug --install --atomic --timeout 180s ${{ env.DEPLOYMENT_NAME }} ./charts/testkube --namespace ${{ env.DEPLOYMENT_NAME }} --create-namespace --values ./charts/testkube/values-${{ env.ENV }}.yaml --set testkube-api.image.tag=${{ steps.vars.outputs.api_image_tag }} --set testkube-operator.image.tag=${{ steps.vars.outputs.operator_image_tag }} --set testkube-logs.image.tag=${{ steps.vars.outputs.api_image_tag }} --set mongodb.livenessProbe.enabled=false --set mongodb.readinessProbe.enabled=false
notify_slack_if_deploy_succeeds:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -149,6 +148,14 @@ jobs:
- name: Run Postman sanity tests
run: kubectl testkube run test sanity -f --git-branch develop

- name: (Re)create Dashboard E2E tests (from CRD)
working-directory: ./testkube-repo
run: |-
# enabling debug mode
set -x
kubectl -n testkube delete test dashboard-e2e-tests --ignore-not-found=true
kubectl apply -f ./test/dashboard-e2e/crd/crd.yaml -ntestkube
- name: (Re)create staging testsuite
working-directory: ./testkube-repo
run: |-
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/helm-deploy-testkube-charts-develop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
types:
[
trigger-workflow-api-develop,
trigger-workflow-dashboard-develop,
trigger-workflow-operator-develop,
]

Expand Down Expand Up @@ -82,30 +81,23 @@ jobs:
run: |
helm repo add bitnami https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
- name: Get image tag of Testkube APi, Dashboard, Operator
- name: Get image tag of Testkube APi, Operator
id: vars
run: |
echo ::set-output name=api_image_tag::$(kubectl get deployment testkube-api-server -o=jsonpath='{$.spec.template.spec.containers[:1].image}' -n ${{ env.DEPLOYMENT_NAME }} | awk -F':' '{print $2}') || exit 1
echo ::set-output name=operator_image_tag::$(kubectl get deployment testkube-operator-controller-manager -o=jsonpath='{$.spec.template.spec.containers[1].image}' -n ${{ env.DEPLOYMENT_NAME }} | awk -F':' '{print $2}') || exit 1
echo ::set-output name=dashboard_image_tag::$(kubectl get deployment testkube-dashboard -o=jsonpath='{$.spec.template.spec.containers[:1].image}' -n ${{ env.DEPLOYMENT_NAME }} | awk -F':' '{print $2}') || exit 1
- name: Deploy if Testkube API image is updated
if: ${{ github.event.client_payload.image_tag_api }}
run: |
helm dependency update ./charts/testkube
helm upgrade --debug --install --atomic --timeout 180s ${{ env.DEPLOYMENT_NAME }} ./charts/testkube --namespace ${{ env.DEPLOYMENT_NAME }} --create-namespace --values ./charts/testkube/values-${{ env.ENV }}.yaml --set testkube-api.image.tag=${{ github.event.client_payload.image_tag_api }} --set testkube-operator.image.tag=${{ steps.vars.outputs.operator_image_tag }} --set testkube-dashboard.image.tag=${{ steps.vars.outputs.dashboard_image_tag }} --set mongodb.livenessProbe.enabled=false --set mongodb.readinessProbe.enabled=false
- name: Deploy if Testkube Dashboard image is updated
if: ${{ github.event.client_payload.image_tag_dashboard }}
run: |
helm dependency update ./charts/testkube
helm upgrade --debug --install --atomic --timeout 180s ${{ env.DEPLOYMENT_NAME }} ./charts/testkube --namespace ${{ env.DEPLOYMENT_NAME }} --create-namespace --values ./charts/testkube/values-${{ env.ENV }}.yaml --set testkube-dashboard.image.tag=${{ github.event.client_payload.image_tag_dashboard }} --set testkube-operator.image.tag=${{ steps.vars.outputs.operator_image_tag }} --set testkube-api.image.tag=${{ steps.vars.outputs.api_image_tag }} --set mongodb.livenessProbe.enabled=false --set mongodb.readinessProbe.enabled=false
helm upgrade --debug --install --atomic --timeout 180s ${{ env.DEPLOYMENT_NAME }} ./charts/testkube --namespace ${{ env.DEPLOYMENT_NAME }} --create-namespace --values ./charts/testkube/values-${{ env.ENV }}.yaml --set testkube-api.image.tag=${{ github.event.client_payload.image_tag_api }} --set testkube-logs.image.tag=${{ github.event.client_payload.image_tag_api }} --set testkube-operator.image.tag=${{ steps.vars.outputs.operator_image_tag }} --set mongodb.livenessProbe.enabled=false --set mongodb.readinessProbe.enabled=false
- name: Deploy if Testkube Operator image is updated
if: ${{ github.event.client_payload.image_tag_operator }}
run: |
helm dependency update ./charts/testkube
helm upgrade --debug --install --atomic --timeout 180s ${{ env.DEPLOYMENT_NAME }} ./charts/testkube --namespace ${{ env.DEPLOYMENT_NAME }} --create-namespace --values ./charts/testkube/values-${{ env.ENV }}.yaml --set testkube-operator.image.tag=${{ github.event.client_payload.image_tag_operator }} --set testkube-dashboard.image.tag=${{ steps.vars.outputs.dashboard_image_tag }} --set testkube-api.image.tag=${{ steps.vars.outputs.api_image_tag }} --set mongodb.livenessProbe.enabled=false --set mongodb.readinessProbe.enabled=false
helm upgrade --debug --install --atomic --timeout 180s ${{ env.DEPLOYMENT_NAME }} ./charts/testkube --namespace ${{ env.DEPLOYMENT_NAME }} --create-namespace --values ./charts/testkube/values-${{ env.ENV }}.yaml --set testkube-operator.image.tag=${{ github.event.client_payload.image_tag_operator }} --set testkube-api.image.tag=${{ steps.vars.outputs.api_image_tag }} --set testkube-logs.image.tag=${{ steps.vars.outputs.api_image_tag }} --set mongodb.livenessProbe.enabled=false --set mongodb.readinessProbe.enabled=false
notify_slack_if_deploy_succeeds:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -188,6 +180,14 @@ jobs:
- name: Run Postman sanity tests
run: kubectl testkube run test sanity -f --git-branch develop

- name: (Re)create Dashboard E2E tests (from CRD)
working-directory: ./testkube-repo
run: |-
# enabling debug mode
set -x
kubectl -n testkube delete test dashboard-e2e-tests --ignore-not-found=true
kubectl apply -f ./test/dashboard-e2e/crd/crd.yaml -ntestkube
- name: (Re)create staging testsuite
working-directory: ./testkube-repo
run: |-
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/helm-deploy-testkube-charts-stage-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,16 @@ jobs:
run: |
helm repo add bitnami https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
- name: Get image tag of Testkube APi, Dashboard, Operator
- name: Get image tag of Testkube APi, Operator
id: vars
run: |
echo ::set-output name=api_image_tag::$(kubectl get deployment testkube-api-server -o=jsonpath='{$.spec.template.spec.containers[:1].image}' -n ${{ env.DEPLOYMENT_NAME }} | awk -F':' '{print $2}') || exit 1
echo ::set-output name=operator_image_tag::$(kubectl get deployment testkube-operator-controller-manager -o=jsonpath='{$.spec.template.spec.containers[1].image}' -n testkube | awk -F':' '{print $2}') || exit 1
echo ::set-output name=dashboard_image_tag::$(kubectl get deployment testkube-dashboard -o=jsonpath='{$.spec.template.spec.containers[:1].image}' -n ${{ env.DEPLOYMENT_NAME }} | awk -F':' '{print $2}') || exit 1
- name: Deploy helm chart to Develop Cluster
run: |
helm dependency update ./charts/testkube
helm upgrade --debug --install --atomic --timeout 180s testkube ./charts/testkube --namespace ${{ env.DEPLOYMENT_NAME }} --create-namespace --values ./charts/testkube/values-${{ env.ENV }}.yaml --set testkube-operator.image.tag=${{ steps.vars.outputs.operator_image_tag }} --set testkube-dashboard.image.tag=${{ steps.vars.outputs.dashboard_image_tag }} --set testkube-api.image.tag=${{ steps.vars.outputs.api_image_tag }} --set testkube-api.multinamespace.enabled=true --set testkube-operator.enabled=false
helm upgrade --debug --install --atomic --timeout 180s testkube ./charts/testkube --namespace ${{ env.DEPLOYMENT_NAME }} --create-namespace --values ./charts/testkube/values-${{ env.ENV }}.yaml --set testkube-operator.image.tag=${{ steps.vars.outputs.operator_image_tag }} --set testkube-logs.image.tag=${{ steps.vars.outputs.api_image_tag }} --set testkube-api.image.tag=${{ steps.vars.outputs.api_image_tag }} --set testkube-api.multinamespace.enabled=true --set testkube-operator.enabled=false
notify_slack_if_deploy_stage_succeeds:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -146,6 +145,14 @@ jobs:
- name: Run Postman sanity tests
run: kubectl testkube run test sanity -f --git-branch develop --namespace ${{ env.DEPLOYMENT_NAME }}

- name: (Re)create Dashboard E2E tests (from CRD)
working-directory: ./testkube-repo
run: |-
# enabling debug mode
set -x
kubectl delete test dashboard-e2e-tests --ignore-not-found=true --namespace ${{ env.DEPLOYMENT_NAME }}
kubectl apply -f ./test/dashboard-e2e/crd/crd.yaml --namespace ${{ env.DEPLOYMENT_NAME }}
- name: (Re)create staging testsuite (executor tests)
working-directory: ./testkube-repo
run: |-
Expand All @@ -156,6 +163,9 @@ jobs:
- name: Run Executor tests
run: kubectl testkube run testsuite staging-testsuite -f --git-branch develop --namespace ${{ env.DEPLOYMENT_NAME }}

- name: Run Dashboard E2E tests
run: kubectl testkube run test dashboard-e2e-tests -f --variable TESTKUBE_NAMESPACE=${{ env.DEPLOYMENT_NAME }} --namespace ${{ env.DEPLOYMENT_NAME }}

notify_slack_if_test_suite_stage_succeeds:
runs-on: ubuntu-latest
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/helm-deploy-testkube-charts-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
types:
[
trigger-workflow-api-release,
trigger-workflow-dashboard-release,
trigger-workflow-operator-release,
]

Expand Down Expand Up @@ -82,30 +81,23 @@ jobs:
run: |
helm repo add bitnami https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
- name: Get image tag of Testkube APi, Dashboard, Operator
- name: Get image tag of Testkube APi, Operator
id: vars
run: |
echo ::set-output name=api_image_tag::$(kubectl get deployment testkube-api-server -o=jsonpath='{$.spec.template.spec.containers[:1].image}' -n ${{ env.DEPLOYMENT_NAME }} | awk -F':' '{print $2}') || exit 1
echo ::set-output name=operator_image_tag::$(kubectl get deployment testkube-operator-controller-manager -o=jsonpath='{$.spec.template.spec.containers[1].image}' -n testkube | awk -F':' '{print $2}') || exit 1
echo ::set-output name=dashboard_image_tag::$(kubectl get deployment testkube-dashboard -o=jsonpath='{$.spec.template.spec.containers[:1].image}' -n ${{ env.DEPLOYMENT_NAME }} | awk -F':' '{print $2}') || exit 1
- name: Deploy if Testkube API image is updated
if: ${{ github.event.client_payload.image_tag_api }}
run: |
helm dependency update ./charts/testkube
helm upgrade --debug --install --atomic --timeout 180s testkube ./charts/testkube --namespace ${{ env.DEPLOYMENT_NAME }} --create-namespace --values ./charts/testkube/values-${{ env.ENV }}.yaml --set testkube-api.image.tag=${{ github.event.client_payload.image_tag_api }} --set testkube-operator.image.tag=${{ steps.vars.outputs.operator_image_tag }} --set testkube-dashboard.image.tag=${{ steps.vars.outputs.dashboard_image_tag }} --set testkube-api.multinamespace.enabled=true --set testkube-operator.enabled=false --set mongodb.livenessProbe.enabled=false --set mongodb.readinessProbe.enabled=false
- name: Deploy if Testkube Dashboard image is updated
if: ${{ github.event.client_payload.image_tag_dashboard }}
run: |
helm dependency update ./charts/testkube
helm upgrade --debug --install --atomic --timeout 180s testkube ./charts/testkube --namespace ${{ env.DEPLOYMENT_NAME }} --create-namespace --values ./charts/testkube/values-${{ env.ENV }}.yaml --set testkube-dashboard.image.tag=${{ github.event.client_payload.image_tag_dashboard }} --set testkube-operator.image.tag=${{ steps.vars.outputs.operator_image_tag }} --set testkube-api.image.tag=${{ steps.vars.outputs.api_image_tag }} --set testkube-api.multinamespace.enabled=true --set testkube-operator.enabled=false --set mongodb.livenessProbe.enabled=false --set mongodb.readinessProbe.enabled=false
helm upgrade --debug --install --atomic --timeout 180s testkube ./charts/testkube --namespace ${{ env.DEPLOYMENT_NAME }} --create-namespace --values ./charts/testkube/values-${{ env.ENV }}.yaml --set testkube-api.image.tag=${{ github.event.client_payload.image_tag_api }} --set testkube-logs.image.tag=${{ github.event.client_payload.image_tag_api }} --set testkube-operator.image.tag=${{ steps.vars.outputs.operator_image_tag }} --set testkube-api.multinamespace.enabled=true --set testkube-operator.enabled=false --set mongodb.livenessProbe.enabled=false --set mongodb.readinessProbe.enabled=false
- name: Deploy if Testkube Operator image is updated
if: ${{ github.event.client_payload.image_tag_operator }}
run: |
helm dependency update ./charts/testkube
helm upgrade --debug --install --atomic --timeout 180s testkube ./charts/testkube --namespace ${{ env.DEPLOYMENT_NAME }} --create-namespace --values ./charts/testkube/values-${{ env.ENV }}.yaml --set testkube-operator.image.tag=${{ github.event.client_payload.image_tag_operator }} --set testkube-dashboard.image.tag=${{ steps.vars.outputs.dashboard_image_tag }} --set testkube-api.image.tag=${{ steps.vars.outputs.api_image_tag }} --set testkube-api.multinamespace.enabled=true --set testkube-operator.enabled=false --set mongodb.livenessProbe.enabled=false --set mongodb.readinessProbe.enabled=false
helm upgrade --debug --install --atomic --timeout 180s testkube ./charts/testkube --namespace ${{ env.DEPLOYMENT_NAME }} --create-namespace --values ./charts/testkube/values-${{ env.ENV }}.yaml --set testkube-operator.image.tag=${{ github.event.client_payload.image_tag_operator }} --set testkube-api.image.tag=${{ steps.vars.outputs.api_image_tag }} --set testkube-logs.image.tag=${{ steps.vars.outputs.api_image_tag }} --set testkube-api.multinamespace.enabled=true --set testkube-operator.enabled=false --set mongodb.livenessProbe.enabled=false --set mongodb.readinessProbe.enabled=false
notify_slack_if_deploy_stage_succeeds:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -193,6 +185,7 @@ jobs:
run: |-
# enabling debug mode
set -x
kubectl delete test dashboard-e2e-tests --ignore-not-found=true --namespace ${{ env.DEPLOYMENT_NAME }}
kubectl apply -f ./test/dashboard-e2e/crd/crd.yaml --namespace ${{ env.DEPLOYMENT_NAME }}
- name: (Re)create staging testsuite (executor tests)
Expand All @@ -206,6 +199,9 @@ jobs:
- name: Run Executor tests
run: kubectl testkube run testsuite staging-testsuite -f --git-branch develop --namespace ${{ env.DEPLOYMENT_NAME }}

- name: Run Dashboard E2E tests
run: kubectl testkube run test dashboard-e2e-tests -f --variable TESTKUBE_NAMESPACE=${{ env.DEPLOYMENT_NAME }} --namespace ${{ env.DEPLOYMENT_NAME }}

notify_slack_if_test_suite_stage_succeeds:
runs-on: ubuntu-latest
needs: test_suite_run
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/helm-lint-template.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Lint
on:
pull_request:
types: [opened, reopened]
types: [opened, reopened, edited, synchronize]

jobs:
chart-test:
Expand Down
3 changes: 3 additions & 0 deletions charts/testkube-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ A Helm chart for Testkube api
| dnsPolicy | string | `""` | |
| disableMongoMigrations | bool | `false` | |
| disableSecretCreation | bool | `false` | |
| enableK8sEvents | bool | `true` | |
| enableSecretsEndpoint | bool | `false` | |
| executionNamespaces | list | `[]` | |
| executors | string | `""` | |
Expand All @@ -69,6 +70,8 @@ A Helm chart for Testkube api
| image.registry | string | `"docker.io"` | |
| image.repository | string | `"kubeshop/testkube-api-server"` | |
| enabledExecutors | object | `{}` | |
| jobContainerTemplate | string | `""` | |
| jobScraperTemplate | string | `""` | |
| jobServiceAccountName | string | `""` | |
| kubeVersion | string | `""` | |
| livenessProbe.initialDelaySeconds | int | `30` | |
Expand Down
8 changes: 0 additions & 8 deletions charts/testkube-api/executors.json
Original file line number Diff line number Diff line change
Expand Up @@ -532,14 +532,6 @@
"types": []
}
},
{
"name": "logs-sidecar",
"executor": {
"executorType": "sidecar",
"image": "kubeshop/testkube-logs-sidecar:1.17.33",
"types": []
}
},
{
"name": "logs-sidecar",
"executor": {
Expand Down
9 changes: 7 additions & 2 deletions charts/testkube-api/slack-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
"end-testsuite-success",
"end-testsuite-failed",
"end-testsuite-aborted",
"end-testsuite-timeout"
"end-testsuite-timeout",
"start-testworkflow",
"queue-testworkflow",
"end-testworkflow-success",
"end-testworkflow-failed",
"end-testworkflow-aborted"
]
}
]
]
Loading

0 comments on commit 8ae541e

Please sign in to comment.