Skip to content

Commit 4b26851

Browse files
authored
Update pre-0.3.6 version (#873)
1 parent f017d1a commit 4b26851

File tree

14 files changed

+30
-27
lines changed

14 files changed

+30
-27
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ Dubbo component composition:
3636

3737
Projects are distributed across the code directory repositories:
3838

39+
3940
- [dubbo/api](./api). — Defines the component level APIs for the Dubbo control plane.
4041

42+
- [dubbo/xds-api](https://github.com/dubbo-kubernetes/xds-api). — Define the xDS API for the Dubbo control plane.
43+
4144
- [dubbo/client-go](./client-go). — Defines the Kubernetes clients automatically generated for Dubbo control plane resources.
4245

4346
- [dubbo/dubboctl](./dubboctl). — Provides command line tools for control plane management and other operations.

dubbod/discovery/docker/dockerfile.discovery

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ENV CGO_ENABLED=0 \
2525
GOARCH=${TARGETARCH}
2626

2727
COPY go.mod go.sum ./
28-
RUN go mod download
28+
RUN go mod download -x
2929

3030
COPY . .
3131

dubbod/discovery/docker/dockerfile.proxy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ENV CGO_ENABLED=0 \
2525
GOARCH=${TARGETARCH}
2626

2727
COPY go.mod go.sum ./
28-
RUN go mod download
28+
RUN go mod download -x
2929

3030
COPY . .
3131

dubbod/discovery/pkg/bootstrap/monitoring.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var (
4343
return time.Since(serverStart).Seconds()
4444
})
4545

46-
versionTag = monitoring.CreateLabel("version")
46+
versionTag = monitoring.CreateLabel("version")
4747
dubbodVersion = monitoring.NewGauge(
4848
"dubbod_info",
4949
"Dubbod version and build information.",

dubbod/discovery/pkg/bootstrap/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ type Server struct {
9494
httpsAddr string
9595
httpMux *http.ServeMux
9696
httpsMux *http.ServeMux // webhooks
97-
97+
9898
monitoringMux *http.ServeMux
9999
metricsExporter http.Handler
100100

@@ -236,7 +236,7 @@ func NewServer(args *DubboArgs, initFuncs ...func(*Server)) (*Server, error) {
236236
}
237237

238238
InitGenerators(s.XDSServer, configGen)
239-
239+
240240
// Initialize monitoring server
241241
if err := s.initMonitor(args.ServerOptions.HTTPAddr); err != nil {
242242
return nil, fmt.Errorf("error initializing monitoring: %v", err)

dubbod/discovery/pkg/xds/ads.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ func (s *DiscoveryServer) initConnection(node *core.Node, con *Connection, ident
137137
s.addCon(con.ID(), con)
138138
currentCount := s.adsClientCount()
139139
log.Infof("new connection for node:%s (total connections: %d)", con.ID(), currentCount)
140-
140+
141141
// Record XDS client connection
142142
version := "unknown"
143143
recordXDSClients(version, 1)
144-
144+
145145
defer con.MarkInitialized()
146146

147147
if err := s.initializeProxy(con); err != nil {
@@ -164,13 +164,13 @@ func (s *DiscoveryServer) closeConnection(con *Connection) {
164164
if con.ID() == "" {
165165
return
166166
}
167-
167+
168168
// Record XDS client disconnection
169169
if con.proxy != nil {
170170
version := "unknown"
171171
recordXDSClients(version, -1)
172172
}
173-
173+
174174
s.removeCon(con.ID())
175175
}
176176

dubbod/discovery/pkg/xds/discovery.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,16 @@ func (s *DiscoveryServer) Shutdown() {
121121

122122
func (s *DiscoveryServer) initPushContext(req *model.PushRequest, oldPushContext *model.PushContext, version string) *model.PushContext {
123123
startTime := time.Now()
124-
124+
125125
push := model.NewPushContext()
126126
push.PushVersion = version
127127
push.InitContext(s.Env, oldPushContext, req)
128128
s.dropCacheForRequest(req)
129129
s.Env.SetPushContext(push)
130-
130+
131131
// Record push context init time
132132
pushContextInitTime.Record(time.Since(startTime).Seconds())
133-
133+
134134
return push
135135
}
136136

@@ -178,10 +178,10 @@ func debounce(ch chan *model.PushRequest, stopCh <-chan struct{}, opts DebounceO
178178
push := func(req *model.PushRequest, debouncedEvents int, startDebounce time.Time) {
179179
pushFn(req)
180180
updateSent.Add(int64(debouncedEvents))
181-
181+
182182
// Record debounce time metric
183183
debounceTime.Record(time.Since(startDebounce).Seconds())
184-
184+
185185
freeCh <- struct{}{}
186186
}
187187

@@ -290,12 +290,12 @@ func doSendPushes(stopCh <-chan struct{}, semaphore chan struct{}, queue *PushQu
290290
if shuttingdown {
291291
return
292292
}
293-
293+
294294
// Record proxy queue time
295295
if push != nil && !push.Start.IsZero() {
296296
proxiesQueueTime.Record(time.Since(push.Start).Seconds())
297297
}
298-
298+
299299
doneFunc := func() {
300300
queue.MarkDone(client)
301301
<-semaphore
@@ -371,7 +371,7 @@ func (s *DiscoveryServer) ConfigUpdate(req *model.PushRequest) {
371371
s.Cache.ClearAll()
372372
}
373373
s.InboundUpdates.Inc()
374-
374+
375375
// Record inbound update metrics
376376
if req.ConfigsUpdated != nil && len(req.ConfigsUpdated) > 0 {
377377
recordInboundConfigUpdate()
@@ -441,10 +441,10 @@ func (s *DiscoveryServer) EDSUpdate(shard model.ShardKey, serviceName string, na
441441
// 3. Endpoint health status changes
442442
if pushType == model.IncrementalPush || pushType == model.FullPush {
443443
log.Debugf("service %s/%s triggering %v push [endpoints=%d]", namespace, serviceName, pushType, len(dubboEndpoints))
444-
444+
445445
// Record EDS update metric
446446
recordInboundEDSUpdate()
447-
447+
448448
s.ConfigUpdate(&model.PushRequest{
449449
// Full: pushType == model.FullPush,
450450
// ConfigsUpdated: sets.New(model.ConfigKey{Kind: kind.ServiceEntry, Name: serviceName, Namespace: namespace}),

manifests/charts/base/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ name: base
2020
home: https://github.com/apache/dubbo-kubernetes
2121
icon: https://avatars.githubusercontent.com/u/11751992?s=200&v=4
2222
description: Helm chart for deploying dubbo cluster resources and CRDs.
23-
version: 0.3.5
23+
version: 0.3.6
2424
appVersion: "latest"
2525
maintainers:
2626
- name: mfordjody

manifests/charts/dubbo-control/dubbo-discovery/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ keywords:
2424
- dubbo
2525
- dubbod
2626
- dubbo-discovery
27-
version: 0.3.5
27+
version: 0.3.6
2828
appVersion: "latest"
2929
maintainers:
3030
- name: mfordjody

manifests/charts/dubbo-control/dubbo-discovery/files/kube-gateway.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ spec:
4646
serviceAccountName: {{ .ServiceAccount }}
4747
containers:
4848
- name: dubbo-proxy
49-
image: dubboregistry/dubbo-proxy:0.3.5
49+
image: dubboregistry/dubbo-proxy:0.3.6
5050
imagePullPolicy: Always
5151
ports:
5252
- containerPort: 15020

0 commit comments

Comments
 (0)