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 277f52b commit c725497
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 12 deletions.
4 changes: 3 additions & 1 deletion deploy/all-cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ metadata:
app.kubernetes.io/instance: joylive-injector
app: joylive-injector
spec:
replicas: 1
replicas: 2
selector:
matchLabels:
app: joylive-injector
Expand Down Expand Up @@ -562,6 +562,8 @@ spec:
path: /readyz
periodSeconds: 10
initialDelaySeconds: 5
resources:
{}
volumeMounts:
- mountPath: /etc/kubernetes/ssl/
name: dynamic-admission-control-certs
Expand Down
2 changes: 1 addition & 1 deletion deploy/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.4.0
version: 1.3.1

keywords:
- joylive
Expand Down
8 changes: 4 additions & 4 deletions deploy/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,8 +71,8 @@ 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
Expand Down
6 changes: 4 additions & 2 deletions deploy/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 deploy/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
14 changes: 10 additions & 4 deletions deploy/joylive-injector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicas: 1
replicas: 2

namespace: joylive

Expand All @@ -28,13 +28,19 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

service:
type: ClusterIP
port: 80
serviceAccount:
create: true
name: joylive-injector

sync:
liveSpace:
type: file
url: http://api.live.local:9090/v1
headers: ${CONFIG_LIVE_SPACE_API_HEADERS}
microservice:
type: file
url: http://api.jmsf.local:8080/v1

#caBundle: $ {CA_BUNDLE}
caBundle: LS0tLS1CRUdJTiBDRVJUSUZJ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3NE1BTHl0Mk56VXJpUjJKcmhoS2p4TWJMN2pMZnRJaGZyRGJ1NnJXb2FUNWZMUUFMSEgKa3kveXNaZlJYcVJ1MXJTdldva1VUY201cGIwWVljRE84aWs4Y041VkJmWENRYjYvUkhVUjI2OUNpdllYU0tHLwpTdjdCTkpmckV0U3U0V01ya01nVmo0NmZvQUpiMGFKdFhzLyt0bzBjWDlaSG5hMXR2OFlXZ2JScWJPRnJhSk44ClFPTHNtcW55Yk1Tcjdnd0o0Q3B6c3VMNWh4TEtZZnozQWJlek5scXFiNzZkbE1mYlA4bzJRL1lITXptS2JkWmcKS2JzeTBzSmFBZEtURkYrRzluYlpBbEI3V3RkazNLOTFGNGRxUUpOUzZyZVBKVE9QSWZaajFmS3N2eXRmd3YzcwpPYjNyY2tPeTE2WXFVZEtsNVB5SzI0RjVZMXRhQlp3T0MzODdxcWpaRS9JNGhHdFhFZVp5aTUwWmpWS1VkZkhCCnNYc1VzcmNtQ3h2cXViRDF0K1R2UmVqNHBpMkZLem1MWFFRTXVJNTlJWHRlN3dSYUxDVENNWVdvcGZHeXZBdDQKM1hHSm4rKzZ4UVV4V01qcUhMbUdyQWFNU1ZhWnYvL3dzVzBFanJsdFVPcXI5NkJkNXllOFFXRmdlV21EUlVvUgpWMlZZZWhRelVOT1NaN0VZeU5NckxlWXJXcXBSeXgxaDRNV2kzem5XNVBqNEZjTGhaTWd0blE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==

Expand Down
Binary file added deploy/packages/joylive-injector-1.3.1.tgz
Binary file not shown.
Binary file removed deploy/packages/joylive-injector-1.4.0.tgz
Binary file not shown.

0 comments on commit c725497

Please sign in to comment.