Skip to content

Commit

Permalink
update: apollo chart.
Browse files Browse the repository at this point in the history
  • Loading branch information
dellnoantechnp committed Jul 13, 2024
1 parent 0648c73 commit 531c118
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/apollo/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ maintainers:
url: https://github.com/dellnoantechnp/helm-chart-xxl-job-admin
name: apollo
type: application
version: 0.8.1
version: 0.8.2
dependencies:
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
Expand Down
11 changes: 10 additions & 1 deletion charts/apollo/templates/portal/configmap-portal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: ConfigMap
apiVersion: v1
metadata:
{{- $portalFullName := include "apollo.portal.fullName" . }}
{{- $serviceUrl := include "apollo.configService.serviceUrl" . }}
name: {{ $portalFullName }}
data:
application-github.properties: |
Expand All @@ -19,9 +20,17 @@ data:
{{- range $env, $address := .Values.portal.config.metaServers }}
{{ $env }}.meta = {{ $address }}
{{- end }}
{{- if not .Values.portal.config.metaServers }}
{{ .Values.portal.config.envs }}: {{ include "apollo.configService.serviceUrl" . }}{{ .Values.configService.config.contextPath }}
{{- if contains "," .Values.portal.config.envs }}
{{- range $index, $env := (regexSplit "," .Values.portal.config.envs -1) }}
{{ $env }} = {{ $serviceUrl }}{{ $.Values.configService.config.contextPath }}
{{- end }}
{{- else }}
{{ .Values.portal.config.envs }} = {{ $serviceUrl }}{{ .Values.configService.config.contextPath }}
{{- end }}
{{- end }}
{{- range $fileName, $content := .Values.portal.config.files }}
{{ $fileName | nindent 4 }}: |
{{ $content | nindent 4 }}
Expand Down

0 comments on commit 531c118

Please sign in to comment.