Skip to content

Commit

Permalink
feat: add additional-spring-configuration-metadata.json for governanc…
Browse files Browse the repository at this point in the history
…e module (#3246)
  • Loading branch information
123liuziming authored Apr 5, 2023
1 parent 11909a0 commit ff43f83
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Original file line number Diff line number Diff line change
@@ -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."
}
]}
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Original file line number Diff line number Diff line change
@@ -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."
}
]}
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
@@ -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."
}
]}
Original file line number Diff line number Diff line change
@@ -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."
}
]}

0 comments on commit ff43f83

Please sign in to comment.