mirror of
https://github.com/rancher/types.git
synced 2025-08-31 12:48:45 +00:00
Fix some PV types
This commit is contained in:
@@ -41,6 +41,9 @@ func namespaceTypes(schemas *types.Schemas) *types.Schemas {
|
||||
|
||||
func persistentVolumeTypes(schemas *types.Schemas) *types.Schemas {
|
||||
return schemas.
|
||||
MustImport(&Version, v1.PersistentVolumeSpec{}, struct {
|
||||
StorageClassName *string `json:"storageClassName,omitempty" norman:"type=reference[storageClass]"`
|
||||
}{}).
|
||||
MustImport(&Version, v1.PersistentVolume{})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user