Skip to content

Commit 90a3bd5

Browse files
authored
Fix-reporter-payload (#49)
* use different `payload.dest` for different sensors * updated chart version to `0.2.8-alpha`
1 parent 4760b2a commit 90a3bd5

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

charts/gitops-runtime/Chart.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: 0.1.29
33
description: A Helm chart for Codefresh gitops runtime
44
name: gitops-runtime
5-
version: 0.2.7-alpha
5+
version: 0.2.8-alpha
66
home: https://github.com/codefresh-io/gitops-runtime-helm
77
icon: https://avatars1.githubusercontent.com/u/11412079?v=3
88
keywords:
@@ -15,10 +15,8 @@ annotations:
1515
artifacthub.io/alternativeName: "codefresh-gitops-runtime"
1616
artifacthub.io/prerelease: "true"
1717
artifacthub.io/changes: |
18-
- kind: changed
19-
description: Add private registry utililies
20-
- kind: changed
21-
description: Installer image for hooks now runs rootless
18+
- kind: fixed
19+
description: rollout-reporter and workflow-reporter trigger values were wrong (resulting in event not reaching the platform)
2220
dependencies:
2321
- name: argo-cd
2422
repository: https://codefresh-io.github.io/argo-helm

charts/gitops-runtime/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Codefresh gitops runtime
2-
![Version: 0.2.7-alpha](https://img.shields.io/badge/Version-0.2.7--alpha-informational?style=flat-square) ![AppVersion: 0.1.29](https://img.shields.io/badge/AppVersion-0.1.29-informational?style=flat-square)
2+
![Version: 0.2.8-alpha](https://img.shields.io/badge/Version-0.2.8--alpha-informational?style=flat-square) ![AppVersion: 0.1.29](https://img.shields.io/badge/AppVersion-0.1.29-informational?style=flat-square)
33

44
## Codefresh official documentation:
55
Prior to running the installation please see the official documentation at: https://codefresh.io/docs/docs/installation/gitops/hybrid-gitops-helm-installation/

charts/gitops-runtime/templates/_components/event-reporters/_helpers.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ assumes the name, condition and payload.dependencyName are identical
173173
key: token
174174
name: codefresh-token
175175
payload:
176-
- dest: data
176+
- dest: {{ .payloadDest }}
177177
src:
178178
dataKey: body
179179
dependencyName: {{ .name }}

charts/gitops-runtime/templates/_components/event-reporters/events-reporter/_sensor.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ spec:
2020
{{- . | toYaml | nindent 8 }}
2121
{{- end }}
2222
triggers:
23-
{{- include "event-reporters.http.trigger" (dict "name" "events" "Values" .Values) | nindent 4 }}
23+
{{- include "event-reporters.http.trigger" (dict "name" "events" "Values" .Values "payloadDest" "data") | nindent 4 }}
2424
{{- end }}

charts/gitops-runtime/templates/_components/event-reporters/rollout-reporter/_sensor.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
{{- . | toYaml | nindent 8 }}
2828
{{- end }}
2929
triggers:
30-
{{- include "event-reporters.http.trigger" (dict "name" "rollouts" "Values" .Values) | nindent 4 }}
31-
{{- include "event-reporters.http.trigger" (dict "name" "replicasets" "Values" .Values) | nindent 4 }}
32-
{{- include "event-reporters.http.trigger" (dict "name" "analysisruns" "Values" .Values) | nindent 4 }}
30+
{{- include "event-reporters.http.trigger" (dict "name" "rollouts" "Values" .Values "payloadDest" "data.object") | nindent 4 }}
31+
{{- include "event-reporters.http.trigger" (dict "name" "replicasets" "Values" .Values "payloadDest" "data.object") | nindent 4 }}
32+
{{- include "event-reporters.http.trigger" (dict "name" "analysisruns" "Values" .Values "payloadDest" "data.object") | nindent 4 }}
3333
{{- end }}

charts/gitops-runtime/templates/_components/event-reporters/workflow-reporter/_sensor.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ spec:
2121
{{- . | toYaml | nindent 8 }}
2222
{{- end }}
2323
triggers:
24-
{{- include "event-reporters.http.trigger" (dict "name" "workflows" "Values" .Values) | nindent 4 }}
24+
{{- include "event-reporters.http.trigger" (dict "name" "workflows" "Values" .Values "payloadDest" "data.object") | nindent 4 }}
2525
{{- end }}

0 commit comments

Comments
 (0)