Skip to content

Commit

Permalink
refactor(root): 添加 volumeClaims
Browse files Browse the repository at this point in the history
  • Loading branch information
caixisheng committed Dec 2, 2021
1 parent d46a947 commit 31c0cb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions apis/core/v1alpha2/volume_claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type VolumeClaimList struct {
type VolumeClaimConfig struct {
Name string `json:"name"`
// type enum:"HostPath,StorageClass", default is StorageClass.
Type string `json:"type,omitempty"`
HostPath string `json:"hostPath,omitempty"`
StorageClassName string `json:"storageClassName,omitempty"`
Size string `json:"size,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,16 @@ spec:
items:
properties:
hostPath:
description: type enum:"HostPath,StorageClass", default is StorageClass.
type: string
name:
type: string
size:
type: string
storageClassName:
type: string
type:
description: type enum:"HostPath,StorageClass", default is StorageClass.
type: string
required:
- name
type: object
Expand Down

0 comments on commit 31c0cb8

Please sign in to comment.