Skip to content

Commit

Permalink
Synchronization URL support configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzhiguo committed Oct 16, 2024
1 parent cd2723e commit de27cde
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/joylive-injector/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.3.0
version: 1.3.1

keywords:
- joylive
Expand Down
22 changes: 13 additions & 9 deletions charts/joylive-injector/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ agent:
profile: null
sync:
liveSpace:
type: ${CONFIG_LIVE_SPACE_API_TYPE:file} # [file,multilive]
url: ${CONFIG_LIVE_SPACE_API_URL:http://api.live.local:9090/v1}
type: ${CONFIG_LIVE_SPACE_API_TYPE:{{ .Values.sync.liveSpace.type }}} # [file,multilive]
url: ${CONFIG_LIVE_SPACE_API_URL:{{ .Values.sync.liveSpace.url }}}
#spacesUrl: ${CONFIG_LIVE_SPACE_API_URL}/workspaces
#spaceUrl: ${CONFIG_LIVE_SPACE_API_URL}/workspaces/${space_id}/version/${space_version}
#serviceUrl: ${CONFIG_LIVE_SPACE_API_URL}/services/${service_name}/version/${service_version}
Expand All @@ -71,9 +71,12 @@ agent:
laneSpace:
type: file
microservice:
type: ${CONFIG_SERVICE_API_TYPE:file}
url: ${CONFIG_SERVICE_API_URL:http://api.jmsf.local:8080/v1}
type: ${CONFIG_SERVICE_API_TYPE:{{ .Values.sync.microservice.type }}}
url: ${CONFIG_SERVICE_API_URL:{{ .Values.sync.microservice.url }}}
headers: ${CONFIG_SERVICE_API_HEADERS}
interval: 5000
timeout: 3000
initialTimeout: 20000
watchdog:
enabled: true
delay: 5000
Expand All @@ -98,9 +101,6 @@ agent:
enabled: ${CONFIG_REGISTRY_ENABLED:true}
flowcontrol:
enabled: ${CONFIG_FLOW_CONTROL_ENABLED:true}
loadbalance: ${CONFIG_LOADBALANCE_ENABLED:true}
sticky: ${CONFIG_STICKY_ENABLED:false}
limit: ${CONFIG_LIMIT_ENABLED:true}
localhost: ${CONFIG_LOCALHOST_ENABLED:false}
virtual: ${CONFIG_VIRTUAL_ENABLED:false}
protect:
Expand All @@ -119,6 +119,7 @@ agent:
initializeTimeout: ${CONFIG_POLICY_INITIALIZE_TIMEOUT:10000}
service:
warmups: ${CONFIG_WARMUP_SERVICES:}
systemPaths: ${CONFIG_SYSTEM_HTTP_PATHS}
concurrencyLimiter:
type: Resilience4j
cleanInterval: 30000
Expand All @@ -133,12 +134,15 @@ agent:
expireTime: 60000
live:
topics: ${CONFIG_LIVE_TOPICS}
modifyMQGroupEnabled: ${CONFIG_LIVE_MODIFY_MQ_GROUP:true}
modifyMQGroupEnabled: ${CONFIG_LIVE_MODIFY_MQ_GROUP:false}
lane:
topics: ${CONFIG_LANE_TOPICS}
modifyMQGroupEnabled: ${CONFIG_LANE_MODIFY_MQ_GROUP:true}
modifyMQGroupEnabled: ${CONFIG_LANE_MODIFY_MQ_GROUP:false}
router:
virtual: ${CONFIG_VIRTUAL_SIZE:500}
spring:
discovery:
disables: ${CONFIG_SPRING_DISCOVERY_DISABLES}
phevos:
groupExpression: ${unit}-${cell}-${group}
transmission:
Expand Down
6 changes: 4 additions & 2 deletions charts/joylive-injector/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ metadata:
labels: {{ include "joylive-injector.selectorLabels" . | nindent 4 }}
data:
{{- $root := . }}
{{- range $path, $_ := .Files.Glob "config/*" }}
{{- range $path, $_ := $root.Files.Glob "config/*" }}
{{- $fileName := base $path }}
{{ $fileName }}: |
{{ $.Files.Get $path | indent 4 }}
{{- $fileContent := $root.Files.Get $path }}
{{- $parsedContent := tpl $fileContent $root }}
{{ $parsedContent | indent 4 -}}
{{- end }}
2 changes: 2 additions & 0 deletions charts/joylive-injector/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ spec:
path: /readyz
periodSeconds: 10
initialDelaySeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
{{- toYaml .Values.VolumeMounts | nindent 12 }}
{{- with .Values.imagePullSecrets }}
Expand Down

0 comments on commit de27cde

Please sign in to comment.