From eab18ee4b917a7150742bca8e03635b47eb3813e Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Tue, 20 Feb 2018 14:23:19 -0700 Subject: [PATCH] Wrong package for storageclasses --- apis/cluster.cattle.io/v3/schema/schema.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/cluster.cattle.io/v3/schema/schema.go b/apis/cluster.cattle.io/v3/schema/schema.go index b5b1ceed..9c60da36 100644 --- a/apis/cluster.cattle.io/v3/schema/schema.go +++ b/apis/cluster.cattle.io/v3/schema/schema.go @@ -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"` }{}) }