Skip to content

Commit de79650

Browse files
authored
feat: Plugin server supports k8s deployment and configures the default download URL of the plugin (higress-group#520)
1 parent e453ba0 commit de79650

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

helm/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ spec:
7070
value: "{{ .Values.swagger.enabled }}"
7171
- name: SPRINGDOC_SWAGGER_UI_ENABLED
7272
value: "{{ .Values.swagger.enabled }}"
73+
{{- if and .Values.global.enablePluginServer (not (hasKey .Values.podEnvs "HIGRESS_ADMIN_WASM_PLUGIN_CUSTOM_IMAGE_URL_PATTERN"))}}
74+
- name: HIGRESS_ADMIN_WASM_PLUGIN_CUSTOM_IMAGE_URL_PATTERN
75+
value: "{{ .Values.pluginServer.UrlPattern }}"
76+
{{- end }}
7377
{{- if .Values.podEnvs }}
7478
{{- range $key, $val := .Values.podEnvs }}
7579
- name: {{ $key }}

helm/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,7 @@ o11y:
126126
__placeholder__: true
127127

128128
pvc:
129-
__placeholder__: true
129+
__placeholder__: true
130+
131+
pluginServer:
132+
UrlPattern: "http://higress-plugin-server.higress-system.svc/plugins/${name}/${version}/plugin.wasm"

0 commit comments

Comments
 (0)