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 wrong context for joining cluster #282

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

bschimke95
Copy link
Contributor

The server-side context does not get the deadline from the client. Instead it will just be cancelled when the client context is cancelled. So, instead of querying the context from the context we do not set a deadline at all on the server-side and let't the client handle this.

@bschimke95 bschimke95 requested a review from a team as a code owner April 2, 2024 12:20
@bschimke95 bschimke95 force-pushed the bschimke95/fix-bootstrap-context branch from 770c826 to b4f412e Compare April 2, 2024 12:24
@bschimke95 bschimke95 changed the title Fix wrong context for bootstrap command Fix wrong context for joining cluster Apr 2, 2024
The server-side context does not get the deadline from the client.
Instead it will just be cancelled when the client context is cancelled.
So, instead of querying the context from the context we do not set a
deadline at all on the server-side and let't the client handle this.
@bschimke95 bschimke95 force-pushed the bschimke95/fix-bootstrap-context branch from b4f412e to 1a60cfd Compare April 2, 2024 14:45
Copy link
Contributor

github-actions bot commented Apr 2, 2024

Package Line Rate
github.com/canonical/k8s/api/v1 48%
github.com/canonical/k8s/cmd/k8s 27%
github.com/canonical/k8s/cmd/util 14%
github.com/canonical/k8s/pkg/client/dqlite 44%
github.com/canonical/k8s/pkg/component 9%
github.com/canonical/k8s/pkg/k8sd/api 2%
github.com/canonical/k8s/pkg/k8sd/controllers 67%
github.com/canonical/k8s/pkg/k8sd/database 48%
github.com/canonical/k8s/pkg/k8sd/pki 55%
github.com/canonical/k8s/pkg/k8sd/setup 70%
github.com/canonical/k8s/pkg/k8sd/types 62%
github.com/canonical/k8s/pkg/proxy 6%
github.com/canonical/k8s/pkg/snap 14%
github.com/canonical/k8s/pkg/snap/util 90%
github.com/canonical/k8s/pkg/utils 31%
github.com/canonical/k8s/pkg/utils/control 61%
github.com/canonical/k8s/pkg/utils/errors 100%
github.com/canonical/k8s/pkg/utils/k8s 69%
Summary 32% (1702 / 5341)

@neoaggelos neoaggelos merged commit 5cd57f5 into main Apr 2, 2024
13 checks passed
@neoaggelos neoaggelos deleted the bschimke95/fix-bootstrap-context branch April 2, 2024 15:46
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.

2 participants