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

Allow reuse of the functionality that checks for skaffold dependencies #8630

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

ialidzhikov
Copy link
Member

How to categorize this PR?

/area dev-productivity
/kind enhancement

What this PR does / why we need it:
In the registry-cache extension we also had to specify ko dependencies in the skaffold file to workaround GoogleContainerTools/skaffold#7836. See gardener/gardener-extension-registry-cache#57.
We also forked the hack/check-skaffold-deps.sh script and adapted it for us.
This PR makes possible reuse of the core logic so that other extensions using skaffold (such as shoot-rsyslog-relp extension, cc @plkokanov) can easily reuse the logic for checking skaffold deps.

Which issue(s) this PR fixes:
Part of gardener/gardener-extension-registry-cache#3

Special notes for your reviewer:
See example usage in ialidzhikov/gardener-extension-registry-cache@7f47b4b

Release note:

There is now a new script (`hack/check-skaffold-deps-for-binary.sh`) that can be used by gardener extensions to validate their skaffold ko dependencies.

@gardener-prow gardener-prow bot added area/dev-productivity Developer productivity related (how to improve development) kind/enhancement Enhancement, improvement, extension cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. labels Oct 9, 2023
@gardener-prow gardener-prow bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 9, 2023
Copy link
Contributor

@plkokanov plkokanov left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the PR!

It looks good, I just have one idea about keeping the previous behaviour so that all mismatches between the actual and current dependencies is displayed in a single invocation of the script.

hack/check-skaffold-deps-for-binary.sh Outdated Show resolved Hide resolved
hack/check-skaffold-deps.sh Show resolved Hide resolved
hack/check-skaffold-deps.sh Outdated Show resolved Hide resolved
@plkokanov
Copy link
Contributor

/test pull-gardener-e2e-kind

@plkokanov
Copy link
Contributor

/lgtm

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Oct 13, 2023
@gardener-prow
Copy link
Contributor

gardener-prow bot commented Oct 13, 2023

LGTM label has been added.

Git tree hash: cadc7d98d9035830aad539711ce2fbd24dbb497d

@gardener-prow gardener-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Oct 13, 2023
@plkokanov
Copy link
Contributor

/lgtm
/approve

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Oct 13, 2023
@gardener-prow
Copy link
Contributor

gardener-prow bot commented Oct 13, 2023

LGTM label has been added.

Git tree hash: 50d19442ec61dc2dd7e2928106b2b5a84a29e98f

@gardener-prow
Copy link
Contributor

gardener-prow bot commented Oct 13, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: plkokanov

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

@gardener-prow gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 13, 2023
@gardener-prow gardener-prow bot merged commit f123485 into gardener:master Oct 13, 2023
16 checks passed
@ialidzhikov ialidzhikov deleted the enh/check-skaffold-deps branch November 9, 2023 09:27
ialidzhikov added a commit to ialidzhikov/gardener-extension-registry-cache that referenced this pull request Nov 13, 2023
ialidzhikov added a commit to ialidzhikov/gardener-extension-registry-cache that referenced this pull request Nov 13, 2023
ialidzhikov added a commit to ialidzhikov/gardener-extension-registry-cache that referenced this pull request Nov 15, 2023
gardener-prow bot pushed a commit to gardener/gardener-extension-registry-cache that referenced this pull request Nov 16, 2023
* go.mod: Update github.com/gardener/gardener to v1.82.2

* make revendor

* Clean up TODO related to the skaffold version

After gardener/gardener#8634 we no longer need to overwrite the skaffold version

* Use the `hack/check-skaffold-deps-for-binary.sh` from Gardener scripts

See gardener/gardener#8630
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/dev-productivity Developer productivity related (how to improve development) cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/enhancement Enhancement, improvement, extension lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants