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

Decouple update k8sd-config configmap from k8s set API #349

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

neoaggelos
Copy link
Contributor

This is work by @bschimke95, because I clicked the wrong button in #339

This PR adds a controller that updates the k8sd-config config map of the cluster asynchronously.
It is triggered by the sending struct{} to the controllers UpdateCh (e.g. by the bootstrap hook or k8s set).

This is a first effort of making commands return fast instead of e.g. waiting for service restarts and apply changes async. Follow-up work will move the component updates to a controller as well.

Relates and works towards fixing:
#321 and #277

@neoaggelos neoaggelos requested a review from a team as a code owner April 17, 2024 17:45
@bschimke95 bschimke95 force-pushed the KU-614/decouple-config-update branch from fc0a81f to 404d156 Compare April 18, 2024 08:01
@bschimke95 bschimke95 force-pushed the KU-614/decouple-config-update branch from 404d156 to c253663 Compare April 18, 2024 08:52
@bschimke95 bschimke95 changed the base branch from KU-530/updates-for-external-datastore to main April 18, 2024 08:53
Copy link
Contributor

@bschimke95 bschimke95 left a comment

Choose a reason for hiding this comment

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

LGTM

image

Copy link
Contributor

Package Line Rate
github.com/canonical/k8s/api/v1 35%
github.com/canonical/k8s/cmd/k8s 33%
github.com/canonical/k8s/cmd/util 15%
github.com/canonical/k8s/pkg/client/dqlite 46%
github.com/canonical/k8s/pkg/component 10%
github.com/canonical/k8s/pkg/k8sd/controllers 63%
github.com/canonical/k8s/pkg/k8sd/database 48%
github.com/canonical/k8s/pkg/k8sd/pki 53%
github.com/canonical/k8s/pkg/k8sd/setup 77%
github.com/canonical/k8s/pkg/k8sd/types 81%
github.com/canonical/k8s/pkg/proxy 6%
github.com/canonical/k8s/pkg/snap 15%
github.com/canonical/k8s/pkg/snap/util 90%
github.com/canonical/k8s/pkg/utils 48%
github.com/canonical/k8s/pkg/utils/control 100%
github.com/canonical/k8s/pkg/utils/errors 100%
github.com/canonical/k8s/pkg/utils/k8s 69%
Summary 44% (2262 / 5172)

@neoaggelos neoaggelos merged commit 6f933b4 into main Apr 18, 2024
3 checks passed
@neoaggelos neoaggelos deleted the KU-614/decouple-config-update branch April 18, 2024 09:20
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