-
Notifications
You must be signed in to change notification settings - Fork 91
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
Remove support of 'years' and 'months' timeunits from CRD #874
Conversation
/lgtm |
This change looks not backward compatible |
@periklis I don't think we ever supported years or months conversion, at least from what I can tell in the code. So it's not a compatibility issue, but a correction. |
Yes we never supported months or years, it was just there in the CRD but whenever, for example Also, should I remove this from the test file?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One quick question. Otherwise, looks good. I think we can keep the test case.
bundle/manifests/elasticsearch-operator.clusterserviceversion.yaml
Outdated
Show resolved
Hide resolved
/lgtm |
Regardless if the two units ever reconciled any jobs properly, the compatibility issue here affects the etcd store. If a user has stored an instance of the Elasticsearch CRD with these values and we remove them, we won't be able to read it back. Removing values here is like removing fields. @xperimental WDYT? |
As far as I remember, the validation only happens on the write path, so the CRD should still be readable, but it should no longer be possible to write new resources or update existing ones which have values that don't match the new pattern. While it is true, that removing valid values is a breaking change and so would need a versioned changed, I feel like this does not apply to values that were never usable / resulted in an error. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: btaani, periklis 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 |
/retest |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@btaani: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Description
This PR removes the support of
y
andM
time units that are specified in Elasticsearch CRD (yMwdhHms
)./cc @sasagarw
/assign @periklis
Links