This file contains hidden or 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
| apiVersion: triggers.tekton.dev/v1alpha1 | |
| kind: TriggerTemplate | |
| metadata: | |
| name: developer-osd-aws-cleanup-trigger-template | |
| namespace: appstudio-qe | |
| spec: | |
| resourcetemplates: | |
| - apiVersion: tekton.dev/v1beta1 | |
| kind: PipelineRun | |
| metadata: |
This file contains hidden or 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
| apiVersion: triggers.tekton.dev/v1alpha1 | |
| kind: EventListener | |
| metadata: | |
| name: developer-osd-aws-cleanup-trigger-listener | |
| namespace: appstudio-qe | |
| spec: | |
| serviceAccountName: pipeline | |
| triggers: | |
| - name: cron-trig | |
| template: |
This file contains hidden or 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
| apiVersion: batch/v1 | |
| kind: CronJob | |
| metadata: | |
| name: run-cloudwash-rh-developer-osd | |
| namespace: appstudio-qe | |
| spec: | |
| schedule: "@daily" | |
| jobTemplate: | |
| spec: | |
| template: |
This file contains hidden or 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
| apiVersion: tekton.dev/v1beta1 | |
| kind: PipelineRun | |
| metadata: | |
| creationTimestamp: null | |
| generateName: developer-osd-aws-cleanup-pipeline-run | |
| spec: | |
| serviceAccountName: pipeline | |
| pipelineRef: | |
| name: developer-osd-aws-cleanup |
This file contains hidden or 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
| apiVersion: tekton.dev/v1beta1 | |
| kind: Pipeline | |
| metadata: | |
| creationTimestamp: '2022-06-17T08:27:06Z' | |
| generation: 6 | |
| managedFields: | |
| - apiVersion: tekton.dev/v1beta1 | |
| fieldsType: FieldsV1 | |
| fieldsV1: | |
| 'f:spec': |
This file contains hidden or 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
| apiVersion: tekton.dev/v1beta1 | |
| kind: Task | |
| metadata: | |
| creationTimestamp: '2022-06-29T15:11:15Z' | |
| generation: 8 | |
| managedFields: | |
| - apiVersion: tekton.dev/v1beta1 | |
| fieldsType: FieldsV1 | |
| fieldsV1: | |
| 'f:spec': |
This file contains hidden or 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
| --- | |
| # Compute Resources and there credentials to connect to them for cleanup | |
| AWS: | |
| AUTH: | |
| ACCESS_KEY: $AWS_ACCESS_KEY | |
| SECRET_KEY: $AWS_SECRET_KEY | |
| REGIONS: ["all"] | |
| CRITERIA: | |
| VM: | |
| # The VM to be deleted with prepend string, e.g VM name that starts with 'test' |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: List | |
| items: | |
| - | |
| kind: PersistentVolumeClaim | |
| apiVersion: v1 | |
| metadata: | |
| name: test | |
| spec: | |
| accessModes: |
This file contains hidden or 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
| #!/bin/bash | |
| # find in files | |
| if [[ $# -eq 0 ]]; then | |
| echo "usage: $0 \"<dir(s)>\" \"<include filename pattern (*test*/*.java)>\" \"<searchstring(s)>\" \"<exclude filename pattern (target|.svn|.git)>\" [\"-mindepth 3 -maxdepth 4\"] [-quiet]"; echo ""; | |
| echo "example: $0 . \"*test*/feature.*\" \"label|featureName\" target \"-mindepth 2 -maxdepth 4\" -q"; echo ""; | |
| exit 1; | |
| fi | |
| if [[ $1 ]]; then dirs=$1; else dirs="."; fi |