Skip to content

Commit

Permalink
chore: remove opentsdb addr (#203)
Browse files Browse the repository at this point in the history
* fix:issue201

* fix2

* fix3

* fix4

* fix5

---------

Co-authored-by: 庄润梓 <[email protected]>
  • Loading branch information
confoc and 庄润梓 authored May 22, 2024
1 parent 9c7c9fa commit efa2f7d
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 16 deletions.
1 change: 0 additions & 1 deletion pkg/components/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ func (f *frontend) BuildArgs(params ...interface{}) []string {
args = GenerateAddrArg("--rpc-addr", f.config.GRPCAddr, nodeId, args)
args = GenerateAddrArg("--mysql-addr", f.config.MysqlAddr, nodeId, args)
args = GenerateAddrArg("--postgres-addr", f.config.PostgresAddr, nodeId, args)
args = GenerateAddrArg("--opentsdb-addr", f.config.OpentsdbAddr, nodeId, args)

if len(f.config.Config) > 0 {
args = append(args, fmt.Sprintf("-c=%s", f.config.Config))
Expand Down
2 changes: 0 additions & 2 deletions pkg/config/baremetal.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ type Frontend struct {
PostgresAddr string `yaml:"postgresAddr" validate:"omitempty,hostname_port"`
MetaAddr string `yaml:"metaAddr" validate:"omitempty,hostname_port"`
MysqlAddr string `yaml:"mysqlAddr" validate:"omitempty,hostname_port"`
OpentsdbAddr string `yaml:"opentsdbAddr" validate:"omitempty,hostname_port"`

Replicas int `yaml:"replicas" validate:"gt=0"`
Config string `yaml:"config" validate:"omitempty,filepath"`
Expand Down Expand Up @@ -111,7 +110,6 @@ func DefaultBareMetalConfig() *BareMetalClusterConfig {
GRPCAddr: "0.0.0.0:4001",
MysqlAddr: "0.0.0.0:4002",
PostgresAddr: "0.0.0.0:4003",
OpentsdbAddr: "0.0.0.0:4242",
},
MetaSrv: &MetaSrv{
Replicas: 1,
Expand Down
2 changes: 1 addition & 1 deletion pkg/helm/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestLoadAndRenderChart(t *testing.T) {
ReleaseName: "gtctl-ut",
Namespace: "default",
ChartName: artifacts.GreptimeDBClusterChartName,
ChartVersion: "0.1.2",
ChartVersion: "0.1.29",
FromCNRegion: false,
ValuesOptions: opt.CreateClusterOptions{
ImageRegistry: "registry.cn-hangzhou.aliyuncs.com",
Expand Down
39 changes: 28 additions & 11 deletions pkg/helm/testdata/db-manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,50 @@ metadata:
spec:
base:
main:
image: 'registry.cn-hangzhou.aliyuncs.com/greptime/greptimedb:v0.4.1'
image: 'registry.cn-hangzhou.aliyuncs.com/greptime/greptimedb:v0.8.0'
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 500m
memory: 512Mi
limits: {}
requests: {}
frontend:
replicas: 3
template:
main:
resources:
requests:
{}
limits:
{}
meta:
replicas: 3
etcdEndpoints:
- mycluster-etcd.default:2379
template:
main:
resources:
requests:
{}
limits:
{}
datanode:
replicas: 3
template:
main:
resources:
requests:
{}
limits:
{}
storage:
storageClassName: ebs-sc
storageSize: 11Gi
storageRetainPolicy: Delete
walDir: /tmp/greptimedb/wal
dataHome: /data/greptimedb
walDir: /data/greptimedb/wal
httpServicePort: 4000
grpcServicePort: 4001
mysqlServicePort: 4002
postgresServicePort: 4003
openTSDBServicePort: 4242
initializer:
image: 'registry.cn-hangzhou.aliyuncs.com/greptime/greptimedb-initializer:0.1.0-alpha.17'
storage:
image: 'registry.cn-hangzhou.aliyuncs.com/greptime/greptimedb-initializer:0.1.0-alpha.25'
objectStorage:
{}
2 changes: 1 addition & 1 deletion tests/e2e/greptimedbcluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const (
)
PARTITION ON COLUMNS (n) (
n < 5,
n < 9,
n >= 5 AND n < 9,
n >= 9
)`

Expand Down

0 comments on commit efa2f7d

Please sign in to comment.