-
Notifications
You must be signed in to change notification settings - Fork 10
Add disconnected cluster testing pipeline #171
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||
| kind: Kustomization | ||
|
|
||
| labels: | ||
| - pairs: | ||
| deployment: kuadrant-qe-pipeline | ||
| app: test-disconnected | ||
|
|
||
| components: | ||
| - ../../../tasks/login/ | ||
| - ../../../tasks/test/ | ||
| - ../../../tasks/disconnected/ | ||
|
|
||
| resources: | ||
| - pipeline.yaml |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,203 @@ | ||
| apiVersion: tekton.dev/v1 | ||
| kind: Pipeline | ||
| metadata: | ||
| name: test-disconnected | ||
| spec: | ||
| params: | ||
| - default: 'quay.io/kuadrant/testsuite:unstable' | ||
| description: Testsuite image to run tests on | ||
| name: testsuite-image | ||
| type: string | ||
| - description: API URL of the Openshift cluster | ||
| name: kube-api | ||
| type: string | ||
| - description: Secret name with cluster credentials | ||
| name: cluster-credentials | ||
| type: string | ||
| default: openshift-pipelines-credentials | ||
| - description: Kubernetes secret name (dockerconfigjson) with source registry credentials for image mirroring | ||
| name: registry-credentials | ||
| type: string | ||
| default: registry-redhat-io-pull-secret | ||
| - default: kuadrant-system | ||
| description: Name of the Openshift project | ||
| name: project | ||
| type: string | ||
| - default: disconnected | ||
| description: Makefile target for tests | ||
| name: make-target | ||
| type: string | ||
| - default: "" | ||
| description: Pytest flags to use with Make (flags="${pytest-flags}" make disconnected) | ||
| name: pytest-flags | ||
| type: string | ||
| - default: pipeline-settings | ||
| description: Config Map with settings for the testsuite | ||
| name: settings-cm | ||
| type: string | ||
| - default: "" | ||
| description: Additional env for testsuite container separated with spaces (e.g. KUADRANT_CONTROL_PLANE__provider_secret=gcp-credentials KUADRANT_KEYCLOAK__url="https://my-sso.net") | ||
| name: additional-env | ||
| type: string | ||
| - default: "true" | ||
| description: Set to "true" for downstream (RHCL) operator, any other value for upstream (Kuadrant) | ||
| name: downstream | ||
| type: string | ||
| - default: quay.io/kuadrant/kuadrant-operator-catalog:latest | ||
| description: Upstream Kuadrant operator catalog image (only used when downstream != "true") | ||
| name: index-image | ||
| type: string | ||
| - default: "true" | ||
| description: Run cleanup after tests (reconnect cluster and remove all resources) | ||
| name: cleanup | ||
| type: string | ||
| - default: rhcl | ||
| description: Prefix of the launch name saved in report portal (nightly, username, manual, etc.). In case of release candidate testing use kuadrant-v<version>, rhcl-v<version>, or authorino-v<version> | ||
| name: launch-name | ||
| type: string | ||
| - default: "" | ||
| description: Optional launch description for Report Portal | ||
| name: launch-description | ||
| type: string | ||
| - default: testsuite | ||
| description: Report Portal Project to store test results (e.g. testsuite, nightly-testsuite, releases) | ||
| name: rp-project | ||
| type: string | ||
| - default: "true" | ||
| description: Upload test results to Report Portal | ||
| name: upload-results | ||
| type: string | ||
| - default: 'quay.io/kuadrant/rptool:unstable' | ||
| description: rptool image for uploading results to Report Portal | ||
| name: rptool-image | ||
| type: string | ||
| tasks: | ||
| - name: kubectl-login | ||
| params: | ||
| - name: testsuite-image | ||
| value: $(params.testsuite-image) | ||
| - name: kube-api | ||
| value: $(params.kube-api) | ||
| - name: cluster-credentials | ||
| value: $(params.cluster-credentials) | ||
| taskRef: | ||
| kind: Task | ||
| name: kubectl-login | ||
| workspaces: | ||
| - name: shared-workspace | ||
| - name: uninstall-operators | ||
| params: | ||
| - name: kubeconfig-path | ||
| value: $(tasks.kubectl-login.results.kubeconfig-path) | ||
| runAfter: | ||
| - kubectl-login | ||
| taskRef: | ||
| kind: Task | ||
| name: disconnected-uninstall-operators | ||
| workspaces: | ||
| - name: shared-workspace | ||
| - name: setup-disconnected | ||
| params: | ||
| - name: kubeconfig-path | ||
| value: $(tasks.kubectl-login.results.kubeconfig-path) | ||
| - name: registry-credentials | ||
| value: $(params.registry-credentials) | ||
| - name: downstream | ||
| value: $(params.downstream) | ||
| - name: index-image | ||
| value: $(params.index-image) | ||
| runAfter: | ||
| - uninstall-operators | ||
| taskRef: | ||
| kind: Task | ||
| name: disconnected-setup | ||
| workspaces: | ||
| - name: shared-workspace | ||
| - name: cluster-disconnect | ||
| params: | ||
| - name: kubeconfig-path | ||
| value: $(tasks.kubectl-login.results.kubeconfig-path) | ||
| - name: action | ||
| value: disconnect | ||
| - name: downstream | ||
| value: $(params.downstream) | ||
| runAfter: | ||
| - setup-disconnected | ||
| taskRef: | ||
| kind: Task | ||
| name: disconnected-cluster-network | ||
| workspaces: | ||
| - name: shared-workspace | ||
| - name: install-operator | ||
| params: | ||
| - name: kubeconfig-path | ||
| value: $(tasks.kubectl-login.results.kubeconfig-path) | ||
| runAfter: | ||
| - cluster-disconnect | ||
| taskRef: | ||
| kind: Task | ||
| name: disconnected-install-operator | ||
| workspaces: | ||
| - name: shared-workspace | ||
| - name: run-tests | ||
| params: | ||
| - name: testsuite-image | ||
| value: $(params.testsuite-image) | ||
| - name: project | ||
| value: $(params.project) | ||
| - name: make-target | ||
| value: $(params.make-target) | ||
| - name: pytest-flags | ||
| value: $(params.pytest-flags) | ||
| - name: settings-cm | ||
| value: $(params.settings-cm) | ||
| - name: additional-env | ||
| value: $(params.additional-env) | ||
| - name: kubeconfig-path | ||
| value: $(tasks.kubectl-login.results.kubeconfig-path) | ||
| - name: cluster-credentials | ||
| value: $(params.cluster-credentials) | ||
| runAfter: | ||
| - install-operator | ||
| taskRef: | ||
| kind: Task | ||
| name: run-tests | ||
| workspaces: | ||
| - name: shared-workspace | ||
| finally: | ||
| - name: disconnected-cleanup | ||
| when: | ||
| - input: $(params.cleanup) | ||
| operator: in | ||
| values: ["true"] | ||
| params: | ||
| - name: kubeconfig-path | ||
| value: $(tasks.kubectl-login.results.kubeconfig-path) | ||
| taskRef: | ||
| kind: Task | ||
| name: disconnected-cleanup | ||
| workspaces: | ||
| - name: shared-workspace | ||
| - name: rptool-upload | ||
| when: | ||
| - input: $(params.upload-results) | ||
| operator: in | ||
| values: ["true"] | ||
| params: | ||
| - name: launch-name | ||
| value: $(params.launch-name) | ||
| - name: launch-description | ||
| value: $(params.launch-description) | ||
| - name: rptool-image | ||
| value: $(params.rptool-image) | ||
| - name: make-target | ||
| value: $(params.make-target) | ||
| - name: rp-project | ||
| value: $(params.rp-project) | ||
| taskRef: | ||
| kind: Task | ||
| name: rptool-upload | ||
| workspaces: | ||
| - name: shared-workspace | ||
|
Comment on lines
+167
to
+201
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win Order the Tekton runs all Confirm which workspace paths #!/bin/bash
# Description: Inspect workspace paths removed by disconnected-cleanup and read by rptool-upload.
fd -t f 'disconnected-cleanup.yaml' tasks --exec rg -n 'rm |workspaces|path|results'
fd -t f 'rptool-upload.yaml' tasks --exec rg -n 'workspaces|path|results'🤖 Prompt for AI Agents |
||
| workspaces: | ||
| - name: shared-workspace | ||
Uh oh!
There was an error while loading. Please reload this page.