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

[Backport release-1.30] chore(backport): make helm timeout backward compatible #5048

Conversation

ricardomaraschini
Copy link
Contributor

Description

backport of #5017

in the past the helm chart install timeout was moved from an integer to a string. this commit brings back the capability of using integers to set the helm chart timeout.

Type of change

  • Chore
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

How Has This Been Tested?

  • Manual test
  • Auto test added

Checklist:

  • My code follows the style guidelines of this project
  • My commit messages are signed-off
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

in the past the helm chart install timeout was moved from an integer to
a string. this commit brings back the capability of using integers to
set the helm chart timeout.

Signed-off-by: Ricardo Maraschini <[email protected]>
(cherry picked from commit 368a761)
Signed-off-by: Ricardo Maraschini <[email protected]>
(cherry picked from commit df5f6d8)
Signed-off-by: Ricardo Maraschini <[email protected]>
(cherry picked from commit eff9942)
@ricardomaraschini ricardomaraschini requested a review from a team as a code owner September 26, 2024 13:17
@ricardomaraschini ricardomaraschini changed the title Backport helm timeout change [Backport release-1.30] chore(backport): make helm timeout backward compatible Sep 26, 2024
@laverya
Copy link
Contributor

laverya commented Sep 26, 2024

I'm currently seeing the following journalctl logs after upgrading from 1.29 to 1.30 with a few helm charts in the dynamic config extensions, so hopefully this will fix things!

Sep 26 22:45:59 node0 k0s[10821]: time="2024-09-26 22:45:59" level=info msg="E0926 22:45:59.933059 10856 fieldmanager.go:155] "[SHOULD NOT HAPPEN] failed to update managedFields" err=<" component=kube-apiserver stream=stderr
Sep 26 22:45:59 node0 k0s[10821]: time="2024-09-26 22:45:59" level=info msg="\tfailed to convert new object (kube-system/k0s; k0s.k0sproject.io/v1beta1, Kind=ClusterConfig) to smd typed: errors:" component=kube-apiserver stream=stderr
Sep 26 22:45:59 node0 k0s[10821]: time="2024-09-26 22:45:59" level=info msg="\t .spec.extensions.helm.charts[0].timeout: expected numeric (int or float), got string" component=kube-apiserver stream=stderr
Sep 26 22:45:59 node0 k0s[10821]: time="2024-09-26 22:45:59" level=info msg="\t .spec.extensions.helm.charts[1].timeout: expected numeric (int or float), got string" component=kube-apiserver stream=stderr
Sep 26 22:45:59 node0 k0s[10821]: time="2024-09-26 22:45:59" level=info msg="\t .spec.extensions.helm.charts[2].timeout: expected numeric (int or float), got string" component=kube-apiserver stream=stderr
Sep 26 22:45:59 node0 k0s[10821]: time="2024-09-26 22:45:59" level=info msg="\t .spec.extensions.helm.charts[3].timeout: expected numeric (int or float), got string" component=kube-apiserver stream=stderr
Sep 26 22:45:59 node0 k0s[10821]: time="2024-09-26 22:45:59" level=info msg="\t .spec.extensions.helm.charts[4].timeout: expected numeric (int or float), got string" component=kube-apiserver stream=stderr
Sep 26 22:45:59 node0 k0s[10821]: time="2024-09-26 22:45:59" level=info msg=" > versionKind="k0s.k0sproject.io/v1beta1, Kind=ClusterConfig" namespace="kube-system" name="k0s"" component=kube-apiserver stream=stderr
Sep 26 22:46:00 node0 k0s[10821]: time="2024-09-26 22:46:00" level=info msg="EtcdMember CRD status: False" component=etcdMemberReconciler
Sep 26 22:46:00 node0 k0s[10821]: time="2024-09-26 22:46:00" level=info msg="I0926 22:46:00.664025 10856 handler.go:286] Adding GroupVersion etcd.k0sproject.io v1beta1 to ResourceManager" component=kube-apiserver stream=stderr

@laverya
Copy link
Contributor

laverya commented Sep 26, 2024

And I can confirm that when running with this mechanism, things just work - I don't have to edit our initially-created /etc/k0s/k0s.yaml files to remove the timeouts, and the in-cluster type upgrades properly too!

@jnummelin jnummelin merged commit 4c95dda into k0sproject:release-1.30 Sep 27, 2024
81 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants