Skip to content
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

Do not use FromContextOrDefaults() in translateIngress() #968

Closed
nak3 opened this issue Dec 9, 2022 · 4 comments · Fixed by #1172
Closed

Do not use FromContextOrDefaults() in translateIngress() #968

nak3 opened this issue Dec 9, 2022 · 4 comments · Fixed by #1172
Labels
kind/enhancement triage/accepted Issues which should be fixed (post-triage)

Comments

@nak3
Copy link
Contributor

nak3 commented Dec 9, 2022

Currently, there are some places use FromContextOrDefaults() in translateIngress() function such as:

https://github.com/knative-sandbox/net-kourier/blob/649db2781d60dd6a5580806194b3df5378118ed9/pkg/generator/ingress_translator.go#L195
https://github.com/knative-sandbox/net-kourier/blob/649db2781d60dd6a5580806194b3df5378118ed9/pkg/generator/ingress_translator.go#L268

FromContextOrDefaults() returns the default value in config-network so controller temporarily creates a envoy configuration with unexpected configuration.
For example, internal-encryption is disabled by default so it creates envoy configuration without internal-encryption even if users enabled.

@ReToCode
Copy link
Member

@nak3 do you know why we generate an initial envoy snapshot when the controller is constructed, instead just doing that on the first reconcile event? Is that so envoy can start?

@nak3
Copy link
Contributor Author

nak3 commented Feb 13, 2023

Sorry, I am not familiar with it but I think it was implemented as there is an issue that controller sends an incomplete configuration to an already running gateway container as per the following PRs.

@github-actions
Copy link

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 17, 2023
@ReToCode
Copy link
Member

/remove-lifecycle stale

@knative-prow knative-prow bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 17, 2023
@ReToCode ReToCode added the triage/accepted Issues which should be fixed (post-triage) label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement triage/accepted Issues which should be fixed (post-triage)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants