GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — fix: show API warnings when syncing Function CR by gauron99 · Pull Request #4092 · knative/func Conversation
Contributor
func deploy creates or updates the Function CR with a controller-runtime client. Warnings from the API server went to controller-runtime's logger, which func never sets. The warning was lost, and once func had run for 30 seconds, controller-runtime printed a "log.SetLogger(...) was never called" stack trace right after a successful deploy. The lost warning matters. func-operator main renamed spec.repository.branch and spec.repository.path to revision and dir. On a cluster with that CRD the server drops both fields with an "unknown field" warning, and the operator builds the default branch from the repo root while the user sees no reason why. Print server warnings to stderr instead, deduplicated. The dialer and volume clients in pkg/k8s silence warnings with NoWarnings, but here a warning can report fields dropped from the CR, so it must stay visible. Changes/kind Fixes # Release Note Docs
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
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. 🔵 Needs a closer lookAdd deduplication coverage and robust stderr cleanup in the test. No open issues 🎉 What changed in this PRRoutes Kubernetes API warnings to stderr during Function CR synchronization and adds integration-style coverage. Changes:
Review effort: Lite
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
gauron99
force-pushed
the
push-wtvrrtqqpotn
branch
from
3ca645a to
d5cd3b7
Compare
func deploy creates or updates the Function CR with a controller-runtime client. Warnings from the API server went to controller-runtime's logger, which func never sets. The warning was lost, and once func had run for 30 seconds, controller-runtime printed a "log.SetLogger(...) was never called" stack trace right after a successful deploy. The lost warning matters. func-operator main renamed spec.repository.branch and spec.repository.path to revision and dir. On a cluster with that CRD the server drops both fields with an "unknown field" warning, and the operator builds the default branch from the repo root while the user sees no reason why. Print server warnings to stderr instead, deduplicated. The dialer and volume clients in pkg/k8s silence warnings with NoWarnings, but here a warning can report fields dropped from the CR, so it must stay visible.
gauron99
force-pushed
the
push-wtvrrtqqpotn
branch
from
d5cd3b7 to
684ee55
Compare
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reviewers
Copilot code review
Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Uh oh!
There was an error while loading. Please reload this page. AssigneesLabelsProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |