Apply k8s files for rook

pull/353/head
Frostebite 2022-03-13 23:56:34 +00:00
parent 9d3eb62591
commit 1ab37c64da
3 changed files with 7 additions and 7 deletions

6
dist/index.js vendored
View File

@ -2246,8 +2246,8 @@ class KubernetesRook {
yield cloud_runner_system_1.CloudRunnerSystem.Run(` yield cloud_runner_system_1.CloudRunnerSystem.Run(`
git clone --single-branch --branch v1.8.6 https://github.com/rook/rook.git git clone --single-branch --branch v1.8.6 https://github.com/rook/rook.git
cd rook/deploy/examples cd rook/deploy/examples
kubectl create -f crds.yaml -f common.yaml -f operator.yaml kubectl apply -f crds.yaml -f common.yaml -f operator.yaml
kubectl create -f cluster.yaml kubectl apply -f cluster.yaml
`); `);
fs_1.default.writeFileSync('filesystem.yaml', ` fs_1.default.writeFileSync('filesystem.yaml', `
apiVersion: ceph.rook.io/v1 apiVersion: ceph.rook.io/v1
@ -2298,7 +2298,7 @@ class KubernetesRook {
reclaimPolicy: Delete reclaimPolicy: Delete
`); `);
yield cloud_runner_system_1.CloudRunnerSystem.Run(` yield cloud_runner_system_1.CloudRunnerSystem.Run(`
kubectl create -f storageclass.yaml -f filesystem.yaml kubectl apply -f storageclass.yaml -f filesystem.yaml
`); `);
} }
else { else {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -11,8 +11,8 @@ class KubernetesRook {
await CloudRunnerSystem.Run(` await CloudRunnerSystem.Run(`
git clone --single-branch --branch v1.8.6 https://github.com/rook/rook.git git clone --single-branch --branch v1.8.6 https://github.com/rook/rook.git
cd rook/deploy/examples cd rook/deploy/examples
kubectl create -f crds.yaml -f common.yaml -f operator.yaml kubectl apply -f crds.yaml -f common.yaml -f operator.yaml
kubectl create -f cluster.yaml kubectl apply -f cluster.yaml
`); `);
fs.writeFileSync( fs.writeFileSync(
'filesystem.yaml', 'filesystem.yaml',
@ -69,7 +69,7 @@ class KubernetesRook {
`, `,
); );
await CloudRunnerSystem.Run(` await CloudRunnerSystem.Run(`
kubectl create -f storageclass.yaml -f filesystem.yaml kubectl apply -f storageclass.yaml -f filesystem.yaml
`); `);
} else { } else {
CloudRunnerLogger.log(`Using kubeStorageClass ${storageName}`); CloudRunnerLogger.log(`Using kubeStorageClass ${storageName}`);