Skip to content

Commit

Permalink
Merge pull request #95 from codefresh-io/release-0.3.2
Browse files Browse the repository at this point in the history
Release 0.3.2
  • Loading branch information
danielm-codefresh authored Nov 3, 2023
2 parents 883bbde + ed7fae5 commit 7f63c40
Show file tree
Hide file tree
Showing 10 changed files with 526 additions and 24 deletions.
20 changes: 15 additions & 5 deletions charts/gitops-runtime/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 0.1.36
description: A Helm chart for Codefresh gitops runtime
name: gitops-runtime
version: 0.3.1
version: 0.3.2
home: https://github.com/codefresh-io/gitops-runtime-helm
icon: https://avatars1.githubusercontent.com/u/11412079?v=3
keywords:
Expand All @@ -14,17 +14,27 @@ maintainers:
annotations:
artifacthub.io/alternativeName: "codefresh-gitops-runtime"
artifacthub.io/changes: |
- kind: changed
description: Push chart to OCI registry
- kind: changed
description: Update codefresh-tunnel-client
- kind: changed
description: Update app-proxy
- kind: changed
description: Update ArgoCD
- kind: changed
description: Update codefresh-gitops-operator.
links:
- name: GitHub Release
url: https://github.com/codefresh-io/codefresh-gitops-operator/releases/tag/v0.1.0-alpha.4
url: https://github.com/codefresh-io/codefresh-gitops-operator/releases/tag/v0.1.0-alpha.5
- kind: added
description: Added possibility to enable logging on event reporter sensors
- kind: added
description: Added retries on event reporters sensors
dependencies:
- name: argo-cd
repository: https://codefresh-io.github.io/argo-helm
version: 5.46.2-3-cap-CR-not-setup-kustomize-ns
version: 5.46.2-4-cap-CR-20837
- name: argo-events
repository: https://codefresh-io.github.io/argo-helm
version: 2.0.9-1-cap-CR-19893
Expand All @@ -40,7 +50,7 @@ dependencies:
repository: https://bitnami-labs.github.io/sealed-secrets/
version: 2.7.3
- name: codefresh-tunnel-client
repository: https://chartmuseum.codefresh.io/codefresh-tunnel-client
version: "0.1.12"
repository: oci://quay.io/codefresh/charts
version: 0.1.15
alias: tunnel-client
condition: tunnel-client.enabled
43 changes: 38 additions & 5 deletions charts/gitops-runtime/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
## Codefresh gitops runtime
![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)
![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)

## Prerequisites

- Kubernetes **1.23+**
- Helm **3.8.0+**

## Get Chart Info

```console
helm show all oci://quay.io/codefresh/gitops-runtime
```
See [Use OCI-based registries](https://helm.sh/docs/topics/registries/)

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

```
docker run -v <output_dir>:/output quay.io/codefresh/gitops-runtime-private-registry-utils:0.3.1 <local_registry>
docker run -v <output_dir>:/output quay.io/codefresh/gitops-runtime-private-registry-utils:0.3.2 <local_registry>
```
`output_dir` - is a local directory where the utility will output files. <br>
`local_registry` - is your local registry where you want to mirror the images to
Expand Down Expand Up @@ -88,14 +100,14 @@ sealed-secrets:
| 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 |
| app-proxy.image.pullPolicy | string | `"IfNotPresent"` | |
| app-proxy.image.repository | string | `"quay.io/codefresh/cap-app-proxy"` | |
| app-proxy.image.tag | string | `"1.2495.1"` | |
| app-proxy.image.tag | string | `"1.2508.3"` | |
| app-proxy.imagePullSecrets | list | `[]` | |
| app-proxy.initContainer.command[0] | string | `"./init.sh"` | |
| app-proxy.initContainer.env | object | `{}` | |
| app-proxy.initContainer.extraVolumeMounts | list | `[]` | Extra volume mounts for init container |
| app-proxy.initContainer.image.pullPolicy | string | `"IfNotPresent"` | |
| app-proxy.initContainer.image.repository | string | `"quay.io/codefresh/cap-app-proxy-init"` | |
| app-proxy.initContainer.image.tag | string | `"1.2495.1"` | |
| app-proxy.initContainer.image.tag | string | `"1.2508.3"` | |
| app-proxy.initContainer.resources.limits.cpu | string | `"1"` | |
| app-proxy.initContainer.resources.limits.memory | string | `"512Mi"` | |
| app-proxy.initContainer.resources.requests.cpu | string | `"0.2"` | |
Expand Down Expand Up @@ -155,9 +167,16 @@ sealed-secrets:
| event-reporters.events.eventSource.resources | object | `{}` | |
| event-reporters.events.eventSource.tolerations | list | `[]` | |
| event-reporters.events.sensor.affinity | object | `{}` | |
| event-reporters.events.sensor.env | object | `{}` | Environment variables for sensor pods - add DEBUG_LOG: "true" to add debug level logs |
| 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. |
| event-reporters.events.sensor.nodeSelector | object | `{}` | |
| event-reporters.events.sensor.replicas | int | `1` | |
| event-reporters.events.sensor.resources | object | `{}` | |
| event-reporters.events.sensor.retryStrategy | object | `{"duration":0,"factor":1,"jitter":1,"steps":3}` | Retry strategy for events sent to Codefresh |
| event-reporters.events.sensor.retryStrategy.duration | int | `0` | The initial duration, use strings like "2s", "1m" |
| 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 |
| 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`. |
| event-reporters.events.sensor.retryStrategy.steps | int | `3` | Number of retries |
| event-reporters.events.sensor.tolerations | list | `[]` | |
| event-reporters.events.serviceAccount.create | bool | `true` | |
| event-reporters.rollout.eventSource.affinity | object | `{}` | |
Expand All @@ -166,9 +185,16 @@ sealed-secrets:
| event-reporters.rollout.eventSource.resources | object | `{}` | |
| event-reporters.rollout.eventSource.tolerations | list | `[]` | |
| event-reporters.rollout.sensor.affinity | object | `{}` | |
| event-reporters.rollout.sensor.env | object | `{}` | Environment variables for sensor pods - add DEBUG_LOG: "true" to add debug level logs |
| 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. |
| event-reporters.rollout.sensor.nodeSelector | object | `{}` | |
| event-reporters.rollout.sensor.replicas | int | `1` | |
| event-reporters.rollout.sensor.resources | object | `{}` | |
| event-reporters.rollout.sensor.retryStrategy | object | `{"duration":0,"factor":1,"jitter":1,"steps":3}` | Retry strategy for events sent to Codefresh |
| event-reporters.rollout.sensor.retryStrategy.duration | int | `0` | The initial duration, use strings like "2s", "1m" |
| 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 |
| 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`. |
| event-reporters.rollout.sensor.retryStrategy.steps | int | `3` | Number of retries |
| event-reporters.rollout.sensor.tolerations | list | `[]` | |
| event-reporters.rollout.serviceAccount.create | bool | `true` | |
| event-reporters.workflow.eventSource.affinity | object | `{}` | |
Expand All @@ -177,9 +203,16 @@ sealed-secrets:
| event-reporters.workflow.eventSource.resources | object | `{}` | |
| event-reporters.workflow.eventSource.tolerations | list | `[]` | |
| event-reporters.workflow.sensor.affinity | object | `{}` | |
| event-reporters.workflow.sensor.env | object | `{}` | Environment variables for sensor pods - add DEBUG_LOG: "true" to add debug level logs |
| 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. |
| event-reporters.workflow.sensor.nodeSelector | object | `{}` | |
| event-reporters.workflow.sensor.replicas | int | `1` | |
| event-reporters.workflow.sensor.resources | object | `{}` | |
| event-reporters.workflow.sensor.retryStrategy | object | `{"duration":0,"factor":1,"jitter":1,"steps":3}` | Retry strategy for events sent to Codefresh |
| event-reporters.workflow.sensor.retryStrategy.duration | int | `0` | The initial duration, use strings like "2s", "1m" |
| 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 |
| 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`. |
| event-reporters.workflow.sensor.retryStrategy.steps | int | `3` | Number of retries |
| event-reporters.workflow.sensor.tolerations | list | `[]` | |
| event-reporters.workflow.serviceAccount.create | bool | `true` | |
| gitops-operator.affinity | object | `{}` | |
Expand All @@ -192,7 +225,7 @@ sealed-secrets:
| gitops-operator.fullnameOverride | string | `""` | |
| gitops-operator.image.pullPolicy | string | `"IfNotPresent"` | |
| gitops-operator.image.repository | string | `"quay.io/codefresh/codefresh-gitops-operator"` | |
| gitops-operator.image.tag | string | `"v0.1.0-alpha.4"` | |
| gitops-operator.image.tag | string | `"v0.1.0-alpha.5"` | |
| gitops-operator.imagePullSecrets | list | `[]` | |
| gitops-operator.kube-rbac-proxy.image.pullPolicy | string | `"IfNotPresent"` | |
| gitops-operator.kube-rbac-proxy.image.repository | string | `"gcr.io/kubebuilder/kube-rbac-proxy"` | |
Expand Down
12 changes: 12 additions & 0 deletions charts/gitops-runtime/README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
## Codefresh gitops runtime
{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}

## Prerequisites

- Kubernetes **1.23+**
- Helm **3.8.0+**

## Get Chart Info

```console
helm show all oci://quay.io/codefresh/gitops-runtime
```
See [Use OCI-based registries](https://helm.sh/docs/topics/registries/)

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,22 @@ assumes the name, condition and payload.dependencyName are identical
src:
dataKey: body
dependencyName: {{ .name }}
{{- if .retryStrategy }}
retryStrategy:
{{- .retryStrategy | toYaml | nindent 4 }}
{{- end }}
{{- end -}}

{{/* Logging trigger for the sensor - gets sensor.logging dict */}}
{{- define "event-reporters.log.trigger" -}}
{{- if .enabled }}
- template:
name: log-trigger
{{- if gt (int .intervalSeconds) 0 }}
log:
intervalSeconds: {{ .intervalSeconds }}
{{- else }}
log: {}
{{- end }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
template:
serviceAccountName: {{ include "event-reporters.events-reporter.serviceAccountName" .}}
container:
{{- include "codefresh-gitops-runtime.components.common_helpers.container-templates.env-vars" .Values.events.sensor.env | nindent 6 }}
resources:
{{- with .Values.events.sensor.resources }}
{{- . | toYaml | nindent 8 }}
Expand All @@ -32,5 +33,6 @@ spec:
{{- . | toYaml | nindent 6 }}
{{- end }}
triggers:
{{- include "event-reporters.http.trigger" (dict "name" "events" "Values" .Values "payloadDest" "data") | nindent 4 }}
{{- include "event-reporters.http.trigger" (dict "name" "events" "Values" .Values "payloadDest" "data" "retryStrategy" .Values.events.sensor.retryStrategy) | nindent 4 }}
{{- include "event-reporters.log.trigger" (.Values.events.sensor.logging) | nindent 4 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,26 @@ spec:
serviceAccountName: {{ include "event-reporters.rollout-reporter.serviceAccountName" .}}
container:
name: ""
{{- include "codefresh-gitops-runtime.components.common_helpers.container-templates.env-vars" .Values.rollout.sensor.env | nindent 6 }}
resources:
{{- with .Values.rollout.eventSource.resources }}
{{- with .Values.rollout.sensor.resources }}
{{- . | toYaml | nindent 8 }}
{{- end }}
tolerations:
{{- with .Values.rollout.eventSource.tolerations }}
{{- with .Values.rollout.sensor.tolerations }}
{{- . | toYaml | nindent 6 }}
{{- end }}
nodeSelector:
{{- with .Values.rollout.eventSource.nodeSelector }}
{{- with .Values.rollout.sensor.nodeSelector }}
{{- . | toYaml | nindent 6 }}
{{- end }}
affinity:
{{- with .Values.rollout.eventSource.affinity }}
{{- with .Values.rollout.sensor.affinity }}
{{- . | toYaml | nindent 6 }}
{{- end }}
triggers:
{{- include "event-reporters.http.trigger" (dict "name" "rollouts" "Values" .Values "payloadDest" "data.object") | nindent 4 }}
{{- include "event-reporters.http.trigger" (dict "name" "replicasets" "Values" .Values "payloadDest" "data.object") | nindent 4 }}
{{- include "event-reporters.http.trigger" (dict "name" "analysisruns" "Values" .Values "payloadDest" "data.object") | nindent 4 }}
{{- include "event-reporters.http.trigger" (dict "name" "rollouts" "Values" .Values "payloadDest" "data.object" "retryStrategy" .Values.rollout.sensor.retryStrategy) | nindent 4 }}
{{- include "event-reporters.http.trigger" (dict "name" "replicasets" "Values" .Values "payloadDest" "data.object" "retryStrategy" .Values.rollout.sensor.retryStrategy) | nindent 4 }}
{{- include "event-reporters.http.trigger" (dict "name" "analysisruns" "Values" .Values "payloadDest" "data.object" "retryStrategy" .Values.rollout.sensor.retryStrategy) | nindent 4 }}
{{- include "event-reporters.log.trigger" (.Values.rollout.sensor.logging) | nindent 4 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
serviceAccountName: {{ include "event-reporters.workflow-reporter.serviceAccountName" .}}
container:
name: ""
{{- include "codefresh-gitops-runtime.components.common_helpers.container-templates.env-vars" .Values.workflow.sensor.env | nindent 6 }}
resources:
{{- with .Values.workflow.sensor.resources }}
{{- . | toYaml | nindent 8 }}
Expand All @@ -33,5 +34,6 @@ spec:
{{- . | toYaml | nindent 6 }}
{{- end }}
triggers:
{{- include "event-reporters.http.trigger" (dict "name" "workflows" "Values" .Values "payloadDest" "data.object") | nindent 4 }}
{{- include "event-reporters.http.trigger" (dict "name" "workflows" "Values" .Values "payloadDest" "data.object" "retryStrategy" .Values.workflow.sensor.retryStrategy) | nindent 4 }}
{{- include "event-reporters.log.trigger" (.Values.workflow.sensor.logging) | nindent 4 }}
{{- end }}
4 changes: 2 additions & 2 deletions charts/gitops-runtime/templates/tunnel-client.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{/*
{{/*
Tunnel based (ingressless) runtime support. We use libraries to generate the resources so we can use Helm templating
to intruduce the subdomainPrefix to the tunnel.
Since the prefix is comprised of <accoundId>-<runtime name>, we can tempalate it and thus
Since the prefix is comprised of <accoundId>-<runtime name>, we can tempalate it and thus
reduce complexity of installation and number or mandatory values to provide for the installation to work.
*/}}
{{- if and ( not .Values.global.runtime.ingress.enabled) (index .Values "tunnel-client" "enabled") }}
Expand Down
Loading

0 comments on commit 7f63c40

Please sign in to comment.