From 22a99c43ca5d7e105ff64afbe09718260dbcc675 Mon Sep 17 00:00:00 2001 From: Timtor Chen Date: Thu, 19 Dec 2024 16:40:28 +0800 Subject: [PATCH] add storageclass schema --- kubernetes/rook-ceph/cephblock.yaml | 9 ++++++--- kubernetes/rook-ceph/cephfs.yaml | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/kubernetes/rook-ceph/cephblock.yaml b/kubernetes/rook-ceph/cephblock.yaml index e4c2560c..2981da94 100644 --- a/kubernetes/rook-ceph/cephblock.yaml +++ b/kubernetes/rook-ceph/cephblock.yaml @@ -27,7 +27,8 @@ spec: size: 1 requireSafeReplicaSize: false --- -# StorageClass rbd-fast +# yaml-language-server: $schema=https://raw.githubusercontent.com/yannh/kubernetes-json-schema/refs/heads/master/master/storageclass-storage-v1.json +## StorageClass rbd-fast apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: @@ -47,7 +48,8 @@ parameters: reclaimPolicy: Retain allowVolumeExpansion: true --- -# StorageClass rbd-fast-delete +# yaml-language-server: $schema=https://raw.githubusercontent.com/yannh/kubernetes-json-schema/refs/heads/master/master/storageclass-storage-v1.json +## StorageClass rbd-fast-delete apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: @@ -67,7 +69,8 @@ parameters: reclaimPolicy: Delete allowVolumeExpansion: true --- -# StorageClass rbd-fast-volatile +# yaml-language-server: $schema=https://raw.githubusercontent.com/yannh/kubernetes-json-schema/refs/heads/master/master/storageclass-storage-v1.json +## StorageClass rbd-fast-volatile apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: diff --git a/kubernetes/rook-ceph/cephfs.yaml b/kubernetes/rook-ceph/cephfs.yaml index 14bf736a..0324b82d 100644 --- a/kubernetes/rook-ceph/cephfs.yaml +++ b/kubernetes/rook-ceph/cephfs.yaml @@ -46,7 +46,8 @@ spec: cpu: 500m memory: 1Gi --- -# StorageClass fs-fast +# yaml-language-server: $schema=https://raw.githubusercontent.com/yannh/kubernetes-json-schema/refs/heads/master/master/storageclass-storage-v1.json +## StorageClass fs-fast apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: @@ -65,7 +66,8 @@ parameters: reclaimPolicy: Retain allowVolumeExpansion: true --- -# StorageClass fs-fast-delete +# yaml-language-server: $schema=https://raw.githubusercontent.com/yannh/kubernetes-json-schema/refs/heads/master/master/storageclass-storage-v1.json +## StorageClass fs-fast-delete apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: @@ -84,7 +86,8 @@ parameters: reclaimPolicy: Delete allowVolumeExpansion: true --- -# StorageClass fs-fast-volatile +# yaml-language-server: $schema=https://raw.githubusercontent.com/yannh/kubernetes-json-schema/refs/heads/master/master/storageclass-storage-v1.json +## StorageClass fs-fast-volatile apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: