init
This commit is contained in:
parent
53147584e2
commit
1d6ba5b419
16
tasks/remove-pvc/task.yaml
Normal file
16
tasks/remove-pvc/task.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: tekton.dev/v1
|
||||||
|
kind: Task
|
||||||
|
metadata:
|
||||||
|
name: remove-pvc
|
||||||
|
spec:
|
||||||
|
params:
|
||||||
|
- name: pvc-name
|
||||||
|
type: string
|
||||||
|
description: Name of the PVC to delete
|
||||||
|
steps:
|
||||||
|
- name: delete-pvc
|
||||||
|
image: bitnami/kubectl:latest
|
||||||
|
script: |
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
kubectl delete pvc $(params.pvc-name) -n gitops-ci --ignore-not-found=true
|
||||||
|
echo "PVC $(params.pvc-name) deleted."
|
Loading…
x
Reference in New Issue
Block a user