-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-strimzi-app-set
- Loading branch information
Showing
11 changed files
with
107 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
install/roles/automation-hub/templates/tekton/pipelines/chaos/chaos-pipeline.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Pipeline | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/hook: PreSync | ||
name: chaos-smoke-pipeline-worker-01 | ||
namespace: tealc-pipelines | ||
labels: | ||
project: skodjob | ||
spec: | ||
workspaces: | ||
- name: pipeline-ws | ||
tasks: | ||
- name: chaos-smoke-pipeline | ||
workspaces: | ||
- name: pipeline-ws | ||
workspace: pipeline-ws | ||
taskSpec: | ||
workspaces: | ||
- name: pipeline-ws | ||
steps: | ||
- name: execute-tests | ||
image: quay.io/mk-ci-cd/mas-ci-tools:latest | ||
env: | ||
- name: WORKER_01_OCP_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
key: token | ||
name: worker-01-tekton | ||
- name: WORKER_01_URL | ||
valueFrom: | ||
secretKeyRef: | ||
key: server | ||
name: worker-01-tekton | ||
- name: WORKER_02_OCP_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
key: token | ||
name: worker-02-tekton | ||
- name: WORKER_02_URL | ||
valueFrom: | ||
secretKeyRef: | ||
key: server | ||
name: worker-02-tekton | ||
- name: WORKER_03_OCP_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
key: token | ||
name: worker-03-tekton | ||
- name: WORKER_03_URL | ||
valueFrom: | ||
secretKeyRef: | ||
key: server | ||
name: worker-03-tekton | ||
script: | | ||
cd $(workspaces.pipeline-ws.path) | ||
|
||
# point to worker-01 cluster | ||
oc login --token $WORKER_01_OCP_TOKEN $WORKER_01_URL --insecure-skip-tls-verify=true | ||
|
||
# PROMETHEUS URL | ||
PROMETHEUS_URL=$(oc get route thanos-querier -n openshift-monitoring | awk '/thanos-querier/ {print $2}') | ||
PROMETHEUS_URL=https://$PROMETHEUS_URL:443 | ||
export PROMETHEUS_URL=$PROMETHEUS_URL | ||
|
||
git clone https://github.com/see-quick/StrimKKhaos.git | ||
|
||
cd StrimKKhaos | ||
|
||
# debug output | ||
./strimkkhaos.sh --pod-chaos anubis-kafka-kill-random-leader --debug | ||
finally: | ||
- name: notify-slack | ||
when: | ||
- input: $(tasks.status) | ||
operator: in | ||
values: ["Failed"] | ||
taskRef: | ||
name: send-to-webhook-slack | ||
params: | ||
- name: webhook-secret | ||
value: webhook-secret | ||
- name: message | ||
value: "PipelineRun `$(context.pipelineRun.name)` has status: `$(tasks.status)!`" | ||
- name: title | ||
value: "$(context.pipeline.name)" | ||
- name: status | ||
value: "$(tasks.status)" | ||
- name: button_url | ||
value: "{{ infra_console_url }}/k8s/ns/{{ infra_ci_namespace }}/tekton.dev~v1~PipelineRun/$(context.pipelineRun.name)" | ||
- name: button_text | ||
value: "Pipeline :tekton:" |