Skip to content

Commit de27cde

Browse files
committed
Synchronization URL support configuration
1 parent cd2723e commit de27cde

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

charts/joylive-injector/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.3.0
18+
version: 1.3.1
1919

2020
keywords:
2121
- joylive

charts/joylive-injector/config/config.yaml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ agent:
5656
profile: null
5757
sync:
5858
liveSpace:
59-
type: ${CONFIG_LIVE_SPACE_API_TYPE:file} # [file,multilive]
60-
url: ${CONFIG_LIVE_SPACE_API_URL:http://api.live.local:9090/v1}
59+
type: ${CONFIG_LIVE_SPACE_API_TYPE:{{ .Values.sync.liveSpace.type }}} # [file,multilive]
60+
url: ${CONFIG_LIVE_SPACE_API_URL:{{ .Values.sync.liveSpace.url }}}
6161
#spacesUrl: ${CONFIG_LIVE_SPACE_API_URL}/workspaces
6262
#spaceUrl: ${CONFIG_LIVE_SPACE_API_URL}/workspaces/${space_id}/version/${space_version}
6363
#serviceUrl: ${CONFIG_LIVE_SPACE_API_URL}/services/${service_name}/version/${service_version}
@@ -71,9 +71,12 @@ agent:
7171
laneSpace:
7272
type: file
7373
microservice:
74-
type: ${CONFIG_SERVICE_API_TYPE:file}
75-
url: ${CONFIG_SERVICE_API_URL:http://api.jmsf.local:8080/v1}
74+
type: ${CONFIG_SERVICE_API_TYPE:{{ .Values.sync.microservice.type }}}
75+
url: ${CONFIG_SERVICE_API_URL:{{ .Values.sync.microservice.url }}}
7676
headers: ${CONFIG_SERVICE_API_HEADERS}
77+
interval: 5000
78+
timeout: 3000
79+
initialTimeout: 20000
7780
watchdog:
7881
enabled: true
7982
delay: 5000
@@ -98,9 +101,6 @@ agent:
98101
enabled: ${CONFIG_REGISTRY_ENABLED:true}
99102
flowcontrol:
100103
enabled: ${CONFIG_FLOW_CONTROL_ENABLED:true}
101-
loadbalance: ${CONFIG_LOADBALANCE_ENABLED:true}
102-
sticky: ${CONFIG_STICKY_ENABLED:false}
103-
limit: ${CONFIG_LIMIT_ENABLED:true}
104104
localhost: ${CONFIG_LOCALHOST_ENABLED:false}
105105
virtual: ${CONFIG_VIRTUAL_ENABLED:false}
106106
protect:
@@ -119,6 +119,7 @@ agent:
119119
initializeTimeout: ${CONFIG_POLICY_INITIALIZE_TIMEOUT:10000}
120120
service:
121121
warmups: ${CONFIG_WARMUP_SERVICES:}
122+
systemPaths: ${CONFIG_SYSTEM_HTTP_PATHS}
122123
concurrencyLimiter:
123124
type: Resilience4j
124125
cleanInterval: 30000
@@ -133,12 +134,15 @@ agent:
133134
expireTime: 60000
134135
live:
135136
topics: ${CONFIG_LIVE_TOPICS}
136-
modifyMQGroupEnabled: ${CONFIG_LIVE_MODIFY_MQ_GROUP:true}
137+
modifyMQGroupEnabled: ${CONFIG_LIVE_MODIFY_MQ_GROUP:false}
137138
lane:
138139
topics: ${CONFIG_LANE_TOPICS}
139-
modifyMQGroupEnabled: ${CONFIG_LANE_MODIFY_MQ_GROUP:true}
140+
modifyMQGroupEnabled: ${CONFIG_LANE_MODIFY_MQ_GROUP:false}
140141
router:
141142
virtual: ${CONFIG_VIRTUAL_SIZE:500}
143+
spring:
144+
discovery:
145+
disables: ${CONFIG_SPRING_DISCOVERY_DISABLES}
142146
phevos:
143147
groupExpression: ${unit}-${cell}-${group}
144148
transmission:

charts/joylive-injector/templates/configmap.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ metadata:
66
labels: {{ include "joylive-injector.selectorLabels" . | nindent 4 }}
77
data:
88
{{- $root := . }}
9-
{{- range $path, $_ := .Files.Glob "config/*" }}
9+
{{- range $path, $_ := $root.Files.Glob "config/*" }}
1010
{{- $fileName := base $path }}
1111
{{ $fileName }}: |
12-
{{ $.Files.Get $path | indent 4 }}
12+
{{- $fileContent := $root.Files.Get $path }}
13+
{{- $parsedContent := tpl $fileContent $root }}
14+
{{ $parsedContent | indent 4 -}}
1315
{{- end }}

charts/joylive-injector/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ spec:
4242
path: /readyz
4343
periodSeconds: 10
4444
initialDelaySeconds: 5
45+
resources:
46+
{{- toYaml .Values.resources | nindent 12 }}
4547
volumeMounts:
4648
{{- toYaml .Values.VolumeMounts | nindent 12 }}
4749
{{- with .Values.imagePullSecrets }}

0 commit comments

Comments
 (0)