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

Download crun using download_file.yml #7370

Merged
merged 5 commits into from
Mar 19, 2021
Merged

Download crun using download_file.yml #7370

merged 5 commits into from
Mar 19, 2021

Conversation

necatican
Copy link
Contributor

@necatican necatican commented Mar 12, 2021

What type of PR is this?

/kind feature

What this PR does / why we need it:

It is needed to standardize the download process. It also is marked as a TODO item.

Which issue(s) this PR fixes:

Fixes #7345

Special notes for your reviewer:

The versioning format is up for consideration. The versions of other software downloaded with download_file.yml start with 'v' meanwhile crun does not. There are three options here:

  • Use the native versioning. crun_version: 0.18
  • Use the native versioning for the variable, prepend 'v' in roles/download/defaults/main.yml. This is achievable with a filter. crun_binary_checksum: "{{ crun_checksums[image_arch]['v' + (crun_version|string)] }}"
  • Use prepended version. crun_version: v0.18 This is the dirtiest option, download URL requires native versioning.

I have decided to use the native versioning. It is possible to switch between different options with ease.

Does this PR introduce a user-facing change?

"crun_release_url" variable is replaced with "crun_download_url"

- Replaced the download URL of Crun. "crun_release_url" - > "crun_download_url" 

@k8s-ci-robot
Copy link
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA.

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.


Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Mar 12, 2021
@k8s-ci-robot
Copy link
Contributor

Welcome @necatican!

It looks like this is your first PR to kubernetes-sigs/kubespray 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/kubespray has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Mar 12, 2021
@k8s-ci-robot
Copy link
Contributor

Hi @necatican. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot requested review from EppO and holmsten March 12, 2021 20:17
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 12, 2021
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Mar 12, 2021
@champtar
Copy link
Contributor

Not sure I have enough power
/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 16, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: champtar, floryut, necatican

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 Mar 16, 2021
@floryut
Copy link
Member

floryut commented Mar 16, 2021

@necatican Thank you for the PR! 😄

@necatican
Copy link
Contributor Author

/assign EppO

@necatican
Copy link
Contributor Author

/cc oomichi

@k8s-ci-robot k8s-ci-robot requested a review from oomichi March 18, 2021 13:27
@oomichi
Copy link
Contributor

oomichi commented Mar 19, 2021

Not sure I have enough power
/ok-to-test

@champtar You have enough power to put /lgtm :-)

0.18: e94578c013eae98b0a50477f6bc77963a7c85145bf280da39f9855d69d9cab53
arm64:
0.16: 0
0.17: 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this 0 mean Kubespray doesn't support 0.16 and 0.17 for arm64?

Copy link
Contributor Author

@necatican necatican Mar 19, 2021

Choose a reason for hiding this comment

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

Arm build for older versions are unavailable on crun releases.

@champtar
Copy link
Contributor

Not sure I have enough power
/ok-to-test

@champtar You have enough power to put /lgtm :-)

Thanks, I though I needed to be added in some OWNER file, but it's to approve only

@floryut
Copy link
Member

floryut commented Mar 19, 2021

Not sure I have enough power
/ok-to-test

@champtar You have enough power to put /lgtm :-)

Thanks, I though I needed to be added in some OWNER file, but it's to approve only

Yup it's this case 😄

Technically, anyone who is a member of the kubernetes GitHub organization can drive-by /lgtm a PR
Drive-by reviews from non-members are encouraged as a way of demonstrating experience and intent to become a member or reviewer.
Drive-by /lgtm's from members may be a sign that our OWNERS files are too small, or that the existing reviewers are too unresponsive
This goes against the idea of specifying reviewers in the first place, to ensure that author is getting actionable feedback from people knowledgeable with the code

@champtar
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 19, 2021
@k8s-ci-robot k8s-ci-robot merged commit 811f546 into kubernetes-sigs:master Mar 19, 2021
LuckySB pushed a commit to southbridgeio/kubespray that referenced this pull request Apr 6, 2021
* Add crun download_url and checksum

* Change versioning format to crun native versioning

* Download crun using download_file.yml

* Get crun version from download defaults

* Delegate crun binary copy task to crun role
sakuraiyuta pushed a commit to sakuraiyuta/kubespray that referenced this pull request Apr 16, 2022
* Add crun download_url and checksum

* Change versioning format to crun native versioning

* Download crun using download_file.yml

* Get crun version from download defaults

* Delegate crun binary copy task to crun role
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Download crun using download_file.yml
6 participants