set application server and repo server address from values for event reporter
This commit is contained in:
parent
5c23615b65
commit
499010d1bd
2 changed files with 24 additions and 0 deletions
|
@ -262,3 +262,23 @@ Create the name of the Argo CD server service account to use
|
|||
{{ default "default" .Values.eventReporter.serviceAccount.name }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Helper template to set repo server url in event reporter
|
||||
*/}}
|
||||
{{- define "argo-cd.eventReporter.argocd-server-adress" -}}
|
||||
{{- $port := .Values.server.service.servicePortHttps }}
|
||||
{{- if (index .Values.configs.params "server.insecure") }}
|
||||
{{- $port = .Values.server.service.servicePortHttp }}
|
||||
{{- $protocol = "http"}}
|
||||
{{- end }}
|
||||
{{- printf "%s:%v" (include "argo-cd.server.fullname" .) $port }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Helper template to set repo server url in event reporter
|
||||
*/}}
|
||||
{{- define "argo-cd.eventReporter.argocd-repo-server-adress" -}}
|
||||
{{- $port := .Values.repoServer.service.port }}
|
||||
{{- printf "%s:%v" (include "argo-cd.repoServer.fullname" .) $port }}
|
||||
{{- end -}}
|
||||
|
|
|
@ -71,6 +71,10 @@ spec:
|
|||
{{- with (concat .Values.global.env .Values.eventReporter.env) }}
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
- name: EVENT_REPORTER_APPLICATION_SERVER
|
||||
value: {{ include "argo-cd.eventReporter.argocd-server-adress" . }}
|
||||
- name: EVENT_REPORTER_REPO_SERVER
|
||||
value: {{ include "argo-cd.eventReporter.argocd-repo-server-adress" . }}
|
||||
- name: EVENT_REPORTER_REPLICAS
|
||||
value: {{ .Values.eventReporter.replicas | quote }}
|
||||
- name: ARGOCD_APPLICATION_NAMESPACES
|
||||
|
|
Loading…
Reference in a new issue