1
0
mirror of https://github.com/rancher/types.git synced 2025-07-15 22:15:49 +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
commit 958814d09f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {