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

feat(vendir): add vendir support #25113

Merged
merged 56 commits into from
Mar 21, 2024

Conversation

knechtionscoding
Copy link
Contributor

@knechtionscoding knechtionscoding commented Oct 9, 2023

Currently only supports the helmChart dependency, but provides a framework for other types of dependencies in vendir

Changes

  • Adds support for the Vendir manager when using helmCharts
  • Builds framework for supporting other types of vendir dependencies

Context

Closes #17711

Documentation (please check one with an [x])

  • I have updated the documentation

How I've tested my work (please select one)

I have verified these changes via:

  • Both unit tests + ran on a real repository

Test PRs:

Currently only supports the helmChart dependency, but provides a framework for other types of dependencies in vendir

Co-authored-by: Zoltán Reegn <reegnz@users.noreply.github.com>
@CLAassistant
Copy link

CLAassistant commented Oct 9, 2023

CLA assistant check
All committers have signed the CLA.

@knechtionscoding
Copy link
Contributor Author

knechtionscoding commented Oct 10, 2023

@rarkins I think I have this mostly working (working through some final small things). But I would love a cursory glance.

I also would love to know how the kustomize manager works.

I used the kustomize and helmv3 managers as examples. What I didn't see in the case of kustomize but did in the case of helmv3 is a bumpVersion function.

Where does that happen for kustomize? Do I need to write a bumpVersion function? Or does the new version just show up somewhere properly?

And I can't get the tests to pass for artifact.ts. I appear to be having a problem with adding all non-vendir.lock.yml files. I tried both the kustomize, helm, and gomod method and cannot get it to work properly. Can you give me some pointers on that?

feat(vendir): check types correctly

Co-authored-by: Zoltán Reegn <reegnz@users.noreply.github.com>
@knechtionscoding knechtionscoding marked this pull request as ready for review October 10, 2023 13:32
@knechtionscoding
Copy link
Contributor Author

@rarkins would love some feedback on this PR, would love to get vendir support added natively

lib/modules/manager/vendir/artifacts.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/artifacts.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/artifacts.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/artifacts.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/artifacts.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/artifacts.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/artifacts.ts Show resolved Hide resolved
lib/modules/manager/vendir/extract.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/extract.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
knechtionscoding and others added 5 commits February 7, 2024 07:35
chore: revert package.json change
chore: run prettier
fix: inline function
fix: remove resetAllMocks

Co-authored-by: Zoltán Reegn <reegnz@users.noreply.github.com>
lib/modules/manager/vendir/README.md Outdated Show resolved Hide resolved
lib/modules/manager/vendir/README.md Outdated Show resolved Hide resolved
lib/modules/manager/vendir/extract.ts Show resolved Hide resolved
fix: add back conditional for vendirSync properly
docs: update vendir readme
lib/modules/manager/vendir/artifacts.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/artifacts.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/artifacts.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/artifacts.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/artifacts.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/artifacts.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/artifacts.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/artifacts.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/artifacts.ts Outdated Show resolved Hide resolved
@viceice
Copy link
Member

viceice commented Mar 15, 2024

please avoid force push, we squash merge, so no worries about git history

Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

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

nice work, nearly done

lib/modules/manager/vendir/extract.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/extract.spec.ts Show resolved Hide resolved
lib/modules/manager/vendir/extract.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/extract.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/extract.ts Outdated Show resolved Hide resolved
knechtionscoding and others added 4 commits March 20, 2024 15:36
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
fix: remove unnecessary check
fix: remove utils
tests: update tests results to reflect better naming
tests: inline emptydirectories
lib/modules/manager/vendir/readme.md Outdated Show resolved Hide resolved
lib/modules/manager/vendir/readme.md Outdated Show resolved Hide resolved
lib/modules/manager/vendir/artifacts.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/extract.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/extract.spec.ts Outdated Show resolved Hide resolved
knechtionscoding and others added 7 commits March 21, 2024 14:48
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
@viceice viceice added this pull request to the merge queue Mar 21, 2024
Merged via the queue into renovatebot:main with commit db1b0d8 Mar 21, 2024
37 checks passed
@reegnz reegnz deleted the feat/vendir-support branch March 21, 2024 16:22
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 37.264.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Vendir manager
7 participants