-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add webhook validation for empty database and rabbitmq #33
Add webhook validation for empty database and rabbitmq #33
Conversation
Skipping CI for Draft Pull Request. |
Another option is to make these fields pointers and then use the kubebuilder [1] https://github.com/openstack-k8s-operators/keystone-operator/blob/16c3ed8e549f8591dd17c94fcd165620c8a5444f/api/v1beta1/keystoneapi_types.go#L60-L64 |
d7009d7
to
aa71a31
Compare
Thank you for the suggestion @abays , I have added them in existing patch. But while running tests, I am hitting following error:
I might have missed something in this change. Need your suggestion here, thank you! |
If you're going to use the string pointers, then you have to dereference the pointers when you use them in the code. For instance [1] [2]. That [1] https://github.com/openstack-k8s-operators/keystone-operator/blob/16c3ed8e549f8591dd17c94fcd165620c8a5444f/api/v1beta1/keystoneapi_types.go#L96 |
aa71a31
to
2fe1ea4
Compare
Thank you @abays , Now it is fixed :-) |
2fe1ea4
to
b205f1e
Compare
7f00222
to
90c6e85
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/799b775a8b0845f491e57c92d190ab1c ✔️ noop SUCCESS in 0s |
recheck |
recheck |
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/464569b495934f318e49c5f8cd05ea4e ✔️ noop SUCCESS in 0s |
recheck |
Thanks for this information! I had no idea about that ... |
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/86468220f573427d8dbdba6ad8e54766 ✔️ noop SUCCESS in 0s |
recheck |
This change depends on a change that failed to merge. Change openstack-k8s-operators/ci-framework#2658 is needed. |
recheck |
requires rebase, that other than that lgtm |
databaseInstance and rabbitMqClusterName are required fields. If an user specify databaseInstance and rabbitMqClusterName field as empty string. The webhook should fail it saying as there cannot be empty. This pr adds the validations for the same. Jira: https://issues.redhat.com/browse/OSPRH-11933 Signed-off-by: Chandan Kumar (raukadah) <[email protected]>
90c6e85
to
afae6cf
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: amoralej 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 |
c3c5bca
into
openstack-k8s-operators:main
databaseInstance and rabbitMqClusterName are required fields. If an user specify databaseInstance and rabbitMqClusterName field as empty string. The webhook should fail it saying as there cannot be empty.
This pr adds the validations for the same.
Jira: https://issues.redhat.com/browse/OSPRH-11933
Depends-On: openstack-k8s-operators/ci-framework#2658