1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-25 06:17:50 +00:00
catalog/task/openshift-uninstall/0.1/openshift-uninstall.yaml
Chmouel Boudjnah a861887585 Update all images using openshift to latest stable 4.6
* Update all images to use the latest stable 4.6
* Modify the task using :latest to pin it to 4.6

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-01-05 10:15:11 +00:00

37 lines
1.1 KiB
YAML

apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: openshift-uninstall
labels:
app.kubernetes.io/version: "0.1"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: openshift
tekton.dev/displayName: "openshift uninstall"
spec:
description: >-
This task is used to destroy the cluster.
The following task helps you to provision the Openshift cluster using the
Installer Provided Infrastructure on the desired cloud platform.
workspaces:
- name: install-dir
mountPath: "/tekton/home/"
params:
- name: OPENSHIFT_INSTALLER_IMAGE
type: string
description: OpenShift installer base image for UPI installation
default: quay.io/openshift/origin-upi-installer:4.6
steps:
- name: remove-cluster
image: $(params.OPENSHIFT_INSTALLER_IMAGE)
workingDir: $(workspaces.install-dir.path)
script: |
#!/usr/bin/env bash
echo "Trying to delete the cluster"
timeout 30m /bin/openshift-install destroy cluster --log-level=debug || true
securityContext:
runAsUser: 0