-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
istio-cni
- use templated env from cm, simplify config
#51050
istio-cni
- use templated env from cm, simplify config
#51050
Conversation
Signed-off-by: Benjamin Leggett <benjamin.leggett@solo.io>
/retest-required |
2 similar comments
/retest-required |
/retest-required |
Signed-off-by: Benjamin Leggett <benjamin.leggett@solo.io>
1269a6c
to
bc501fc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't look too closely yet but seems like a good direction
0549f54
to
09909a3
Compare
55c977c
to
d2e18f8
Compare
Signed-off-by: Benjamin Leggett <benjamin.leggett@solo.io>
d2e18f8
to
0cf6736
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ran out of time so leaving a few minor comments now, so far it looks good though
|
||
b.WriteString("LogLevel: " + c.LogLevel + "\n") | ||
b.WriteString("KubeconfigFilename: " + c.KubeconfigFilename + "\n") | ||
b.WriteString("KubeconfigMode: " + fmt.Sprintf("%#o", c.KubeconfigMode) + "\n") | ||
b.WriteString("KubeCAFile: " + c.KubeCAFile + "\n") | ||
b.WriteString("SkipTLSVerify: " + fmt.Sprint(c.SkipTLSVerify) + "\n") | ||
|
||
b.WriteString("ExcludeNamespaces: " + fmt.Sprint(c.ExcludeNamespaces) + "\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is K8sServiceAccountPath
omitted on purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorta. It's only override-able via unit tests so echoing it would just be noise.
// disable monitoring & repair | ||
viper.Set(constants.MonitoringPort, 0) | ||
viper.Set(constants.RepairEnabled, false) | ||
|
||
// Don't set the CNI conf file env var if preConfFile is not set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Don't set the CNI conf file env var if preConfFile is not set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it's still set but not an env var anymore.
this broke old k8s versions (1.23 Nd 1.24) https://prow.istio.io/view/gs/istio-prow/logs/integ-k8s-123_istio_postsubmit/1791587628840128512 |
#51135 should fix. |
Please provide a description of this PR:
Our handling of
istio-cni
config is rather backwards - this attempts to decruftify it a bit.envFrom
cni
libraries.