feat: add additional-spring-configuration-metadata.json for governance module (#3246)

pull/3305/head
Liu Ziming 2 years ago committed by GitHub
parent 11909a0916
commit ff43f837d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -53,6 +53,12 @@
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>

@ -0,0 +1,8 @@
{"properties": [
{
"name": "spring.cloud.governance.auth.enabled",
"type": "java.lang.Boolean",
"defaultValue": true,
"description": "enable authentication in governance module or not."
}
]}

@ -49,6 +49,12 @@
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>

@ -0,0 +1,8 @@
{"properties": [
{
"name": "spring.cloud.governance.routing.rule",
"type": "java.lang.String",
"defaultValue": "ZoneAvoidanceRule",
"description": "Lodbalance rule for label routing, the following values are included: RoundRobinRule, RandomRule, WeightedResponseTimeRule, BestAvailableRule, RetryRule, ZoneAvoidanceRule, AvailabilityFilteringRule."
}
]}

@ -47,6 +47,11 @@
<artifactId>opensergo-java-sdk</artifactId>
<version>${opensergo.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<!-- Only for unit test-->
<dependency>

@ -0,0 +1,13 @@
{"properties": [
{
"name": "spring.cloud.opensergo.endpoint",
"type": "java.lang.String",
"description": "Endpoint of OpenSergo control plane."
},
{
"name": "spring.cloud.opensergo.namespace",
"type": "java.lang.String",
"defaultValue": "default",
"description": "Namespace Configuration about OpenSergo Config."
}
]}

@ -0,0 +1,44 @@
{"properties": [
{
"name": "spring.cloud.istio.config.enabled",
"type": "java.lang.Boolean",
"defaultValue": true,
"description": "Whether to connect to Istio to obtain authentication configuration."
},
{
"name": "spring.cloud.istio.config.host",
"type": "java.lang.String",
"defaultValue": "127.0.0.1",
"description": "Host of Istiod."
},
{
"name": "spring.cloud.istio.config.port",
"type": "java.lang.Integer",
"defaultValue": 15012,
"description": "Port of Istiod."
},
{
"name": "spring.cloud.istio.config.polling-pool-size",
"type": "java.lang.Integer",
"defaultValue": 10,
"description": "Thread pool size for application to pull the config."
},
{
"name": "spring.cloud.istio.config.polling-time",
"type": "java.lang.Integer",
"defaultValue": 30,
"description": "Time interval for application to pull the config, time unit is second."
},
{
"name": "spring.cloud.istio.config.istiod-token",
"type": "java.lang.String",
"defaultValue": "token read from /var/run/secrets/tokens/istio-token",
"description": "JWT token for application to connect to 15012 port."
},
{
"name": "spring.cloud.istio.config.log-xds",
"type": "java.lang.Boolean",
"defaultValue": true,
"description": "Whether to print logs about xDS."
}
]}
Loading…
Cancel
Save