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

Bump helm to v3.14.2 #7797

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Bump helm to v3.14.2 #7797

merged 1 commit into from
Mar 7, 2024

Conversation

g-gaston
Copy link
Member

@g-gaston g-gaston commented Mar 6, 2024

Description of changes

This started as just a helm update.

However, a few commands in the release/cli module seem to not be working, they appeared to not be handling correctly the fact that the module is cli and not in release.

I fixed those. However, the unit tests for the release cli were then failing. This wasn't because of the helm or any other module update. The tests were actually broken.

I suspect because of the incorrect command, the tests haven't been running for a while, hence we never detected the issue.

The fix was easy, just a matter of changing the expected results. I believe when we changed the versioning logic for dev releases, these test broke. But since they didn't run, we didn't fix them.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@eks-distro-bot eks-distro-bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Mar 6, 2024
@g-gaston g-gaston force-pushed the bump-helm-v3.14.2 branch 2 times, most recently from 6d3b9ad to 36d1d41 Compare March 6, 2024 20:25
Copy link

codecov bot commented Mar 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.55%. Comparing base (03e067c) to head (f780367).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7797   +/-   ##
=======================================
  Coverage   73.55%   73.55%           
=======================================
  Files         588      588           
  Lines       37174    37176    +2     
=======================================
+ Hits        27344    27346    +2     
  Misses       8035     8035           
  Partials     1795     1795           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -106,7 +106,7 @@ test: manifests generate fmt vet ## Run tests.

##@ Build

build: clean fmt vet ## Build release binary.
build: clean fmt ## Build release binary.
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think this was ever vetting correctly
Now that I fixed the vet command, it spits a bunch of errors
I'm leaving that to be fixed later in the future. I suspect those errors have been there for a while

@g-gaston g-gaston force-pushed the bump-helm-v3.14.2 branch 2 times, most recently from 69654ba to 3421bcd Compare March 6, 2024 22:10
@eks-distro-bot eks-distro-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 6, 2024
@abhay-krishna
Copy link
Member

/lgtm
/approve

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhay-krishna

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@eks-distro-bot eks-distro-bot merged commit 7ba9b3c into aws:main Mar 7, 2024
12 checks passed
cxbrowne1207 pushed a commit to cxbrowne1207/eks-anywhere that referenced this pull request May 8, 2024
cxbrowne1207 pushed a commit to cxbrowne1207/eks-anywhere that referenced this pull request May 8, 2024
bump helm and controller runtime
cxbrowne1207 added a commit that referenced this pull request May 8, 2024
…8118)

* Bump controller-runtime to v0.16.5 (#7788)

`controller-runtime` v0.16.5

- Fake client breaking changes:
  - Start using `WithStatusSubresource` when we care about status being
    treated differently through `Update` calls. This is basically all
    controllers.
  - Add a finalizer when creating an object directly with a deletion
    timestamp. This make sense since any controller interested in the
    delete flow should be already adding finalizers.
- Signature of `Watches` for creating a controller has been simplified
  and doesn't need the `source.Kind` wrapper.
- Manager options signature has changed. Now metrics and webhook fields
  are nested in its own second level struct.
- Validation webhooks now return a `(admission.Warnings, error)` instead
  of just `error`. We are not using this functionality for now, but we
  had to update all our webhooks and test to follow the new signature.
- `handler.MapFunc` has changed, now they take a context as well. We
  don't use the context but need to conform to the new signature.

`cluster-api` v1.6.2

- When setting up cluster tracker, the variable `DefaultIndexes` is
  removed, now we use `[]Index{NodeProviderIDIndex}`

CAPC

We are still waiting for capc to be updated to capi v1.5, which would
enable us to move to controller-runtime v0.15. It's taking quite long
and we got to the point where this is preventing us from updating
moduled (like helm) that we need to update ASAP.

I opted for "vendoring" just the api structs we need from capc. In order
to contain changes and allow for an easy "revert" to use the original
module (whenever we can), I created a dummy module so I can just use a
`replace` in our go.mod and point to our vendored folder.

I put this in `internal/thirdparty/capc`. You don't need to review that
code, I just copied it.

Assertions in gomock

I had to change some of the assertions in the cluster manager tests. Now
they are less strict since they use type instead of content assertion.
TBH, they were wrong from the beginning since they expected current and
new spec to be the same, so if so, this makes the test slightly better.

I checked and I believe all this is already dead code because of the
workflow refactors we did in v0.19.0. It's just that the code hasn't
been deleted yet. I'll push to get all this crap removed.

CAPV

They just change the package where they have the api structs from
`api/[version]` to `apis/[version]`.

* Bump helm to v3.14.2 (#7797)

bump helm and controller runtime

* Bump x/net (#7945)

bump net/x to fix vulnerability

* go mod tidy

* Bump Go version to 1.21 (#7805)

* Bump helm froo 3.14.2 to 3.14.4 (#8119)

* go mod tidy

* fix linting errors

---------

Co-authored-by: Guillermo Gaston <gaslor@amazon.com>
Co-authored-by: Xu Deng <xudeng@amazon.com>
Co-authored-by: Abhay Krishna <arnchlm@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants