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

Look at PRR approval request when querying KEPs #2397

Merged

Conversation

johnbelamaric
Copy link
Member

While querying for KEPs needing PRR approval, I saw we were still missing some KEPs. This is because people aren't setting prrApprovers in kep.yaml and are instead just setting it in the PRR approval request yaml. This hacky PR allows us to search those too.

/assign @wojtek-t @deads2k
/cc @jeremyrickard

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 1, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johnbelamaric

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 size/M Denotes a PR that changes 30-99 lines, ignoring generated files. area/enhancements Issues or PRs related to the Enhancements subproject approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 1, 2021
prrFile, err := os.Open(prrPath)
if !os.IsNotExist(err) {
if err != nil {
return nil, fmt.Errorf("could not open file %s: %v\n", prrPath, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

the flow used to return without error when the prr yaml wasn't present. Seems like we still want to allow that case, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

it still does. if !os.IsNotExists line above

Copy link
Contributor

Choose a reason for hiding this comment

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

different style.

I'm used to

if os.IsNotExist(err){
  return existing
}
if err != nil{
  fail
}
code parsing new values.  

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, that's better.

Copy link
Member Author

Choose a reason for hiding this comment

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

that's what I would normally do, don't know why i did it this way

@deads2k
Copy link
Contributor

deads2k commented Feb 1, 2021

/lgtm

Just a question more than an issue. This worked locally for me (I think).

/hold
holding in case you want another set of eyes.

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Feb 1, 2021
@johnbelamaric johnbelamaric force-pushed the query-prr-request-file branch from 24100e4 to cf7d2fb Compare February 1, 2021 21:49
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 1, 2021
@deads2k
Copy link
Contributor

deads2k commented Feb 1, 2021

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 1, 2021
@johnbelamaric
Copy link
Member Author

/hold cancel

@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 Feb 2, 2021
@k8s-ci-robot k8s-ci-robot merged commit 5d6d935 into kubernetes:master Feb 2, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.21 milestone Feb 2, 2021
@wojtek-t
Copy link
Member

wojtek-t commented Feb 2, 2021

lgtm - thanks

@justaugustus justaugustus mentioned this pull request Feb 2, 2021
32 tasks
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. area/enhancements Issues or PRs related to the Enhancements subproject 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. 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.

4 participants