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

operator: add missing markers to condition type #445

Conversation

ironcladlou
Copy link
Contributor

@ironcladlou ironcladlou commented Sep 26, 2019

@sttts @deads2k @damemi @Miciah

See openshift/cluster-ingress-operator#301 (review).

I think the ingress and dns APIs are the only consumers of this type, and we've been persisting them as optional in 4.1 (example) and switched them to required in 4.2 (example).

Since we own the only known consumers, we can deal with any cleanup (and upgrade testing has not revealed any issues).

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 26, 2019
@ironcladlou
Copy link
Contributor Author

ironcladlou commented Sep 26, 2019

I'm not sure I know how to assess just how risky this change is.

@ironcladlou
Copy link
Contributor Author

@Miciah
Copy link
Contributor

Miciah commented Oct 2, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 2, 2019
@ironcladlou
Copy link
Contributor Author

@sttts @deads2k can you please look at this one? Don't want to let it get away from us, and I especially need to understand if there are 4.2 implications

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ironcladlou, Miciah
To complete the pull request process, please assign eparis
You can assign the PR to them by writing /assign @eparis in a comment when ready.

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

@sttts
Copy link
Contributor

sttts commented Oct 2, 2019

Very important to add: these fields are not omitempty and are only encoded as JSON. Hence, at worst we have "" as values for these two fields when generated from (typed) code.

@ironcladlou
Copy link
Contributor Author

@sttts

Very important to add: these fields are not omitempty and are only encoded as JSON. Hence, at worst we have "" as values for these two fields when generated from (typed) code.

Hmm, does that mean it's safe to mark them required now?

@sttts
Copy link
Contributor

sttts commented Oct 2, 2019

Hmm, does that mean it's safe to mark them required now?

It means that it is safe if we can assume that neither a dynamic client has been involved in creating those conditions and no user manually removed those fields. Both assumptions are unlikely to be wrong.

@sttts
Copy link
Contributor

sttts commented Oct 2, 2019

@deads2k want to hear your opinion on #445 (comment)

@deads2k
Copy link
Contributor

deads2k commented Oct 15, 2019

Hmm, does that mean it's safe to mark them required now?

It means that it is safe if we can assume that neither a dynamic client has been involved in creating those conditions and no user manually removed those fields. Both assumptions are unlikely to be wrong.

Don't tighten validation.

/close

@openshift-ci-robot
Copy link

@deads2k: Closed this PR.

In response to this:

Hmm, does that mean it's safe to mark them required now?

It means that it is safe if we can assume that neither a dynamic client has been involved in creating those conditions and no user manually removed those fields. Both assumptions are unlikely to be wrong.

Don't tighten validation.

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

5 participants