init
This commit is contained in:
parent
d696e5d8b5
commit
e9acc28432
@ -9,8 +9,6 @@ spec:
|
||||
properties:
|
||||
enabled:
|
||||
type: boolean
|
||||
volumeName:
|
||||
type: string
|
||||
namespace:
|
||||
type: string
|
||||
storageClass:
|
||||
@ -21,7 +19,6 @@ spec:
|
||||
type: string
|
||||
default:
|
||||
enabled: false
|
||||
volumeName: "data"
|
||||
namespace: "default"
|
||||
storageClass: ""
|
||||
accessModes:
|
||||
@ -37,7 +34,7 @@ spec:
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ "$(params.persistence.enabled)" == "true" ]; then
|
||||
pvcName="$(params.persistence.volumeName)-$(context.taskRun.uid)"
|
||||
pvcName="before-pipeline-pvc-$(context.taskRun.uid)"
|
||||
cat <<EOF | kubectl apply -f -
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
|
Loading…
x
Reference in New Issue
Block a user