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: add support for git refs for vendir #28084

Merged
merged 14 commits into from Mar 28, 2024

Conversation

knechtionscoding
Copy link
Contributor

Changes

Adds support for gitRefs (but not revisionSelections/Ranges) to the Vendir Manager. Vendir supports lots of different upstream/sources this is a commonly used one.

Context

After merging support for helmCharts via Vendir this PR adds support for gitRefs as well

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

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

I have verified these changes via:

  • Both unit tests + ran on a real repository

lib/modules/manager/vendir/__fixtures__/git-contents.yaml Outdated Show resolved Hide resolved
lib/modules/manager/vendir/artifacts.spec.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/types.ts Outdated Show resolved Hide resolved
lib/modules/manager/vendir/schema.ts Outdated Show resolved Hide resolved
fix: remove git, not installable on the fly
fix: add back types.ts
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.

can you please make the fixtures condensed in a separate PR? so we've less changes for the new feature.

lib/modules/manager/vendir/artifacts.spec.ts Outdated Show resolved Hide resolved
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
@knechtionscoding
Copy link
Contributor Author

knechtionscoding commented Mar 24, 2024

can you please make the fixtures condensed in a separate PR? so we've less changes for the new feature.

You had asked me to condense the fixtures in a previous comment. So it feels like doing 1/3 of the condensing here just because and then a second PR is... Odd? Either I follow the pattern for vendir from the previous PR of having separate fixtures and will condense if desired completely in a separate PR. Or I'll do it now.

But leaving it part way done/inconsistent doesn't seem right.

@viceice

lib/modules/manager/vendir/readme.md Outdated Show resolved Hide resolved
lib/modules/manager/vendir/readme.md Outdated Show resolved Hide resolved
knechtionscoding and others added 2 commits March 28, 2024 13:28
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
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.

otherwise LGTM

lib/modules/manager/vendir/artifacts.spec.ts Show resolved Hide resolved
lib/modules/manager/vendir/extract.ts Outdated Show resolved Hide resolved
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.

😉

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 2 commits March 28, 2024 19:16
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 28, 2024
Merged via the queue into renovatebot:main with commit a8208df Mar 28, 2024
37 checks passed
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 37.274.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@knechtionscoding knechtionscoding deleted the feat/support-git-vendir branch March 28, 2024 22:54
secustor pushed a commit to secustor/renovate that referenced this pull request Mar 31, 2024
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 29, 2024
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.

None yet

3 participants