kubernetes-retired / multi-tenancy

A working place for multi-tenancy related proposals and prototypes.
Apache License 2.0
954 stars 172 forks source link

Allow HNC to propagate changes to CRD. #1513

Closed just1900 closed 3 years ago

just1900 commented 3 years ago

A PR would be great, thanks! Just a few quick pointers / requests:

  • A change like this benefits from a lot of comments, e.g. linking to this issue. Otherwise we'll have no idea why we added this in a few months.
  • It would be great if you could add or update a unit test to verify that the rV is being copied (e.g. here.
  • It would be amazing if you could update an end-to-end test (e.g. here) to try to propagate a CRD, show that this fails without your fix, and that it passes with your fix. This test is probably a pretty good model, and you can embed yaml in the test as shown here.

    • The e2e tests assume that you've deployed HNC to a cluster, and your kubectl config is currently pointing at the cluster you want to run the tests on.
    • Running all the e2e tests takes ~30min but you only need to run the one you're writing. So you can modify your test so that the It() function has an F (for "focus") in front of it, like this: FIt() (note the first two letters are capitalized). This will only run your test. Just remember to change it back to It() before you submit the PR.
  • We use one commit per PR so please squash all commits and force-update the PR branch if necessary. We also describe how we tested the change in the commit message like this.

@adrianludwin PTAL, follow your pointers

k8s-ci-robot commented 3 years ago

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

:memo: 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](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
k8s-ci-robot commented 3 years ago

Welcome @just1900!

It looks like this is your first PR to kubernetes-sigs/multi-tenancy 🎉. 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/multi-tenancy 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. :smiley:

k8s-ci-robot commented 3 years ago

Hi @just1900. 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](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
k8s-ci-robot commented 3 years ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: just1900 To complete the pull request process, please assign adrianludwin after the PR has been reviewed. You can assign the PR to them by writing /assign @adrianludwin in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/kubernetes-sigs/multi-tenancy/blob/master/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
just1900 commented 3 years ago

I signed it

adrianludwin commented 3 years ago

Oh man, I just realized this is in the wrong repo! Sorry I didn't pick up on that. Can you please make this change in https://github.com/kubernetes-sigs/hierarchical-namespaces instead? Sorry about that. The code hasn't changed very much (apart from the paths - the incubator/hnc prefix has been removed) so it should be fairly easy to recreate the change in the new repo. I'm really sorry I missed that.

just1900 commented 3 years ago

I didn't realize that either 😂, I've open another PR there https://github.com/kubernetes-sigs/hierarchical-namespaces/pull/59. Shall we close this one?

adrianludwin commented 3 years ago

Yup! Closing this copy.

/close

k8s-ci-robot commented 3 years ago

@adrianludwin: Closed this PR.

In response to [this](https://github.com/kubernetes-sigs/multi-tenancy/pull/1513#issuecomment-877240877): >Yup! Closing this copy. > >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.