-
Notifications
You must be signed in to change notification settings - Fork 0
New API Spec #54
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
base: main
Are you sure you want to change the base?
New API Spec #54
Conversation
…we will need to address at some point
…sense. Also expanded the amount of configuration options available by using podSpec
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.
I didn't go through the entire code yet, but just left a few quick ones for now.
| // StatelessSpec defines the desired state for a scalable, stateless component | ||
| // like MultiAdmin, MultiOrch, or MultiGateway. | ||
| type StatelessSpec struct { | ||
| // Replicas is the desired number of pods. | ||
| // +kubebuilder:validation:Minimum=0 | ||
| // +optional | ||
| Replicas *int32 `json:"replicas,omitempty"` | ||
|
|
||
| // Affinity defines the pod's scheduling constraints. | ||
| // +optional | ||
| Affinity *corev1.Affinity `json:"affinity,omitempty"` | ||
|
|
||
| // Resources defines the compute resource requirements. | ||
| // +optional | ||
| corev1.ResourceRequirements `json:"resources,omitempty"` | ||
| } |
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.
Because this is used by multiple resources, let's move this to a separate 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.
Can you please remove all the code from internal/controller, as we will not be using them (and they are basically useless templates as is).
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.
I think this was meant to be renamed to "tablegroup_types.go"?
The API spec is now ready to review. You can use this design as reference to check the API definition:
https://github.com/numtide/multigres-operator/blob/multigres-cluster-cr-design/plans/phase-1/final-cr-definition.md
Please note that the pipeline failed due to the KubeBuilder generated controller files, which we could remove if needed, or use as a reference to code forward.