Skip to content

Commit 971d1de

Browse files
optimize: optimize some scripts related to Apollo (#5927)
1 parent 9dd2c18 commit 971d1de

6 files changed

Lines changed: 7 additions & 2 deletions

File tree

changes/en-us/develop.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Add changes here for all PR submitted to the develop branch.
1616
- [[#5890](https://github.com/seata/seata/pull/5890)] remove 7z format compression support
1717
- [[#5891](https://github.com/seata/seata/pull/5891)] remove mariadb.jdbc dependency
1818
- [[#5828](https://github.com/seata/seata/pull/5828)] fix codecov chart not display
19+
- [[#5927](https://github.com/seata/seata/pull/5927)] optimize some scripts related to Apollo
1920
- [[#5918](https://github.com/seata/seata/pull/5918)] standardized the properties of codecov.yml
2021

2122
### security:

changes/zh-cn/develop.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- [[#5890](https://github.com/seata/seata/pull/5890)] 移除7z压缩支持
1717
- [[#5891](https://github.com/seata/seata/pull/5891)] 移除 mariadb.jdbc 依赖
1818
- [[#5828](https://github.com/seata/seata/pull/5828)] 修正 `codecov chart` 不展示的问题
19+
- [[#5927](https://github.com/seata/seata/pull/5927)] 优化一些与 Apollo 相关的脚本
1920
- [[#5918](https://github.com/seata/seata/pull/5918)] 修正codecov.yml不标准属性
2021

2122
### security:

config/seata-config-apollo/src/main/java/io/seata/config/apollo/ApolloConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,13 @@ private void readyApolloConfig() {
186186
System.setProperty(PROP_APOLLO_SECRET, apolloAccesskeySecret);
187187
}
188188
}
189-
if (!properties.containsKey(APOLLO_CLUSTER)) {
189+
if (!properties.containsKey(PROP_APOLLO_CLUSTER)) {
190190
String apolloCluster = FILE_CONFIG.getConfig(getApolloCluster());
191191
if (StringUtils.isNotBlank(apolloCluster)) {
192192
System.setProperty(PROP_APOLLO_CLUSTER, apolloCluster);
193193
}
194194
}
195-
if (!properties.containsKey(APOLLO_CONFIG_SERVICE)) {
195+
if (!properties.containsKey(PROP_APOLLO_CONFIG_SERVICE)) {
196196
String apolloConfigService = FILE_CONFIG.getConfig(getApolloConfigService());
197197
if (StringUtils.isNotBlank(apolloConfigService)) {
198198
System.setProperty(PROP_APOLLO_CONFIG_SERVICE, apolloConfigService);

script/client/conf/registry.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ config {
9595
apolloMeta = "http://192.168.1.204:8801"
9696
namespace = "application"
9797
apolloAccesskeySecret = ""
98+
cluster = ""
9899
}
99100
zk {
100101
serverAddr = "127.0.0.1:2181"

script/client/spring/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ seata.config.apollo.apollo-meta=http://192.168.1.204:8801
9090
seata.config.apollo.apollo-accesskey-secret=
9191
seata.config.apollo.app-id=seata-server
9292
seata.config.apollo.namespace=application
93+
seata.config.apollo.cluster=
9394

9495
seata.config.etcd3.server-addr=http://localhost:2379
9596

script/client/spring/application.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ seata:
8484
app-id: seata-server
8585
namespace: application
8686
apollo-accesskey-secret:
87+
cluster:
8788
etcd3:
8889
server-addr: http://localhost:2379
8990
nacos:

0 commit comments

Comments
 (0)