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

crd: add validation to crd #153

Merged
merged 4 commits into from
Oct 31, 2018
Merged

Conversation

weekface
Copy link
Contributor

This PR fixes #150 , add a validation to CRD to ensure the cpu properties is string.

@tennix @onlymellb @xiaojingchen @gregwebs PTAL

properties:
limits:
properties:
cpu:
Copy link
Member

@tennix tennix Oct 29, 2018

Choose a reason for hiding this comment

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

Is it necessary to add other fields validation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can add additional verification if needed in the future.

Copy link
Member

@tennix tennix left a comment

Choose a reason for hiding this comment

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

LGTM

@tennix
Copy link
Member

tennix commented Oct 31, 2018

/run-e2e-tests

@onlymellb
Copy link
Contributor

LGTM

@tennix tennix merged commit 51dde5d into pingcap:master Oct 31, 2018
@weekface weekface deleted the add-validation-to-crd branch October 31, 2018 08:59
queenliuxx pushed a commit to queenliuxx/tidb-operator that referenced this pull request Dec 19, 2018
fgksgf pushed a commit to fgksgf/tidb-operator that referenced this pull request Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tidb-operator blocks when a tidbcluster spec is wrong
3 participants