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 optional comment on fields #56

Merged
merged 1 commit into from
Sep 24, 2018

Conversation

nader-ziada
Copy link
Member

fixes #17

Proposed Changes

  • add +optional comment on fields that have omitempty

@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 20, 2018
@bobcatfish
Copy link
Collaborator

Nice one, thanks @pivotal-nader-ziada ! Now that I'm looking at the api conventions a little more closely, it looks like these optional values should also have a pointer type 🤔 no worries if you'd rather we do that in a separate issue tho (i totally missed it the first time around)

Before we merge this would you be able to add a bit more detail to the commit message around why we're making this change?

/lgtm
/approve
/hold

/meow space

@knative-prow-robot knative-prow-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels Sep 20, 2018
@knative-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bobcatfish, pivotal-nader-ziada

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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 20, 2018
@knative-prow-robot
Copy link

@bobcatfish: cat image

In response to this:

Nice one, thanks @pivotal-nader-ziada ! Now that I'm looking at the api conventions a little more closely, it looks like these optional values should also have a pointer type 🤔 no worries if you'd rather we do that in a separate issue tho (i totally missed it the first time around)

Before we merge this would you be able to add a bit more detail to the commit message around why we're making this change?

/lgtm
/approve
/hold

/meow space

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.

@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Sep 21, 2018
@nader-ziada
Copy link
Member Author

@bobcatfish
I see the api convention says the optional field should be a pointer, but that's only for fields that can not have a nil value. I changed a couple of types to be pointers, but most of the optional fields here are string or a spec type which in both serving and Kubernetes itself are not pointers. WDYT?

I changed the commit message, but that means you have to approve again :)

@nader-ziada
Copy link
Member Author

/hold cancel

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 21, 2018
@tejal29
Copy link
Contributor

tejal29 commented Sep 21, 2018

/lgtm
Thanks for the follow up!

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 21, 2018
@knative-prow-robot knative-prow-robot merged commit f57558d into tektoncd:master Sep 24, 2018
@nader-ziada nader-ziada deleted the optional-types branch September 27, 2018 17:49
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. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add +optional to optional fields
4 participants