1
0
mirror of https://github.com/rancher/types.git synced 2025-09-01 13:18:20 +00:00

catalog types changes

This commit is contained in:
Daishan Peng
2018-01-10 11:13:41 -07:00
committed by Darren Shepherd
parent 87897aa616
commit 02f805be04
3 changed files with 66 additions and 2 deletions

View File

@@ -35,9 +35,18 @@ var (
Init(replicaSet).
Init(replicationController).
Init(daemonSet).
Init(workloadTypes)
Init(workloadTypes).
Init(configMapTypes)
)
func configMapTypes(schemas *types.Schemas) *types.Schemas {
return ConfigMapTypes(&Version, schemas)
}
func ConfigMapTypes(version *types.APIVersion, schemas *types.Schemas) *types.Schemas {
return schemas.MustImport(version, v1.ConfigMap{})
}
func namespaceTypes(schemas *types.Schemas) *types.Schemas {
return NamespaceTypes(&Version, schemas)
}