This repository was archived by the owner on May 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +37
-5
lines changed
validator/templates/storageclasses Expand file tree Collapse file tree 4 files changed +37
-5
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ metadata:
30
30
chart : " {{ $.Chart.Name }}-{{ $.Chart.Version }}"
31
31
release : " {{ $.Release.Name }}"
32
32
heritage : " {{ $.Release.Service }}"
33
+ annotations :
34
+ # This is what defines this resource as a hook. Without this line, the
35
+ # job is considered part of the release.
36
+ " helm.sh/hook " : post-install
37
+ " helm.sh/hook-weight " : " -5"
38
+ " helm.sh/hook-delete-policy " : hook-succeeded
33
39
spec :
34
40
restartPolicy : Never
35
41
nodeSelector :
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ RELEASE_STATUS=$(helm status $RELEASE 2>/dev/null | awk -F': ' '$1 == "STATUS" {
40
40
if [[ -n " ${RELEASE_STATUS} " ]]; then
41
41
echo " There is a previous run of $RELEASE with status $RELEASE_STATUS , deleting it"
42
42
helm delete $RELEASE --purge
43
+ sleep 10
43
44
fi
44
45
45
46
HELM=${HELM:- helm}
Original file line number Diff line number Diff line change @@ -62,19 +62,35 @@ metadata:
62
62
name : test-pvc-{{ $v.existingPvc }}
63
63
labels :
64
64
app : {{ $.Release.Name }}
65
+ annotations :
66
+ # This is what defines this resource as a hook. Without this line, the
67
+ # job is considered part of the release.
68
+ " helm.sh/hook " : post-install
69
+ " helm.sh/hook-weight " : " -5"
70
+ " helm.sh/hook-delete-policy " : hook-succeeded
65
71
spec :
72
+ restartPolicy : Never
73
+ terminationGracePeriodSeconds : 10
66
74
containers :
67
75
- image : alpine:3.7
68
76
name : test-pvc-{{ $v.existingPvc }}
69
77
imagePullPolicy : IfNotPresent
70
78
volumeMounts :
71
- - mountPath : /data
79
+ - mountPath : /test-pvc
72
80
name : data
81
+ command :
82
+ - sh
83
+ - -c
84
+ - |
85
+ mount
86
+ ls -l /test-pvc
87
+ mkdir -pv /test-pvc/test-pvc
88
+ sleep 300
73
89
readinessProbe :
74
90
exec :
75
91
command :
76
- - touch
77
- - /data/tst1
92
+ - touch
93
+ - /test-pvc/test-pvc/ready
78
94
initialDelaySeconds : 1
79
95
periodSeconds : 3
80
96
volumes :
@@ -87,4 +103,13 @@ spec:
87
103
{{- end }}
88
104
---
89
105
{{- end -}}
106
+
107
+ apiVersion : v1
108
+ kind : ConfigMap
109
+ metadata :
110
+ name : test-pvc-dummy-cm
111
+ labels :
112
+ app : {{ $.Release.Name }}
113
+ data :
114
+ dd : " 11"
90
115
{{- end -}}
Original file line number Diff line number Diff line change @@ -61,14 +61,14 @@ mongodb:
61
61
postgresql:
62
62
storageSize: 8Gi
63
63
storageClass:
64
- #existingPvc: cf-postgesql
64
+ #existingPvc: cf-postgresql
65
65
#nodeSelector:
66
66
# kubernetes.io/hostname: storage-host-01
67
67
68
68
consul:
69
69
storageSize: 1Gi
70
70
storageClass:
71
- #existingPvc: cf-consul
71
+ #existingPvc: cf-consul-0
72
72
#nodeSelector:
73
73
# kubernetes.io/hostname: storage-host-01
74
74
You can’t perform that action at this time.
0 commit comments