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

Add proposal for Node OS image caching #3624

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

bennycortese
Copy link
Contributor

@bennycortese bennycortese commented Jun 12, 2023

What type of PR is this?

/kind feature

What this PR does / why we need it:
This PR adds a proposal for a Node OS image caching feature which would be integrated into CAPZ. We need it because it will help security regulations, speed up horizontal scaling and allow users to have pods running faster on new nodes.

Which issue(s) this PR fixes
Fixes #3607

Special notes for your reviewer:

  • cherry-pick candidate

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

Proposal for Node OS image caching feature

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 12, 2023
@k8s-ci-robot
Copy link
Contributor

Welcome @bennycortese!

It looks like this is your first PR to kubernetes-sigs/cluster-api-provider-azure 🎉. 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/cluster-api-provider-azure 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 needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 12, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @bennycortese. 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.

@mboersma
Copy link
Contributor

/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 Jun 13, 2023
Copy link
Contributor

@nojnhuh nojnhuh left a comment

Choose a reason for hiding this comment

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

This is a great start! I think there are a few finer details we should get into a bit more but the overall approach looks good!

docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
@nojnhuh
Copy link
Contributor

nojnhuh commented Jun 13, 2023

(reminder to squash after approval)
/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 13, 2023
@codecov
Copy link

codecov bot commented Jun 13, 2023

Codecov Report

Patch coverage has no change and project coverage change: +1.51% 🎉

Comparison is base (3684845) 53.25% compared to head (dd44f25) 54.77%.
Report is 188 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3624      +/-   ##
==========================================
+ Coverage   53.25%   54.77%   +1.51%     
==========================================
  Files         185      187       +2     
  Lines       18432    19098     +666     
==========================================
+ Hits         9816    10460     +644     
+ Misses       8074     8070       -4     
- Partials      542      568      +26     

see 46 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
@willie-yao
Copy link
Contributor

Thanks for all your great work on this @bennycortese! I think it could be helpful to retitle this PR as "Add proposal for node OS image caching" as it is not implementing the feature yet. This can also be added to the release notes in the PR description.

@bennycortese bennycortese changed the title Node OS image caching Add proposal for Node OS image caching Jun 13, 2023
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Jun 13, 2023
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
docs/proposals/20230612-node-os-image-caching.md Outdated Show resolved Hide resolved
@bennycortese bennycortese force-pushed the nodeOsImageCaching branch 3 times, most recently from f979896 to 7944306 Compare August 7, 2023 20:23
@k8s-ci-robot k8s-ci-robot removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Aug 7, 2023
@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Aug 7, 2023

@bennycortese: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-provider-azure-e2e-aks f979896 link true /test pull-cluster-api-provider-azure-e2e-aks
pull-cluster-api-provider-azure-ci-entrypoint f979896 link true /test pull-cluster-api-provider-azure-ci-entrypoint
pull-cluster-api-provider-azure-conformance f979896 link false /test pull-cluster-api-provider-azure-conformance
pull-cluster-api-provider-azure-e2e f979896 link true /test pull-cluster-api-provider-azure-e2e
pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts f979896 link false /test pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts
pull-cluster-api-provider-azure-conformance-with-ci-artifacts f979896 link false /test pull-cluster-api-provider-azure-conformance-with-ci-artifacts
pull-cluster-api-provider-azure-capi-e2e f979896 link false /test pull-cluster-api-provider-azure-capi-e2e

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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.

@nojnhuh
Copy link
Contributor

nojnhuh commented Aug 7, 2023

The link checker doesn't seem to like https://azure.microsoft.com links, so you might need to ignore those explicitly like this:

<!-- markdown-link-check-disable-next-line -->
- A [Microsoft Azure account](https://azure.microsoft.com/)

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 7, 2023
@bennycortese bennycortese reopened this Aug 7, 2023
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 7, 2023
Copy link
Contributor

@nojnhuh nojnhuh left a comment

Choose a reason for hiding this comment

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

/lgtm
/assign @CecileRobertMichon

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 8, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 4faabdf74fcad5f855c1c77ecfa0119b12b75bf4

Copy link
Contributor

@willie-yao willie-yao left a comment

Choose a reason for hiding this comment

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

/lgtm

Great work Benny!

@CecileRobertMichon
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CecileRobertMichon

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 Aug 8, 2023
@nojnhuh
Copy link
Contributor

nojnhuh commented Aug 8, 2023

@CecileRobertMichon Do we need to keep the hold on this for consensus? I'd originally put the hold on this as a reminder to squash but that all looks good.

@CecileRobertMichon
Copy link
Contributor

/hold cancel

The only person who is listed as reviewer who hasn't lgtm'ed is @jackfrancis and he is on leave so we're good to merge this

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 8, 2023
@k8s-ci-robot k8s-ci-robot merged commit e2a0c6c into kubernetes-sigs:main Aug 8, 2023
@k8s-ci-robot k8s-ci-robot added this to the v1.11 milestone Aug 8, 2023
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. kind/feature Categorizes issue or PR as related to a new feature. 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. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Proposal to integrate Kamino Style VM image caching with CAPZ
7 participants