Skip to content

Conversation

@ironcladlou
Copy link
Contributor

The +nullable markers removed in this commit were never actually used
in the CRD we publish (See the history of [1] for evidence). Use of these
markers was actually a mistake (omitempty is sufficient).

[1] https://github.com/openshift/cluster-ingress-operator/blob/master/manifests/00-custom-resource-definition.yaml

@sttts @deads2k @damemi @Miciah

The `+nullable` markers removed in this commit were never actually used
in the CRD we publish (See the history of [1] for evidence). Use of these
markers was actually a mistake (`omitempty` is sufficient).

[1] https://github.com/openshift/cluster-ingress-operator/blob/master/manifests/00-custom-resource-definition.yaml
@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 24, 2019
@ironcladlou
Copy link
Contributor Author

Given ingress-operator has never persisted nullable: true for any of these fields, is it safe to delete the markers?

@sttts
Copy link
Contributor

sttts commented Sep 24, 2019

If null has never been persisted, it is safe. Note that in theory a non-Golang client (or a dynamic client) could have posted null objects and those would be persisted now. You have to judge whether this is realistic.

@sttts
Copy link
Contributor

sttts commented Sep 24, 2019

[1] looks convincing. You were lucky.

/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 24, 2019
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ironcladlou, sttts

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

The pull request process is described here

Details 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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 24, 2019
@openshift-merge-robot openshift-merge-robot merged commit b2a1550 into openshift:master Sep 24, 2019
ironcladlou added a commit to ironcladlou/library-go that referenced this pull request Sep 24, 2019
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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants