-
Notifications
You must be signed in to change notification settings - Fork 15
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
Move defaulting from webhooks to CRD #51
Milestone
Comments
Also shouldn't we use pointers for those values to explicitly specify value if it wasn't specified? Otherwise it might be blocking to scale etcd cluster to |
After tests I found out annotation |
It's okay, I think we're should have an opportunity to start with 0 |
sircthulhu
added a commit
that referenced
this issue
Mar 21, 2024
- `Replicas` field type changed to *int32 according to k8s api guidelines - remove unnecessary validation (everything is validated using OpenAPI scheme) - allow creation of cluster with 0 replicas fixes #51
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider replacing defaulting webhook with native CRD validation:
etcd-operator/api/v1alpha1/etcdcluster_webhook.go
Lines 45 to 47 in 94c538d
etcd-operator/api/v1alpha1/etcdcluster_types.go
Line 33 in 94c538d
The text was updated successfully, but these errors were encountered: