mirror of
https://github.com/rancher/types.git
synced 2025-07-24 18:06:47 +00:00
Wrong package for storageclasses
This commit is contained in:
parent
e794f06430
commit
eab18ee4b9
@ -5,7 +5,7 @@ import (
|
||||
m "github.com/rancher/norman/types/mapper"
|
||||
"github.com/rancher/types/factory"
|
||||
"k8s.io/api/core/v1"
|
||||
"k8s.io/api/storage/v1beta1"
|
||||
storagev1 "k8s.io/api/storage/v1"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -46,7 +46,7 @@ func persistentVolumeTypes(schemas *types.Schemas) *types.Schemas {
|
||||
|
||||
func storageClassTypes(schemas *types.Schemas) *types.Schemas {
|
||||
return schemas.
|
||||
MustImport(&Version, v1beta1.StorageClass{}, struct {
|
||||
MustImport(&Version, storagev1.StorageClass{}, struct {
|
||||
ReclaimPolicy string `json:"reclaimPolicy,omitempty" norman:"type=enum,options=Recycle|Delete|Retain"`
|
||||
}{})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user