-
Notifications
You must be signed in to change notification settings - Fork 1.5k
CORS-4308: Enable Network Observability during installation #10382
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -58,6 +58,12 @@ func SetInstallConfigDefaults(c *types.InstallConfig) { | |||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
| if c.Networking.NetworkObservability == nil { | ||||||||||||||||||||||||||||
| installationPolicy := types.NetworkObservabilityInstallAndEnable | ||||||||||||||||||||||||||||
| c.Networking.NetworkObservability = &types.NetworkObservability{ | ||||||||||||||||||||||||||||
| InstallationPolicy: &installationPolicy, | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
|
Comment on lines
+61
to
+66
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Default policy is not applied when Line 61 only defaults when Proposed fix- if c.Networking.NetworkObservability == nil {
- installationPolicy := types.NetworkObservabilityInstallAndEnable
- c.Networking.NetworkObservability = &types.NetworkObservability{
- InstallationPolicy: &installationPolicy,
- }
- }
+ if c.Networking.NetworkObservability == nil {
+ c.Networking.NetworkObservability = &types.NetworkObservability{}
+ }
+ if c.Networking.NetworkObservability.InstallationPolicy == nil {
+ installationPolicy := types.NetworkObservabilityInstallAndEnable
+ c.Networking.NetworkObservability.InstallationPolicy = &installationPolicy
+ }📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| if c.Publish == "" { | ||||||||||||||||||||||||||||
| c.Publish = types.ExternalPublishingStrategy | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Handle explicit
networkObservability: {}deterministically.installationPolicyis optional here, but installer defaulting only runs when the wholenetworkObservabilityobject isnil(pkg/types/defaults/installconfig.go:59-66), and manifest emission only runs wheninstallationPolicyis non-nil (pkg/asset/manifests/network.go:83-88). An explicit empty object can therefore bypass day-0 defaulting and leave behavior implicit downstream.Please either require
installationPolicyin this schema or ensure defaulting fills it whennetworkObservabilityis present but empty, and add a regression test fornetworkObservability: {}.🤖 Prompt for AI Agents