From 1d6ba5b419f5e507cadb7ba8e6a8587fd226ed22 Mon Sep 17 00:00:00 2001 From: BAK BYEONG JUN Date: Wed, 9 Apr 2025 08:42:18 +0000 Subject: [PATCH] init --- tasks/remove-pvc/task.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tasks/remove-pvc/task.yaml diff --git a/tasks/remove-pvc/task.yaml b/tasks/remove-pvc/task.yaml new file mode 100644 index 0000000..abb6a61 --- /dev/null +++ b/tasks/remove-pvc/task.yaml @@ -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." \ No newline at end of file