Skip to content

Commit

Permalink
Merge pull request #92 from codefresh-io/fix/argocd-event-reporter-no…
Browse files Browse the repository at this point in the history
…n-default-url
  • Loading branch information
ilia-medvedev-codefresh authored Aug 10, 2024
2 parents 5c23615 + 7cec851 commit 8e6ffa5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/argo-cd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: v2.11-2024.7.30-a31bf96bb
kubeVersion: ">=1.23.0-0"
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd
version: 6.11.1-5-cap-2.11-2024.7.30-a31bf96bb
version: 6.11.1-6-cap-2.11-2024.7.30-a31bf96bb
home: https://github.com/argoproj/argo-helm
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
sources:
Expand Down
11 changes: 11 additions & 0 deletions charts/argo-cd/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,14 @@ Create the name of the Argo CD server service account to use
{{ default "default" .Values.eventReporter.serviceAccount.name }}
{{- end -}}
{{- end -}}

{{/*
Helper template to set argocd 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 }}
{{- end }}
{{- printf "%s:%v" (include "argo-cd.server.fullname" .) $port }}
{{- end -}}
2 changes: 2 additions & 0 deletions charts/argo-cd/templates/event-reporter/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ 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_REPLICAS
value: {{ .Values.eventReporter.replicas | quote }}
- name: ARGOCD_APPLICATION_NAMESPACES
Expand Down

0 comments on commit 8e6ffa5

Please sign in to comment.