1
0
mirror of https://github.com/rancher/types.git synced 2025-09-19 08:52:46 +00:00

Drop import yaml on project

This commit is contained in:
Darren Shepherd
2018-04-19 21:57:46 -07:00
parent 49e0df4b2f
commit db013f214e
2 changed files with 5 additions and 12 deletions

View File

@@ -240,14 +240,12 @@ type GenerateKubeConfigOutput struct {
}
type ImportClusterYamlInput struct {
Yaml string `json:"yaml,omitempty"`
}
type ImportProjectYamlInput struct {
Yaml string `json:"yaml,omitempty"`
Namespace string `json:"namespace,omitempty"`
YAML string `json:"yaml,omitempty"`
DefaultNamespace string `json:"defaultNamespace,omitempty"`
Namespace string `json:"namespace,omitempty"`
ProjectName string `json:"projectName,omitempty" norman:"type=reference[project]"`
}
type ImportYamlOutput struct {
OutputMessage string `json:"outputMessage,omitempty"`
Message string `json:"message,omitempty"`
}

View File

@@ -172,7 +172,6 @@ func authzTypes(schemas *types.Schemas) *types.Schemas {
&mapper.NamespaceIDMapper{},
).
MustImport(&Version, v3.SetPodSecurityPolicyTemplateInput{}).
MustImport(&Version, v3.ImportProjectYamlInput{}).
MustImport(&Version, v3.ImportYamlOutput{}).
MustImportAndCustomize(&Version, v3.Project{}, func(schema *types.Schema) {
schema.ResourceActions = map[string]types.Action{
@@ -180,10 +179,6 @@ func authzTypes(schemas *types.Schemas) *types.Schemas {
Input: "setPodSecurityPolicyTemplateInput",
Output: "project",
},
"importYaml": {
Input: "importProjectYamlInput",
Output: "importYamlOutput",
},
}
}).
MustImport(&Version, v3.GlobalRole{}).