Skip to content

Commit 7f63c40

Browse files
Merge pull request #95 from codefresh-io/release-0.3.2
Release 0.3.2
2 parents 883bbde + ed7fae5 commit 7f63c40

File tree

10 files changed

+526
-24
lines changed

10 files changed

+526
-24
lines changed

charts/gitops-runtime/Chart.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: 0.1.36
33
description: A Helm chart for Codefresh gitops runtime
44
name: gitops-runtime
5-
version: 0.3.1
5+
version: 0.3.2
66
home: https://github.com/codefresh-io/gitops-runtime-helm
77
icon: https://avatars1.githubusercontent.com/u/11412079?v=3
88
keywords:
@@ -14,17 +14,27 @@ maintainers:
1414
annotations:
1515
artifacthub.io/alternativeName: "codefresh-gitops-runtime"
1616
artifacthub.io/changes: |
17+
- kind: changed
18+
description: Push chart to OCI registry
19+
- kind: changed
20+
description: Update codefresh-tunnel-client
1721
- kind: changed
1822
description: Update app-proxy
23+
- kind: changed
24+
description: Update ArgoCD
1925
- kind: changed
2026
description: Update codefresh-gitops-operator.
2127
links:
2228
- name: GitHub Release
23-
url: https://github.com/codefresh-io/codefresh-gitops-operator/releases/tag/v0.1.0-alpha.4
29+
url: https://github.com/codefresh-io/codefresh-gitops-operator/releases/tag/v0.1.0-alpha.5
30+
- kind: added
31+
description: Added possibility to enable logging on event reporter sensors
32+
- kind: added
33+
description: Added retries on event reporters sensors
2434
dependencies:
2535
- name: argo-cd
2636
repository: https://codefresh-io.github.io/argo-helm
27-
version: 5.46.2-3-cap-CR-not-setup-kustomize-ns
37+
version: 5.46.2-4-cap-CR-20837
2838
- name: argo-events
2939
repository: https://codefresh-io.github.io/argo-helm
3040
version: 2.0.9-1-cap-CR-19893
@@ -40,7 +50,7 @@ dependencies:
4050
repository: https://bitnami-labs.github.io/sealed-secrets/
4151
version: 2.7.3
4252
- name: codefresh-tunnel-client
43-
repository: https://chartmuseum.codefresh.io/codefresh-tunnel-client
44-
version: "0.1.12"
53+
repository: oci://quay.io/codefresh/charts
54+
version: 0.1.15
4555
alias: tunnel-client
4656
condition: tunnel-client.enabled

charts/gitops-runtime/README.md

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
## Codefresh gitops runtime
2-
![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![AppVersion: 0.1.36](https://img.shields.io/badge/AppVersion-0.1.36-informational?style=flat-square)
2+
![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![AppVersion: 0.1.36](https://img.shields.io/badge/AppVersion-0.1.36-informational?style=flat-square)
3+
4+
## Prerequisites
5+
6+
- Kubernetes **1.23+**
7+
- Helm **3.8.0+**
8+
9+
## Get Chart Info
10+
11+
```console
12+
helm show all oci://quay.io/codefresh/gitops-runtime
13+
```
14+
See [Use OCI-based registries](https://helm.sh/docs/topics/registries/)
315

416
## Codefresh official documentation:
517
Prior to running the installation please see the official documentation at: https://codefresh.io/docs/docs/installation/gitops/hybrid-gitops-helm-installation/
@@ -15,7 +27,7 @@ We have created a helper utility to resolve this issue:
1527
The utility is packaged in a container image. Below are instructions on executing the utility using Docker:
1628

1729
```
18-
docker run -v <output_dir>:/output quay.io/codefresh/gitops-runtime-private-registry-utils:0.3.1 <local_registry>
30+
docker run -v <output_dir>:/output quay.io/codefresh/gitops-runtime-private-registry-utils:0.3.2 <local_registry>
1931
```
2032
`output_dir` - is a local directory where the utility will output files. <br>
2133
`local_registry` - is your local registry where you want to mirror the images to
@@ -88,14 +100,14 @@ sealed-secrets:
88100
| app-proxy.image-enrichment.serviceAccount.name | string | `"codefresh-image-enrichment-sa"` | Name of the service account to create or the name of the existing one to use |
89101
| app-proxy.image.pullPolicy | string | `"IfNotPresent"` | |
90102
| app-proxy.image.repository | string | `"quay.io/codefresh/cap-app-proxy"` | |
91-
| app-proxy.image.tag | string | `"1.2495.1"` | |
103+
| app-proxy.image.tag | string | `"1.2508.3"` | |
92104
| app-proxy.imagePullSecrets | list | `[]` | |
93105
| app-proxy.initContainer.command[0] | string | `"./init.sh"` | |
94106
| app-proxy.initContainer.env | object | `{}` | |
95107
| app-proxy.initContainer.extraVolumeMounts | list | `[]` | Extra volume mounts for init container |
96108
| app-proxy.initContainer.image.pullPolicy | string | `"IfNotPresent"` | |
97109
| app-proxy.initContainer.image.repository | string | `"quay.io/codefresh/cap-app-proxy-init"` | |
98-
| app-proxy.initContainer.image.tag | string | `"1.2495.1"` | |
110+
| app-proxy.initContainer.image.tag | string | `"1.2508.3"` | |
99111
| app-proxy.initContainer.resources.limits.cpu | string | `"1"` | |
100112
| app-proxy.initContainer.resources.limits.memory | string | `"512Mi"` | |
101113
| app-proxy.initContainer.resources.requests.cpu | string | `"0.2"` | |
@@ -155,9 +167,16 @@ sealed-secrets:
155167
| event-reporters.events.eventSource.resources | object | `{}` | |
156168
| event-reporters.events.eventSource.tolerations | list | `[]` | |
157169
| event-reporters.events.sensor.affinity | object | `{}` | |
170+
| event-reporters.events.sensor.env | object | `{}` | Environment variables for sensor pods - add DEBUG_LOG: "true" to add debug level logs |
171+
| event-reporters.events.sensor.logging | object | `{"enabled":false,"intervalSeconds":0}` | Set to true to enable logging. Set intervalSeconds to add logging interval to moderate log flow. |
158172
| event-reporters.events.sensor.nodeSelector | object | `{}` | |
159173
| event-reporters.events.sensor.replicas | int | `1` | |
160174
| event-reporters.events.sensor.resources | object | `{}` | |
175+
| event-reporters.events.sensor.retryStrategy | object | `{"duration":0,"factor":1,"jitter":1,"steps":3}` | Retry strategy for events sent to Codefresh |
176+
| event-reporters.events.sensor.retryStrategy.duration | int | `0` | The initial duration, use strings like "2s", "1m" |
177+
| event-reporters.events.sensor.retryStrategy.factor | float | `1` | Duration is multiplied by factor each retry, if factor is not zero and steps limit has not been reached. Should not be negative |
178+
| event-reporters.events.sensor.retryStrategy.jitter | int | `1` | The sleep between each retry is the duration plus an additional amount chosen uniformly at random from the interval between zero and `jitter * duration`. |
179+
| event-reporters.events.sensor.retryStrategy.steps | int | `3` | Number of retries |
161180
| event-reporters.events.sensor.tolerations | list | `[]` | |
162181
| event-reporters.events.serviceAccount.create | bool | `true` | |
163182
| event-reporters.rollout.eventSource.affinity | object | `{}` | |
@@ -166,9 +185,16 @@ sealed-secrets:
166185
| event-reporters.rollout.eventSource.resources | object | `{}` | |
167186
| event-reporters.rollout.eventSource.tolerations | list | `[]` | |
168187
| event-reporters.rollout.sensor.affinity | object | `{}` | |
188+
| event-reporters.rollout.sensor.env | object | `{}` | Environment variables for sensor pods - add DEBUG_LOG: "true" to add debug level logs |
189+
| event-reporters.rollout.sensor.logging | object | `{"enabled":false,"intervalSeconds":0}` | Set to true to enable logging. Set intervalSeconds to add logging interval to moderate log flow. |
169190
| event-reporters.rollout.sensor.nodeSelector | object | `{}` | |
170191
| event-reporters.rollout.sensor.replicas | int | `1` | |
171192
| event-reporters.rollout.sensor.resources | object | `{}` | |
193+
| event-reporters.rollout.sensor.retryStrategy | object | `{"duration":0,"factor":1,"jitter":1,"steps":3}` | Retry strategy for events sent to Codefresh |
194+
| event-reporters.rollout.sensor.retryStrategy.duration | int | `0` | The initial duration, use strings like "2s", "1m" |
195+
| event-reporters.rollout.sensor.retryStrategy.factor | float | `1` | Duration is multiplied by factor each retry, if factor is not zero and steps limit has not been reached. Should not be negative |
196+
| event-reporters.rollout.sensor.retryStrategy.jitter | int | `1` | The sleep between each retry is the duration plus an additional amount chosen uniformly at random from the interval between zero and `jitter * duration`. |
197+
| event-reporters.rollout.sensor.retryStrategy.steps | int | `3` | Number of retries |
172198
| event-reporters.rollout.sensor.tolerations | list | `[]` | |
173199
| event-reporters.rollout.serviceAccount.create | bool | `true` | |
174200
| event-reporters.workflow.eventSource.affinity | object | `{}` | |
@@ -177,9 +203,16 @@ sealed-secrets:
177203
| event-reporters.workflow.eventSource.resources | object | `{}` | |
178204
| event-reporters.workflow.eventSource.tolerations | list | `[]` | |
179205
| event-reporters.workflow.sensor.affinity | object | `{}` | |
206+
| event-reporters.workflow.sensor.env | object | `{}` | Environment variables for sensor pods - add DEBUG_LOG: "true" to add debug level logs |
207+
| event-reporters.workflow.sensor.logging | object | `{"enabled":false,"intervalSeconds":0}` | Set to true to enable logging. Set intervalSeconds to add logging interval to moderate log flow. |
180208
| event-reporters.workflow.sensor.nodeSelector | object | `{}` | |
181209
| event-reporters.workflow.sensor.replicas | int | `1` | |
182210
| event-reporters.workflow.sensor.resources | object | `{}` | |
211+
| event-reporters.workflow.sensor.retryStrategy | object | `{"duration":0,"factor":1,"jitter":1,"steps":3}` | Retry strategy for events sent to Codefresh |
212+
| event-reporters.workflow.sensor.retryStrategy.duration | int | `0` | The initial duration, use strings like "2s", "1m" |
213+
| event-reporters.workflow.sensor.retryStrategy.factor | float | `1` | Duration is multiplied by factor each retry, if factor is not zero and steps limit has not been reached. Should not be negative |
214+
| event-reporters.workflow.sensor.retryStrategy.jitter | int | `1` | The sleep between each retry is the duration plus an additional amount chosen uniformly at random from the interval between zero and `jitter * duration`. |
215+
| event-reporters.workflow.sensor.retryStrategy.steps | int | `3` | Number of retries |
183216
| event-reporters.workflow.sensor.tolerations | list | `[]` | |
184217
| event-reporters.workflow.serviceAccount.create | bool | `true` | |
185218
| gitops-operator.affinity | object | `{}` | |
@@ -192,7 +225,7 @@ sealed-secrets:
192225
| gitops-operator.fullnameOverride | string | `""` | |
193226
| gitops-operator.image.pullPolicy | string | `"IfNotPresent"` | |
194227
| gitops-operator.image.repository | string | `"quay.io/codefresh/codefresh-gitops-operator"` | |
195-
| gitops-operator.image.tag | string | `"v0.1.0-alpha.4"` | |
228+
| gitops-operator.image.tag | string | `"v0.1.0-alpha.5"` | |
196229
| gitops-operator.imagePullSecrets | list | `[]` | |
197230
| gitops-operator.kube-rbac-proxy.image.pullPolicy | string | `"IfNotPresent"` | |
198231
| gitops-operator.kube-rbac-proxy.image.repository | string | `"gcr.io/kubebuilder/kube-rbac-proxy"` | |

charts/gitops-runtime/README.md.gotmpl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
## Codefresh gitops runtime
22
{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}
33

4+
## Prerequisites
5+
6+
- Kubernetes **1.23+**
7+
- Helm **3.8.0+**
8+
9+
## Get Chart Info
10+
11+
```console
12+
helm show all oci://quay.io/codefresh/gitops-runtime
13+
```
14+
See [Use OCI-based registries](https://helm.sh/docs/topics/registries/)
15+
416
## Codefresh official documentation:
517
Prior to running the installation please see the official documentation at: https://codefresh.io/docs/docs/installation/gitops/hybrid-gitops-helm-installation/
618

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,22 @@ assumes the name, condition and payload.dependencyName are identical
177177
src:
178178
dataKey: body
179179
dependencyName: {{ .name }}
180+
{{- if .retryStrategy }}
181+
retryStrategy:
182+
{{- .retryStrategy | toYaml | nindent 4 }}
183+
{{- end }}
180184
{{- end -}}
185+
186+
{{/* Logging trigger for the sensor - gets sensor.logging dict */}}
187+
{{- define "event-reporters.log.trigger" -}}
188+
{{- if .enabled }}
189+
- template:
190+
name: log-trigger
191+
{{- if gt (int .intervalSeconds) 0 }}
192+
log:
193+
intervalSeconds: {{ .intervalSeconds }}
194+
{{- else }}
195+
log: {}
196+
{{- end }}
197+
{{- end }}
198+
{{- end }}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ spec:
1515
template:
1616
serviceAccountName: {{ include "event-reporters.events-reporter.serviceAccountName" .}}
1717
container:
18+
{{- include "codefresh-gitops-runtime.components.common_helpers.container-templates.env-vars" .Values.events.sensor.env | nindent 6 }}
1819
resources:
1920
{{- with .Values.events.sensor.resources }}
2021
{{- . | toYaml | nindent 8 }}
@@ -32,5 +33,6 @@ spec:
3233
{{- . | toYaml | nindent 6 }}
3334
{{- end }}
3435
triggers:
35-
{{- include "event-reporters.http.trigger" (dict "name" "events" "Values" .Values "payloadDest" "data") | nindent 4 }}
36+
{{- include "event-reporters.http.trigger" (dict "name" "events" "Values" .Values "payloadDest" "data" "retryStrategy" .Values.events.sensor.retryStrategy) | nindent 4 }}
37+
{{- include "event-reporters.log.trigger" (.Values.events.sensor.logging) | nindent 4 }}
3638
{{- end }}

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,26 @@ spec:
2222
serviceAccountName: {{ include "event-reporters.rollout-reporter.serviceAccountName" .}}
2323
container:
2424
name: ""
25+
{{- include "codefresh-gitops-runtime.components.common_helpers.container-templates.env-vars" .Values.rollout.sensor.env | nindent 6 }}
2526
resources:
26-
{{- with .Values.rollout.eventSource.resources }}
27+
{{- with .Values.rollout.sensor.resources }}
2728
{{- . | toYaml | nindent 8 }}
2829
{{- end }}
2930
tolerations:
30-
{{- with .Values.rollout.eventSource.tolerations }}
31+
{{- with .Values.rollout.sensor.tolerations }}
3132
{{- . | toYaml | nindent 6 }}
3233
{{- end }}
3334
nodeSelector:
34-
{{- with .Values.rollout.eventSource.nodeSelector }}
35+
{{- with .Values.rollout.sensor.nodeSelector }}
3536
{{- . | toYaml | nindent 6 }}
3637
{{- end }}
3738
affinity:
38-
{{- with .Values.rollout.eventSource.affinity }}
39+
{{- with .Values.rollout.sensor.affinity }}
3940
{{- . | toYaml | nindent 6 }}
4041
{{- end }}
4142
triggers:
42-
{{- include "event-reporters.http.trigger" (dict "name" "rollouts" "Values" .Values "payloadDest" "data.object") | nindent 4 }}
43-
{{- include "event-reporters.http.trigger" (dict "name" "replicasets" "Values" .Values "payloadDest" "data.object") | nindent 4 }}
44-
{{- include "event-reporters.http.trigger" (dict "name" "analysisruns" "Values" .Values "payloadDest" "data.object") | nindent 4 }}
43+
{{- include "event-reporters.http.trigger" (dict "name" "rollouts" "Values" .Values "payloadDest" "data.object" "retryStrategy" .Values.rollout.sensor.retryStrategy) | nindent 4 }}
44+
{{- include "event-reporters.http.trigger" (dict "name" "replicasets" "Values" .Values "payloadDest" "data.object" "retryStrategy" .Values.rollout.sensor.retryStrategy) | nindent 4 }}
45+
{{- include "event-reporters.http.trigger" (dict "name" "analysisruns" "Values" .Values "payloadDest" "data.object" "retryStrategy" .Values.rollout.sensor.retryStrategy) | nindent 4 }}
46+
{{- include "event-reporters.log.trigger" (.Values.rollout.sensor.logging) | nindent 4 }}
4547
{{- end }}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ spec:
1616
serviceAccountName: {{ include "event-reporters.workflow-reporter.serviceAccountName" .}}
1717
container:
1818
name: ""
19+
{{- include "codefresh-gitops-runtime.components.common_helpers.container-templates.env-vars" .Values.workflow.sensor.env | nindent 6 }}
1920
resources:
2021
{{- with .Values.workflow.sensor.resources }}
2122
{{- . | toYaml | nindent 8 }}
@@ -33,5 +34,6 @@ spec:
3334
{{- . | toYaml | nindent 6 }}
3435
{{- end }}
3536
triggers:
36-
{{- include "event-reporters.http.trigger" (dict "name" "workflows" "Values" .Values "payloadDest" "data.object") | nindent 4 }}
37+
{{- include "event-reporters.http.trigger" (dict "name" "workflows" "Values" .Values "payloadDest" "data.object" "retryStrategy" .Values.workflow.sensor.retryStrategy) | nindent 4 }}
38+
{{- include "event-reporters.log.trigger" (.Values.workflow.sensor.logging) | nindent 4 }}
3739
{{- end }}

charts/gitops-runtime/templates/tunnel-client.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
{{/*
1+
{{/*
22
Tunnel based (ingressless) runtime support. We use libraries to generate the resources so we can use Helm templating
33
to intruduce the subdomainPrefix to the tunnel.
4-
Since the prefix is comprised of <accoundId>-<runtime name>, we can tempalate it and thus
4+
Since the prefix is comprised of <accoundId>-<runtime name>, we can tempalate it and thus
55
reduce complexity of installation and number or mandatory values to provide for the installation to work.
66
*/}}
77
{{- if and ( not .Values.global.runtime.ingress.enabled) (index .Values "tunnel-client" "enabled") }}

0 commit comments

Comments
 (0)