-
Notifications
You must be signed in to change notification settings - Fork 199
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
Issue 233: Fixed chart bug and made ready and unready fields as nullable and added checks for various crd fields #234
Conversation
Signed-off-by: prabhaker24 <prabhaker.saxena@dell.com>
Codecov Report
@@ Coverage Diff @@
## master #234 +/- ##
=======================================
Coverage 81.81% 81.81%
=======================================
Files 11 11
Lines 1248 1248
=======================================
Hits 1021 1021
Misses 162 162
Partials 65 65
Continue to review full report at Codecov.
|
Signed-off-by: prabhaker24 <prabhaker.saxena@dell.com>
Signed-off-by: prabhaker24 <prabhaker.saxena@dell.com>
Signed-off-by: prabhaker24 <prabhaker.saxena@dell.com>
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.
Please add validation spec fields like pullpolicy, container port etc. And test the negative scenarios and ensure proper error is given
Signed-off-by: prabhaker24 <prabhaker.saxena@dell.com>
Signed-off-by: prabhaker24 <prabhaker.saxena@dell.com>
Could you please check can we add validations for storagetype and access modes |
Signed-off-by: prabhaker24 <prabhaker.saxena@dell.com>
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.
LGTM
Signed-off-by: prabhaker24 prabhaker.saxena@dell.com
Change log description
Create zookeeper cluster is failing with chart due to domain name not specified correctly in charts Ater the OpenApi SchemaValidation check Added and made the ready and unready member list as nullable in crd.
Purpose of the change
Fixes #233 #208
What the code does
Because of the OpenApiSchemaValidation being present we can't have the domainname with null value which was the case till now so I have changed it so that if no value is provided domainname field get's skipped along with that to keep backwards compatibility that is for the latest operator code to be able to deploy zookeeper cluster 0.2.8 or before we need to make ready and unready member list as nullable in the crd as they were not omitempty before.
Additionally, I have removed controller-gen command from make file and have used operator-sdk command to create the crd below is the command:-
operator-sdk generate crds
And have added validation checks for various fields in the crd.
How to verify it
Create zookeeper cluster using charts after deploying the zookeeper-operator, Cluster should get deployed.