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

DNM: clean up apps #999

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .tekton/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,24 @@ spec:
workspaces:
- name: workspace
tasks:
- name: e2e-ultimate-cleanup
params:
- name: e2e_test_namespace
value: $(params.e2e_test_namespace)
taskSpec:
params:
- name: e2e_test_namespace
type: string
steps:
- name: e2e-cleanup
image: registry.redhat.io/openshift4/ose-cli:v4.12@sha256:0d21299d2adfa3cb74562c4dffbedd3b107fffac3a2a537f14770088abd4671f
# per https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting
# the cluster will set imagePullPolicy to IfNotPresent
# also per direction from Ralph Bean, we want to use image digest based tags to use a cue to automation like dependabot or renovatebot to periodially submit pull requests that update the digest as new images are released.
script: |
#!/usr/bin/env bash
# Perform cleanup of applications
oc delete --ignore-not-found application --all -n $(params.e2e_test_namespace)
- name: fetch-repository
taskRef:
name: git-clone
Expand Down