Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
Signed-off-by: Aylei <[email protected]>
  • Loading branch information
aylei committed Oct 9, 2024
1 parent 55633d0 commit 5e56c10
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ SHELL=/usr/bin/env bash -o pipefail
REPO ?= "matrixorigin/matrixone-operator"
TAG ?= "latest"
GOPROXY ?= "https://proxy.golang.org,direct"
MO_VERSION ?= "v2.0.0-17562fa87-2024-10-09"
MO_IMAGE_REPO ?= "registry.cn-hangzhou.aliyuncs.com/mocloud/matrixone"
MO_VERSION ?= "1.2.3"
MO_IMAGE_REPO ?= "matrixorigin/matrixone"
BRANCH ?= main
ENVTEST_K8S_VERSION = 1.24.1

Expand Down
4 changes: 2 additions & 2 deletions pkg/controllers/cnset/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ name = "ETL"
memory-capacity = "1B"
[hakeeper-client]
discovery-address = "test:6001"
service-addresses = []
`,
},
{
Expand Down Expand Up @@ -156,7 +156,7 @@ name = "ETL"
memory-capacity = "1B"
[hakeeper-client]
discovery-address = "test:6001"
service-addresses = []
`,
},
{
Expand Down
74 changes: 72 additions & 2 deletions pkg/controllers/dnset/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
package dnset

import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/matrixorigin/matrixone-operator/api/core/v1alpha1"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"testing"
)

func Test_buildDNSetConfigMap(t *testing.T) {
Expand Down Expand Up @@ -92,7 +93,7 @@ name = "ETL"
memory-capacity = "1B"
[hakeeper-client]
discovery-address = "test:6001"
service-addresses = []
`,
},
{
Expand Down Expand Up @@ -167,6 +168,75 @@ name = "ETL"
[fileservice.cache]
memory-capacity = "1B"
[hakeeper-client]
service-addresses = []
`,
},
{
name: "2.0",
args: args{
dn: &v1alpha1.DNSet{
ObjectMeta: metav1.ObjectMeta{
Namespace: "test",
Name: "test",
},
Spec: v1alpha1.DNSetSpec{
PodSet: v1alpha1.PodSet{
MainContainer: v1alpha1.MainContainer{
Image: "test:v2.0.0",
},
},
},
},
ls: &v1alpha1.LogSet{
ObjectMeta: metav1.ObjectMeta{
Namespace: "test",
Name: "test",
},
Spec: v1alpha1.LogSetSpec{SharedStorage: v1alpha1.SharedStorageProvider{
FileSystem: &v1alpha1.FileSystemProvider{
Path: "/test",
},
}},
Status: v1alpha1.LogSetStatus{
Discovery: &v1alpha1.LogSetDiscovery{
Port: 6001,
Address: "test",
},
},
},
},
wantConfig: `data-dir = "/var/lib/matrixone/data"
service-type = "DN"
[dn]
listen-address = "0.0.0.0:41010"
port-base = 41010
[dn.LogtailServer]
listen-address = "0.0.0.0:32003"
[dn.lockservice]
listen-address = "0.0.0.0:6003"
[[fileservice]]
backend = "DISK"
data-dir = "/var/lib/matrixone/data"
name = "LOCAL"
[[fileservice]]
backend = "DISK"
data-dir = "/test"
name = "S3"
[[fileservice]]
backend = "DISK-ETL"
data-dir = "/test"
name = "ETL"
[fileservice.cache]
memory-capacity = "1B"
[hakeeper-client]
discovery-address = "test:6001"
`,
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/matrixonecluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const (
teardownClusterTimeout = 10 * time.Minute
pollInterval = 15 * time.Second
portForwardTimeout = 10 * time.Second
sqlTestTimeout = 10 * time.Minute
sqlTestTimeout = 15 * time.Minute
)

var _ = Describe("MatrixOneCluster test", func() {
Expand Down

0 comments on commit 5e56c10

Please sign in to comment.