1
0
mirror of https://github.com/rancher/types.git synced 2025-09-15 22:39:05 +00:00

set update False for fields of PersistentVolumeSource types

This commit is contained in:
kinarashah
2019-05-28 15:36:31 -07:00
committed by Alena Prokharchyk
parent f887817025
commit 3e7be7adce

View File

@@ -96,6 +96,13 @@ func persistentVolumeTypes(schemas *types.Schemas) *types.Schemas {
field.Update = false
return field
})
pvSchema := schemas.Schema(&Version, val.Type().Field(i).Type.String()[4:])
for name := range pvSchema.ResourceFields {
pvSchema.MustCustomizeField(name, func(field types.Field) types.Field {
field.Update = false
return field
})
}
}
}
})