@@ -108,6 +108,7 @@ type MultiPoolerSpec struct {
108108// MultiOrchSpec defines the configuration for the MultiPooler container.
109109type MultiOrchSpec struct {
110110 // Cells is the name of the cells MultiOrch needs to be deployed to.
111+ // TODO: This must have at least one item, otherwise deployment won't work.
111112 Cells []string `json:"cells,omitempty"`
112113
113114 // Image is the MultiOrch container image to use.
@@ -158,6 +159,12 @@ type ShardStatus struct {
158159// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.readyPods",description="Ready pods"
159160// +kubebuilder:printcolumn:name="Total",type="string",JSONPath=".status.totalPods",description="Total pods"
160161// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
162+ // +kubebuilder:rbac:groups=multigres.com,resources=shards,verbs=get;list;watch;create;update;patch;delete
163+ // +kubebuilder:rbac:groups=multigres.com,resources=shards/status,verbs=get;update;patch
164+ // +kubebuilder:rbac:groups=multigres.com,resources=shards/finalizers,verbs=update
165+ // +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete
166+ // +kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=get;list;watch;create;update;patch;delete
167+ // +kubebuilder:rbac:groups="",resources=services,verbs=get;list;watch;create;update;patch;delete
161168
162169// Shard is the Schema for the Shards API
163170type Shard struct {
0 commit comments