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

fix: kube event error when switching context #3494

Merged
merged 2 commits into from
Aug 15, 2023

Conversation

jeffmaury
Copy link
Contributor

Fixes #3035

What does this PR do?

Removes the log message when Kube context is switched

Screenshot/screencast of this PR

N/A

What issues does this PR fix or reference?

#3035

How to test this PR?

Switch from one Kubernetes context to another and check the error message is not logged anymore

Fixes containers#3035

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
@jeffmaury jeffmaury requested review from benoitf and a team as code owners August 11, 2023 07:51
@jeffmaury jeffmaury requested review from dgolovin and cdrage and removed request for a team August 11, 2023 07:51
Copy link
Collaborator

@benoitf benoitf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

silent catching can be harder to debug when we want to get errors, so probably a nicer message (and maybe no stack trace) but probably do not report as console.error but as a warning

Also depending of 'known' errors we could say 'Kubernetes context switched but the cluster is not reachable, ignoring"

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Copy link
Contributor

@cdrage cdrage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was able to switch contexts and the warning appears as intended, functionality works and code LGTM.

@benoitf benoitf merged commit df478fb into containers:main Aug 15, 2023
8 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.3.0 milestone Aug 15, 2023
@jeffmaury jeffmaury deleted the GH-3035 branch November 27, 2023 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kube event error on switch kube contexts
4 participants