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

feature: add controlPlane.distro.k8s.version chart value for CAPI #2031

Merged

Conversation

hidalgopl
Copy link
Contributor

… intergration

What issue type does this pull request address? (keep at least one, remove the others)
/kind enhancement

What does this pull request do? Which issues does it resolve? (use resolves #<issue_number> if possible)
resolves ENG-2725
controlPlane.distro.k8s.version is a shortcut to set image tags for.

  • controlPlane.distro.k8s.apiServer.image.tag
  • controlPlane.distro.k8s.controllerManager.image.tag
  • controlPlane.distro.k8s.schedule.image.tag

New behavior: controlPlane.distro.k8s.version will override image tags only if they're not specified by user (so they're different than current default tag, v1.30.3. This only affects k8s distro.

Please provide a short message that should be published in the vcluster release notes
Add controlPlane.distro.k8s.version to ease setting up the cluster control plane components version.

What else do we need to know?
It's a bit unfortunate that I had to add the logic to the helm chart, but I don't see other way around it (open to suggestions!). Added a bunch of unit tests.

@hidalgopl hidalgopl added the backport-to-v0.20 backport this PR to v0.20 branch label Aug 6, 2024
Copy link

netlify bot commented Aug 6, 2024

Deploy Preview for vcluster-docs canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 819cf9a
🔍 Latest deploy log https://app.netlify.com/sites/vcluster-docs/deploys/66b353656b96c20008409a90

@hidalgopl hidalgopl force-pushed the add-chart-value-for-setting-k8s-version branch from b51e00a to e63b820 Compare August 6, 2024 10:34
config/values.yaml Outdated Show resolved Hide resolved
@FabianKramm
Copy link
Member

Besides the small comment above, LGTM!

@hidalgopl hidalgopl force-pushed the add-chart-value-for-setting-k8s-version branch from e63b820 to b6b52f2 Compare August 6, 2024 13:21
config/config_test.go Outdated Show resolved Hide resolved
@hidalgopl hidalgopl force-pushed the add-chart-value-for-setting-k8s-version branch 2 times, most recently from afdb933 to 7051fc2 Compare August 7, 2024 08:53
config/config_test.go Outdated Show resolved Hide resolved
@hidalgopl hidalgopl force-pushed the add-chart-value-for-setting-k8s-version branch from 7051fc2 to 819cf9a Compare August 7, 2024 10:58
@FabianKramm FabianKramm merged commit 834c6c5 into loft-sh:main Aug 7, 2024
61 checks passed
@loft-bot
Copy link
Collaborator

loft-bot commented Aug 7, 2024

💚 All backports created successfully

Status Branch Result
v0.20

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

FabianKramm added a commit that referenced this pull request Aug 7, 2024
[v0.20] Merge pull request #2031 from hidalgopl/add-chart-value-for-setting-k8s-version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-v0.20 backport this PR to v0.20 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants