Skip to content

Commit

Permalink
add storageclass schema
Browse files Browse the repository at this point in the history
  • Loading branch information
timtorChen committed Dec 19, 2024
1 parent 903d3c5 commit 22a99c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions kubernetes/rook-ceph/cephblock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down
9 changes: 6 additions & 3 deletions kubernetes/rook-ceph/cephfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 22a99c4

Please sign in to comment.