1
0
mirror of https://github.com/rancher/types.git synced 2025-09-03 06:04:24 +00:00

Revert "Merge pull request #1190 from PennyScissors/relv24-fix-var-interpolation"

This reverts commit 0d90dc3a07, reversing
changes made to 98055cdcb6.
This commit is contained in:
Steven Crespo
2021-01-14 13:40:49 -08:00
parent adad487bf2
commit 84f3a507ba
5 changed files with 125 additions and 158 deletions

View File

@@ -582,7 +582,7 @@ func podTypes(schemas *types.Schemas) *types.Schemas {
MustImport(&Version, v1.Handler{}, handlerOverride{}).
MustImport(&Version, v1.Probe{}, handlerOverride{}).
MustImport(&Version, v1.Container{}, struct {
Environment []EnvironmentVar
Environment map[string]string
EnvironmentFrom []EnvironmentFrom
InitContainer bool
State string

View File

@@ -37,12 +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