File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -106,19 +106,22 @@ update_image () {
106
106
107
107
# VolumeSnapshot CRDs are installed by cluster addon manager, which may
108
108
# not be available at this point. Run this as a background process.
109
- function wait-for-apiserver- and-update-volumesnapshot {
109
+ function create-crds- and-wait-for-apiserver {
110
110
# Wait until volumesnapshot CRDs are in place.
111
+ kubectl apply -f ${BASE_DIR} /snapshotter/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml
111
112
until kubectl get volumesnapshotclasses.snapshot.storage.k8s.io
112
113
do
113
114
sleep 10
114
115
done
115
116
116
- until kubectl get volumesnapshotcontents.snapshot.storage.k8s.io
117
+ kubectl apply -f ${BASE_DIR} /snapshotter/crd/snapshot.storage.k8s.io_volumesnapshots.yaml
118
+ until kubectl get volumesnapshots.snapshot.storage.k8s.io
117
119
do
118
120
sleep 10
119
121
done
120
122
121
- until kubectl get volumesnapshots.snapshot.storage.k8s.io
123
+ kubectl apply -f ${BASE_DIR} /snapshotter/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml
124
+ until kubectl get volumesnapshotcontents.snapshot.storage.k8s.io
122
125
do
123
126
sleep 10
124
127
done
@@ -135,7 +138,7 @@ kubectl apply -f ${BASE_DIR}/snapshotter/crd
135
138
136
139
# wait until CRDs are ready
137
140
echo " waiting for CRDs to be ready"
138
- wait-for-apiserver- and-update-volumesnapshot
141
+ create-crds- and-wait-for-apiserver
139
142
140
143
# rbac rules
141
144
echo " applying RBAC rules"
You can’t perform that action at this time.
0 commit comments