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

Preserve Defaulted Values #133

Merged
merged 1 commit into from
Oct 15, 2024
Merged

Preserve Defaulted Values #133

merged 1 commit into from
Oct 15, 2024

Conversation

spjmurray
Copy link
Member

The Kubernetes Server defaults a bunch of fields where we don't really want to expose all that complexity to the end user, but require it in the custom resource e.g. images etc. Problem is, the defaults change, and that will randomly trigger updates which isn't great. There are also hard coded values e.g. the control plane replicas, and you as an admin may want to scale that to 5, 7 etc. to support a specific weird workload, and obviously don't want that value reverted on an update. Long story short, if it's defaulted, preserve what's there all ready if we can, otherwise generate from the defaults.

@spjmurray
Copy link
Member Author

Confirmed I can alter a cluster's flavor and scaling and it's retained across an update call.

The Kubernetes Server defaults a bunch of fields where we don't really
want to expose all that complexity to the end user, but require it in
the custom resource e.g. images etc.  Problem is, the defaults change,
and that will randomly trigger updates which isn't great.  There are
also hard coded values e.g. the control plane replicas, and you as an
admin may want to scale that to 5, 7 etc. to support a specific weird
workload, and obviously don't want that value reverted on an update.
Long story short, if it's defaulted, preserve what's there all ready if
we can, otherwise generate from the defaults.
@spjmurray spjmurray merged commit a37728d into main Oct 15, 2024
4 checks passed
@spjmurray spjmurray deleted the preserve_to_serve branch October 15, 2024 08:39
spjmurray added a commit that referenced this pull request Oct 15, 2024
The Kubernetes Server defaults a bunch of fields where we don't really
want to expose all that complexity to the end user, but require it in
the custom resource e.g. images etc.  Problem is, the defaults change,
and that will randomly trigger updates which isn't great.  There are
also hard coded values e.g. the control plane replicas, and you as an
admin may want to scale that to 5, 7 etc. to support a specific weird
workload, and obviously don't want that value reverted on an update.
Long story short, if it's defaulted, preserve what's there all ready if
we can, otherwise generate from the defaults.
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.

1 participant