1
0
mirror of https://github.com/rancher/types.git synced 2025-09-01 21:32:10 +00:00

Delete container env mapper logic

This commit is contained in:
Steven Crespo
2021-01-13 14:45:38 -08:00
parent adad487bf2
commit 81f3a27643
3 changed files with 0 additions and 244 deletions

View File

@@ -532,7 +532,6 @@ func podTypes(schemas *types.Schemas) *types.Schemas {
AddMapperForType(&Version, v1.Container{},
m.Move{From: "command", To: "entrypoint"},
m.Move{From: "args", To: "command"},
mapper.EnvironmentMapper{},
&m.Embed{Field: "securityContext"},
&m.Embed{Field: "lifecycle"},
).
@@ -582,8 +581,6 @@ func podTypes(schemas *types.Schemas) *types.Schemas {
MustImport(&Version, v1.Handler{}, handlerOverride{}).
MustImport(&Version, v1.Probe{}, handlerOverride{}).
MustImport(&Version, v1.Container{}, struct {
Environment []EnvironmentVar
EnvironmentFrom []EnvironmentFrom
InitContainer bool
State string
Transitioning string

View File

@@ -37,21 +37,6 @@ type handlerOverride struct {
TCP bool
}
type EnvironmentVar struct {
Name string
Value string
ValueFrom *EnvironmentFrom
}
type EnvironmentFrom struct {
Source string `norman:"type=enum,options=field|resource|configMap|secret"`
SourceName string
SourceKey string
Prefix string
Optional bool
TargetKey string
}
type Scheduling struct {
Node *NodeScheduling
Tolerate []v1.Toleration