1
0
mirror of https://github.com/rancher/types.git synced 2025-08-28 08:40:31 +00:00

Missing base schema type (workload) to statefulSet

This commit is contained in:
Alena Prokharchyk 2018-02-20 16:48:37 -08:00
parent eab18ee4b9
commit a2eaaf2144

View File

@ -154,7 +154,9 @@ func statefulSetTypes(schemas *types.Schemas) *types.Schemas {
NewWorkloadTypeMapper(),
).
MustImport(&Version, v1beta2.StatefulSetSpec{}, statefulSetConfigOverride{}).
MustImport(&Version, v1beta2.StatefulSet{}, projectOverride{})
MustImportAndCustomize(&Version, v1beta2.StatefulSet{}, func(schema *types.Schema) {
schema.BaseType = "workload"
}, projectOverride{})
}
func replicaSetTypes(schemas *types.Schemas) *types.Schemas {