Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: event-reporter config for sources-server #114

Merged
merged 5 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions charts/argo-cd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,8 @@ NAME: my-release
| eventReporter.serviceAccount.create | bool | `true` | Create a service account for the event reporter |
| eventReporter.serviceAccount.labels | object | `{}` | Labels applied to created service account |
| eventReporter.serviceAccount.name | string | `"event-reporter"` | Service account name |
| eventReporter.sourcesServer.baseURL | string | `"http://sources-server"` | base URL of sources-server |
| eventReporter.sourcesServer.enabled | bool | `false` | Use sources-server logic instead of repo-server |
| eventReporter.statefulsetAnnotations | object | `{}` | Annotations for the event reporter StatefulSet |
| eventReporter.terminationGracePeriodSeconds | int | `30` | terminationGracePeriodSeconds for container lifecycle hook |
| eventReporter.tolerations | list | `[]` (defaults to global.tolerations) | [Tolerations] for use with node taints |
Expand Down
4 changes: 4 additions & 0 deletions charts/argo-cd/templates/event-reporter/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ spec:
{{- with (concat .Values.global.env .Values.eventReporter.env) }}
{{- toYaml . | nindent 10 }}
{{- end }}
- name: SOURCES_SERVER_ENABLED
value: {{ .Values.eventReporter.sourcesServer.enabled | quote }}
- name: SOURCES_SERVER_BASE_URL
value: {{ .Values.eventReporter.sourcesServer.baseURL | quote }}
- name: EVENT_REPORTER_APPLICATION_SERVER
value: {{ include "argo-cd.eventReporter.argocd-server-adress" . }}
- name: EVENT_REPORTER_REPLICAS
Expand Down
7 changes: 7 additions & 0 deletions charts/argo-cd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3843,6 +3843,13 @@ eventReporter:
# topologyKey: topology.kubernetes.io/zone
# whenUnsatisfiable: DoNotSchedule

# Configuration of sources-server using
sourcesServer:
# -- Use sources-server logic instead of repo-server
enabled: false
# -- base URL of sources-server
baseURL: "http://sources-server"

serviceAccount:
# -- Create a service account for the event reporter
create: true
Expand Down
Loading