1
0
mirror of https://github.com/rancher/types.git synced 2025-08-24 06:58:26 +00:00

Accept extra env vars, volume and volumeMounts for ingress addon

This commit is contained in:
rajashree 2019-11-05 15:57:27 -08:00 committed by Alena Prokharchyk
parent 7129615e54
commit 5fa48624b5
2 changed files with 22 additions and 1 deletions

View File

@ -400,6 +400,24 @@ type IngressConfig struct {
ExtraArgs map[string]string `yaml:"extra_args" json:"extraArgs,omitempty"`
// DNS Policy
DNSPolicy string `yaml:"dns_policy" json:"dnsPolicy,omitempty"`
// Extra Env vars
ExtraEnvs []ExtraEnv `yaml:"extra_envs" json:"extraEnvs,omitempty" norman:"type=array[json]"`
// Extra volumes
ExtraVolumes []ExtraVolume `yaml:"extra_volumes" json:"extraVolumes,omitempty" norman:"type=array[json]"`
// Extra volume mounts
ExtraVolumeMounts []ExtraVolumeMount `yaml:"extra_volume_mounts" json:"extraVolumeMounts,omitempty" norman:"type=array[json]"`
}
type ExtraEnv struct {
v1.EnvVar
}
type ExtraVolume struct {
v1.Volume
}
type ExtraVolumeMount struct {
v1.VolumeMount
}
type RKEPlan struct {

View File

@ -67,7 +67,10 @@ func rkeTypes(schemas *types.Schemas) *types.Schemas {
"key",
}},
m.ReadOnly{Field: "timeAdded"},
)
).
MustImport(&Version, v3.ExtraEnv{}).
MustImport(&Version, v3.ExtraVolume{}).
MustImport(&Version, v3.ExtraVolumeMount{})
}
func schemaTypes(schemas *types.Schemas) *types.Schemas {