Skip to content

Commit

Permalink
Add Coordinator spec
Browse files Browse the repository at this point in the history
Signed-off-by: ashraful <[email protected]>
  • Loading branch information
AshrafulHaqueToni committed May 27, 2024
1 parent b1240cb commit 7327750
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apis/ops/v1alpha1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions apis/ops/v1alpha1/singlestore_ops_helpers.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package v1alpha1

import (
Expand Down
2 changes: 2 additions & 0 deletions apis/ops/v1alpha1/singlestore_ops_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ type SinglestoreVerticalScalingSpec struct {
Aggregator *PodResources `json:"aggregator,omitempty"`
// Resource spec for Leaf
Leaf *PodResources `json:"leaf,omitempty"`
// Resource spec for Coordinator container
Coordinator *ContainerResources `json:"coordinator,omitempty"`
}

// SinglestoreVolumeExpansionSpec is the spec for Singlestore volume expansion
Expand Down
5 changes: 5 additions & 0 deletions apis/ops/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions crds/ops.kubedb.com_singlestoreopsrequests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,40 @@ spec:
- value
type: object
type: object
coordinator:
properties:
resources:
properties:
claims:
items:
properties:
name:
type: string
required:
- name
type: object
type: array
x-kubernetes-list-map-keys:
- name
x-kubernetes-list-type: map
limits:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
type: object
requests:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
type: object
type: object
type: object
leaf:
properties:
nodeSelectionPolicy:
Expand Down

0 comments on commit 7327750

Please sign in to comment.