From 23a35928dd6e18454eb160927e5b1d867ccb7609 Mon Sep 17 00:00:00 2001 From: Timtor Chen Date: Thu, 19 Dec 2024 02:50:35 +0800 Subject: [PATCH] add rook-ceph schema --- kubernetes/rook-ceph/cephblock.yaml | 6 ++++-- kubernetes/rook-ceph/cephcluster.yaml | 1 + kubernetes/rook-ceph/cephfs.yaml | 1 + kubernetes/rook-ceph/cephobject.yaml | 2 +- kubernetes/rook-ceph/objectuser.yaml | 3 +++ kubernetes/rook-ceph/rook-ceph.yaml | 2 +- 6 files changed, 11 insertions(+), 4 deletions(-) diff --git a/kubernetes/rook-ceph/cephblock.yaml b/kubernetes/rook-ceph/cephblock.yaml index f360ea6f..e4c2560c 100644 --- a/kubernetes/rook-ceph/cephblock.yaml +++ b/kubernetes/rook-ceph/cephblock.yaml @@ -1,5 +1,6 @@ --- -# rbd-fast pool +# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/ceph.rook.io/cephblockpool_v1.json +## rbd-fas-pool apiVersion: ceph.rook.io/v1 kind: CephBlockPool metadata: @@ -12,7 +13,8 @@ spec: size: 3 requireSafeReplicaSize: true --- -# rbd-fast-volatile pool +# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/ceph.rook.io/cephblockpool_v1.json +## rbd-fast-volatile pool apiVersion: ceph.rook.io/v1 kind: CephBlockPool metadata: diff --git a/kubernetes/rook-ceph/cephcluster.yaml b/kubernetes/rook-ceph/cephcluster.yaml index 2a96ca6d..146760b4 100644 --- a/kubernetes/rook-ceph/cephcluster.yaml +++ b/kubernetes/rook-ceph/cephcluster.yaml @@ -1,4 +1,5 @@ --- +# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/ceph.rook.io/cephcluster_v1.json apiVersion: ceph.rook.io/v1 kind: CephCluster metadata: diff --git a/kubernetes/rook-ceph/cephfs.yaml b/kubernetes/rook-ceph/cephfs.yaml index 11efba8a..14bf736a 100644 --- a/kubernetes/rook-ceph/cephfs.yaml +++ b/kubernetes/rook-ceph/cephfs.yaml @@ -1,4 +1,5 @@ --- +# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/ceph.rook.io/cephfilesystem_v1.json apiVersion: ceph.rook.io/v1 kind: CephFilesystem metadata: diff --git a/kubernetes/rook-ceph/cephobject.yaml b/kubernetes/rook-ceph/cephobject.yaml index de887cdd..8ec31d6d 100644 --- a/kubernetes/rook-ceph/cephobject.yaml +++ b/kubernetes/rook-ceph/cephobject.yaml @@ -1,5 +1,5 @@ --- -# fast.rgw.* pool +# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/ceph.rook.io/cephobjectstore_v1.json apiVersion: ceph.rook.io/v1 kind: CephObjectStore metadata: diff --git a/kubernetes/rook-ceph/objectuser.yaml b/kubernetes/rook-ceph/objectuser.yaml index 5023b217..99275a94 100644 --- a/kubernetes/rook-ceph/objectuser.yaml +++ b/kubernetes/rook-ceph/objectuser.yaml @@ -1,4 +1,5 @@ --- +# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/ceph.rook.io/cephobjectstoreuser_v1.json apiVersion: ceph.rook.io/v1 kind: CephObjectStoreUser metadata: @@ -11,6 +12,7 @@ spec: user: "*" bucket: "*" --- +# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/ceph.rook.io/cephobjectstoreuser_v1.json apiVersion: ceph.rook.io/v1 kind: CephObjectStoreUser metadata: @@ -20,6 +22,7 @@ spec: store: fast displayName: loki --- +# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/ceph.rook.io/cephobjectstoreuser_v1.json apiVersion: ceph.rook.io/v1 kind: CephObjectStoreUser metadata: diff --git a/kubernetes/rook-ceph/rook-ceph.yaml b/kubernetes/rook-ceph/rook-ceph.yaml index db8e7b8a..e6fb4d98 100644 --- a/kubernetes/rook-ceph/rook-ceph.yaml +++ b/kubernetes/rook-ceph/rook-ceph.yaml @@ -1,5 +1,5 @@ --- -# Helm +# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/source.toolkit.fluxcd.io/helmrepository_v1.json apiVersion: source.toolkit.fluxcd.io/v1 kind: HelmRepository metadata: