controller-tools
controller-tools copied to clipboard
:sparkles: Markers can now indicate their priority when applying
There's a need for more control over when SchemaMarkers are applied to a Schema. Right now there are two levels - 'First' and everything else. The iteration over the markers within this level is non-deterministic because we're iterating over a golang map type.
As an alternative we now collect all the markers and sort them based on a new priority. Markers can signal their priority by implementing the optional interface
type ApplyPriority int64
type ApplyPriorityMarker interface {
ApplyPriority() ApplyPriority
}
This change is backwards compatible - downstream markers that implement ApplyFirst() will behave the same as before.
Welcome @dprotaso!
It looks like this is your first PR to kubernetes-sigs/controller-tools 🎉. 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/controller-tools 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:
Hi @dprotaso. 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.
/assign @vincepri @alvaroaleman
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: dprotaso To complete the pull request process, please ask for approval from alvaroaleman after the PR has been reviewed.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
/ok-to-test
Hey folks, just following up - is there anything else needed for this PR?
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: dprotaso
Once this PR has been reviewed and has the lgtm label, please ask for approval from alvaroaleman by writing /assign @alvaroaleman in a comment. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
@camilamacedo86 done - take a look
Hi - folks just following up
bump @vincepri @alvaroaleman
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closed
You can:
- Mark this PR as fresh with
/remove-lifecycle stale - Close this PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
Seems like prow is broken?
/retest
/test pull-controller-tools-test-master
/retest
Prow started working again
@vincepri and/or @alvaroaleman PTAL
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closed
You can:
- Mark this PR as fresh with
/remove-lifecycle rotten - Close this PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
@vincepri and/or @alvaroaleman PTAL
@vincepri @alvaroaleman can you take a look please?
/lifecycle frozen
@dprotaso: The lifecycle/frozen label cannot be applied to Pull Requests.
In response to this:
/lifecycle frozen
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.
/remove-lifecycle rotten
@vincepri @joelanford @alvaroaleman @sbueringer - is there anything holding up this PR? I've addressed the initial PR reviews.
Thank you!
/lgtm
/assign @alvaroaleman @vincepri
LGTM label has been added.
/approve
Thank you very much!
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: dprotaso, sbueringer
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [sbueringer]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment