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

Merge pull request #238 from alena1108/stateful

Missing base schema type (workload) to statefulSet
This commit is contained in:
Alena Prokharchyk
2018-02-20 16:58:48 -08:00
committed by GitHub

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 {