Skip to content

Commit ff38b98

Browse files
vulkoingimroboquat
authored andcommitted
Server-side apply of ceph CRDs + wait until ready
1 parent 29388c9 commit ff38b98

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.werft/vm/vm.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,11 @@ export function stopKubectlPortForwards() {
243243
* Install Rook/Ceph storage that supports CSI snapshot
244244
*/
245245
export function installRookCeph(options: { kubeconfig: string }) {
246-
exec(
247-
`kubectl --kubeconfig ${options.kubeconfig} apply -f .werft/vm/manifests/rook-ceph/crds.yaml -f .werft/vm/manifests/rook-ceph/common.yaml -f .werft/vm/manifests/rook-ceph/operator.yaml`,
246+
exec(`kubectl --kubeconfig ${options.kubeconfig} apply -f .werft/vm/manifests/rook-ceph/crds.yaml --server-side --force-conflicts`
247+
);
248+
exec(`kubectl --kubeconfig ${options.kubeconfig} wait --for condition=established --timeout=120s crd/cephclusters.ceph.rook.io`
249+
);
250+
exec(`kubectl --kubeconfig ${options.kubeconfig} apply -f .werft/vm/manifests/rook-ceph/common.yaml -f .werft/vm/manifests/rook-ceph/operator.yaml`
248251
);
249252
exec(`kubectl --kubeconfig ${options.kubeconfig} apply -f .werft/vm/manifests/rook-ceph/cluster-test.yaml`);
250253
exec(`kubectl --kubeconfig ${options.kubeconfig} apply -f .werft/vm/manifests/rook-ceph/storageclass-test.yaml`);

0 commit comments

Comments
 (0)