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

🌱 Update promote-images to filter by image and sort by tag #6452

Merged
merged 1 commit into from
Apr 29, 2022

Conversation

CecileRobertMichon
Copy link
Contributor

@CecileRobertMichon CecileRobertMichon commented Apr 27, 2022

What this PR does / why we need it: Updates kpromo to the latest release so we can take advantage of 1) filtering by promotion by image to exclude CAPD images and 2) sorting by tag instead of by digest.

https://github.com/kubernetes-sigs/promo-tools/releases/tag/v3.4.1

Test PR to promote fake v0.99.99 tag from this branch: https://github.com/kubernetes/k8s.io/pull/3683/files

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 27, 2022
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 27, 2022
@@ -40,6 +40,6 @@ fi
rm "${GOBIN}/${2}"* || true

# install the golang module specified as the first argument
go install -tags tools "${1}@${3}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure why this was needed, pretty sure it was there at the time we had fake go.mod but is no longer needed. I removed it because it was causing errors due to a conflict with a new imported package in kpromo:

../../../pkg/mod/github.com/google/[email protected]/tools.go:20:2: import "github.com/fullstorydev/grpcurl/cmd/grpcurl" is a program, not an importable package

because the above has tag // +build tools

Copy link
Member

@sbueringer sbueringer Apr 27, 2022

Choose a reason for hiding this comment

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

I agree, probably we probably copied the command from there

@CecileRobertMichon
Copy link
Contributor Author

/assign @sbueringer @fabriziopandini

@CecileRobertMichon CecileRobertMichon changed the title Update promote-images to filter by image and sort by tag 🌱 Update promote-images to filter by image and sort by tag Apr 27, 2022
Copy link
Member

@sbueringer sbueringer left a comment

Choose a reason for hiding this comment

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

Nice, thx!

/lgtm

Makefile Show resolved Hide resolved
@@ -40,6 +40,6 @@ fi
rm "${GOBIN}/${2}"* || true

# install the golang module specified as the first argument
go install -tags tools "${1}@${3}"
Copy link
Member

@sbueringer sbueringer Apr 27, 2022

Choose a reason for hiding this comment

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

I agree, probably we probably copied the command from there

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 27, 2022
Copy link
Member

@vincepri vincepri left a comment

Choose a reason for hiding this comment

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

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 29, 2022
@k8s-ci-robot k8s-ci-robot merged commit 1763f18 into kubernetes-sigs:main Apr 29, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.2 milestone Apr 29, 2022
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants