Skip to content

Commit cadf0cb

Browse files
committed
[chore]: format code, add missing ASF headers
1 parent 8373b09 commit cadf0cb

File tree

21 files changed

+72
-64
lines changed

21 files changed

+72
-64
lines changed

manifests/charts/dubbo-control/dubbo-discovery/files/grpc-agent.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

manifests/charts/dubbo-control/dubbo-discovery/templates/zzz_profile.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

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

Lines changed: 0 additions & 16 deletions
This file was deleted.

pkg/file/fadvise_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build linux
2+
13
/*
24
* Licensed to the Apache Software Foundation (ASF) under one or more
35
* contributor license agreements. See the NOTICE file distributed with
@@ -15,8 +17,6 @@
1517
* limitations under the License.
1618
*/
1719

18-
//go:build linux
19-
2020
package file
2121

2222
import (

sail/configs/multi-cluster.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
# Multi-Cluster Configuration for Dubbo Admin
2-
# This file defines multiple Kubernetes clusters that Dubbo Admin can manage
3-
4-
apiVersion: v1
5-
kind: Config
6-
metadata:
7-
name: multi-cluster-config
8-
namespace: dubbo-system
9-
101
#
112
# Licensed to the Apache Software Foundation (ASF) under one or more
123
# contributor license agreements. See the NOTICE file distributed with
@@ -24,6 +15,14 @@ metadata:
2415
# limitations under the License.
2516
#
2617

18+
# Multi-Cluster Configuration for Dubbo Admin
19+
# This file defines multiple Kubernetes clusters that Dubbo Admin can manage
20+
21+
apiVersion: v1
22+
kind: Config
23+
metadata:
24+
name: multi-cluster-config
25+
namespace: dubbo-system
2726
# Multi-cluster configuration for Dubbo Service Registry
2827
multiCluster:
2928
enabled: true

sail/configs/multi-registry.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
# Multi-Registry Configuration for Dubbo Admin
2-
# This file defines multiple service registries that Dubbo Admin can connect to
3-
4-
apiVersion: v1
5-
kind: Config
6-
metadata:
7-
name: multi-registry-config
8-
namespace: dubbo-system
91

102
#
113
# Licensed to the Apache Software Foundation (ASF) under one or more
@@ -24,6 +16,14 @@ metadata:
2416
# limitations under the License.
2517
#
2618

19+
# Multi-Registry Configuration for Dubbo Admin
20+
# This file defines multiple service registries that Dubbo Admin can connect to
21+
22+
apiVersion: v1
23+
kind: Config
24+
metadata:
25+
name: multi-registry-config
26+
namespace: dubbo-system
2727
# Multi-registry configuration for Dubbo Service Registry
2828
multiRegistry:
2929
enabled: true

sail/pkg/bootstrap/servicecontroller.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
118
package bootstrap
219

320
import (

sail/pkg/model/service.go

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
118
package model
219

320
import (
@@ -78,9 +95,9 @@ func (s *Service) DeepCopy() *Service {
7895
return nil
7996
}
8097
out := &Service{
81-
Attributes: s.Attributes.DeepCopy(),
82-
Hostname: s.Hostname,
83-
CreationTime: s.CreationTime,
98+
Attributes: s.Attributes.DeepCopy(),
99+
Hostname: s.Hostname,
100+
CreationTime: s.CreationTime,
84101
}
85102
if s.Ports != nil {
86103
out.Ports = make(PortList, len(s.Ports))

sail/pkg/serviceregistry/instance.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
* limitations under the License.
1616
*/
1717

18-
1918
package serviceregistry
2019

2120
import (

sail/pkg/serviceregistry/istio/istio_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
118
package istio
219

320
import (

0 commit comments

Comments
 (0)