controller-tools icon indicating copy to clipboard operation
controller-tools copied to clipboard

:sparkles: testdata/cronjob_types.go: add NestedStructWithSeveralFieldsDoubleMarked

Open jan--f opened this issue 1 year ago • 14 comments

This adds a field to the cronjob test data, that ensures that fields which are marked twice (once through a type marker, one through a field marker) still generate the correct yaml structure.

Signed-off-by: Jan Fajerski [email protected]

jan--f avatar Jul 06 '22 13:07 jan--f

Welcome @jan--f!

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:

k8s-ci-robot avatar Jul 06 '22 13:07 k8s-ci-robot

Hi @jan--f. 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 avatar Jul 06 '22 13:07 k8s-ci-robot

This is a tiny (but I think worthwhile) fix, following up on #692. Hence ping @chrischdi and @FillZpp

jan--f avatar Jul 06 '22 13:07 jan--f

I'm not sure, should we keep this test to verify that annotated on both field and type, to avoid bugs like these #688 and https://github.com/kubernetes-sigs/controller-tools/pull/693#issuecomment-1169433662

FillZpp avatar Jul 07 '22 03:07 FillZpp

I'm not sure, should we keep this test to verify that annotated on both field and type, to avoid bugs like these #688 and #693 (comment)

Yes that makes sense, I added a commit to that effect. WDYT?

jan--f avatar Jul 07 '22 11:07 jan--f

ping @FillZpp Any further concerns about this?

jan--f avatar Aug 23 '22 12:08 jan--f

@jan--f I don't understand what's the difference between NestedStructWithSeveralFields and NestedStructWithSeveralFieldsDoubleMarked ?

FillZpp avatar Aug 24 '22 02:08 FillZpp

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jan--f Once this PR has been reviewed and has the lgtm label, please assign droot for approval by writing /assign @droot 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.

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 avatar Aug 24 '22 06:08 k8s-ci-robot

@jan--f I don't understand what's the difference between NestedStructWithSeveralFields and NestedStructWithSeveralFieldsDoubleMarked ?

@FillZpp Right, because I forgot to add the field marker. Added it now, thank you!

edit: I also updated the title and PR description.

jan--f avatar Aug 24 '22 06:08 jan--f

/ok-to-test

FillZpp avatar Aug 24 '22 09:08 FillZpp

/lgtm

FillZpp avatar Aug 25 '22 03:08 FillZpp

@chrischdi anything still blocking this?

jan--f avatar Sep 23 '22 12:09 jan--f

/lgtm

from my side. But requires a maintainer for approval (which I am not).

chrischdi avatar Sep 23 '22 13:09 chrischdi

Thanks, let me try @pwittrock and @mengqiy for an approve then.

jan--f avatar Sep 23 '22 14:09 jan--f

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jan--f Once this PR has been reviewed and has the lgtm label, please assign droot for approval by writing /assign @droot 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.

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 avatar Nov 17 '22 09:11 k8s-ci-robot

/label tide/merge-method-squash

alvaroaleman avatar Apr 22 '23 14:04 alvaroaleman

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman, jan--f

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 avatar Apr 22 '23 15:04 k8s-ci-robot

Thanks!

alvaroaleman avatar Apr 22 '23 18:04 alvaroaleman