Skip to content

Commit

Permalink
[Feature] support warehouse (#323)
Browse files Browse the repository at this point in the history
* [Feature] create and implement warehouse crd (#308)

Signed-off-by: yandongxiao <[email protected]>

* [Enhancement] add status and reason information when get status (#313)

Signed-off-by: yandongxiao <[email protected]>

* [BugFix] Add name field in pod template of statefulset to keep the the value of ComponentResourceHash unchanged (#316)

Signed-off-by: yandongxiao <[email protected]>

* [Enhancement] Check FE run mode (#315)

Signed-off-by: yandongxiao <[email protected]>

* [BugFix] Fix unit test and CI (#319)

Signed-off-by: yandongxiao <[email protected]>

* [Enhancement] Check CRD before reconcile (#318)

Signed-off-by: yandongxiao <[email protected]>

* [Enhancement] Add unit test for warehouse (#322)

Signed-off-by: yandongxiao <[email protected]>

---------

Signed-off-by: yandongxiao <[email protected]>
  • Loading branch information
yandongxiao authored Nov 27, 2023
1 parent 972668c commit 6256bdb
Show file tree
Hide file tree
Showing 89 changed files with 13,154 additions and 551 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/label-pr.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ linters:
- lll
- misspell
- nakedret
- noctx
#- noctx
- nolintlint
- revive
- staticcheck
Expand Down
8 changes: 8 additions & 0 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@ resources:
kind: StarRocksCluster
path: github.com/StarRocks/starrocks-kubernetes-operator/pkg/apis/starrocks/v1
version: v1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: starrocks.com
kind: StarRocksWarehouse
path: github.com/StarRocks/starrocks-kubernetes-operator/pkg/apis/starrocks/v1
version: v1
version: "3"
12 changes: 9 additions & 3 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,15 @@ func main() {
os.Exit(1)
}

// initial all controllers
for _, c := range pkg.Controllers {
c.Init(mgr)
// setup all reconciles
if err := pkg.SetupClusterReconciler(mgr); err != nil {
_setupLog.Error(err, "unable to set up cluster reconciler")
os.Exit(1)
}

if err := pkg.SetupWarehouseReconciler(mgr); err != nil {
_setupLog.Error(err, "unable to set up warehouse reconciler")
os.Exit(1)
}

//+kubebuilder:scaffold:builder
Expand Down
2,096 changes: 2,096 additions & 0 deletions config/crd/bases/starrocks.com_starrockswarehouses.yaml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,21 @@ rules:
- starrocks.com
resources:
- starrocksclusters
- starrockswarehouses
verbs:
- '*'
- apiGroups:
- starrocks.com
resources:
- starrocksclusters/finalizers
- starrockswarehouses/finalizers
verbs:
- update
- apiGroups:
- starrocks.com
resources:
- starrocksclusters/status
- starrockswarehouses/status
verbs:
- get
- patch
Expand Down
Loading

0 comments on commit 6256bdb

Please sign in to comment.