mirror of
https://github.com/rancher/types.git
synced 2025-09-16 14:59:16 +00:00
set update False for fields of PersistentVolumeSource types
This commit is contained in:
committed by
Alena Prokharchyk
parent
f887817025
commit
3e7be7adce
@@ -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
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user