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:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user