Skip to content

Release 0.5.2 #186

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

Merged
merged 3 commits into from
Apr 7, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
14 changes: 5 additions & 9 deletions charts/gitops-runtime/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
appVersion: 0.1.43
appVersion: 0.1.44
description: A Helm chart for Codefresh gitops runtime
name: gitops-runtime
version: 0.5.1
version: 0.5.2
home: https://github.com/codefresh-io/gitops-runtime-helm
icon: https://avatars1.githubusercontent.com/u/11412079?v=3
keywords:
Expand All @@ -15,13 +15,9 @@ annotations:
artifacthub.io/alternativeName: "codefresh-gitops-runtime"
artifacthub.io/changes: |
- kind: changed
description: "update app-proxy image to 1.2696.0"
description: "update codefresh-gitops-operator chart to 1.0.9 to handle promotions"
- kind: changed
description: "jsonPath to application versions uses format with $ sign for root element"
- kind: fixed
description: "fix default version config"
- kind: fixed
description: "support better concurrency in argocd session manager"
description: "update cap-app-proxy to 1.2727.0 (exopse gitLog endpoint)"
dependencies:
- name: argo-cd
repository: https://codefresh-io.github.io/argo-helm
Expand All @@ -47,6 +43,6 @@ dependencies:
condition: tunnel-client.enabled
- name: codefresh-gitops-operator
repository: oci://quay.io/codefresh/charts
version: 1.0.4
version: 1.0.9
alias: gitops-operator
condition: gitops-operator.enabled
19 changes: 14 additions & 5 deletions charts/gitops-runtime/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Codefresh gitops runtime
![Version: 0.5.1](https://img.shields.io/badge/Version-0.5.1-informational?style=flat-square) ![AppVersion: 0.1.43](https://img.shields.io/badge/AppVersion-0.1.43-informational?style=flat-square)
![Version: 0.5.2](https://img.shields.io/badge/Version-0.5.2-informational?style=flat-square) ![AppVersion: 0.1.44](https://img.shields.io/badge/AppVersion-0.1.44-informational?style=flat-square)

## Prerequisites

Expand Down Expand Up @@ -27,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.5.1 <local_registry>
docker run -v <output_dir>:/output quay.io/codefresh/gitops-runtime-private-registry-utils:0.5.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 @@ -100,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.2696.0"` | |
| app-proxy.image.tag | string | `"1.2727.0"` | |
| 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.2696.0"` | |
| app-proxy.initContainer.image.tag | string | `"1.2727.0"` | |
| 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 @@ -153,7 +153,16 @@ sealed-secrets:
| argo-cd.eventReporter.replicas | int | `3` | Amount of shards to handle applications events |
| argo-cd.eventReporter.version | string | `"v2"` | Switches between old and new reporter version. Possible values: v1, v2. For v2 `argo-cd.eventReporter.enabled=true` is required |
| argo-cd.fullnameOverride | string | `"argo-cd"` | |
| argo-cd.notifications | object | `{}` | |
| argo-cd.notifications.bots.slack | object | `{}` | |
| argo-cd.notifications.enabled | bool | `true` | |
| argo-cd.notifications.notifiers."service.webhook.cf-promotion-app-revision-changed-notifier" | string | `"url: http://gitops-operator:8082/app-revision-changed\nheaders:\n- name: Content-Type\n value: application/json\n"` | |
| argo-cd.notifications.subscriptions[0].recipients[0] | string | `"cf-promotion-app-revision-changed-notifier"` | |
| argo-cd.notifications.subscriptions[0].triggers[0] | string | `"cf-promotion-on-deployed-trigger"` | |
| argo-cd.notifications.subscriptions[1].recipients[0] | string | `"cf-promotion-app-revision-changed-notifier"` | |
| argo-cd.notifications.subscriptions[1].triggers[0] | string | `"cf-promotion-on-out-of-sync-trigger"` | |
| argo-cd.notifications.templates."template.cf-promotion-app-revision-changed-template" | string | `"webhook:\n cf-promotion-app-revision-changed-notifier:\n method: POST\n body: |\n {\n \"APP_NAMESPACE\": {{ .app.metadata.namespace | quote }},\n \"APP_NAME\": {{ .app.metadata.name | quote }},\n \"REPO_URL\": {{ call .repo.RepoURLToHTTPS .app.spec.source.repoURL | quote }},\n \"BRANCH\": {{ .app.spec.source.targetRevision | quote }},\n \"PATH\": {{ .app.spec.source.path | quote }},\n \"PREV_COMMIT_SHA\": {{ (index .app.status.history (sub (len .app.status.history) 2)).revision | quote }},\n \"CURRENT_COMMIT_SHA\": {{ .app.status.operationState.syncResult.revision | quote }}\n }\n"` | |
| argo-cd.notifications.triggers."trigger.cf-promotion-on-deployed-trigger" | string | `"- description: Application is synced and healthy. Triggered once per commit.\n when: get(app.spec.syncPolicy, \"automated\") != nil && app.status.sync.status == \"Synced\" && app.status.health.status == \"Healthy\" && app.status.operationState.syncResult.revision != nil\n oncePer: app.status.operationState.syncResult.revision\n send:\n - cf-promotion-app-revision-changed-template\n"` | |
| argo-cd.notifications.triggers."trigger.cf-promotion-on-out-of-sync-trigger" | string | `"- description: Application is out of sync (when autoHeal is off). Triggered once per commit.\n when: get(app.spec.syncPolicy, \"automated\") == nil && app.status.sync.status == \"OutOfSync\" && app.status.operationState.syncResult.revision != nil\n oncePer: app.status.operationState.syncResult.revision\n send:\n - cf-promotion-app-revision-changed-template\n"` | |
| argo-events.crds.install | bool | `false` | |
| argo-events.fullnameOverride | string | `"argo-events"` | |
| argo-rollouts.controller.replicas | int | `1` | |
Expand Down
62 changes: 57 additions & 5 deletions charts/gitops-runtime/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ global:
# ...
# -----END CERTIFICATE-----


# -- Runtime level settings
runtime:
# -- Runtime name. Must be unique per platform account.
Expand Down Expand Up @@ -104,6 +103,7 @@ global:
cpu: 200m
memory: 1Gi
ephemeral-storage: 2Gi

# -------------------------------------------------------------------------------------------------------------------------
# Installer
# -------------------------------------------------------------------------------------------------------------------------
Expand All @@ -115,6 +115,7 @@ installer:
repository: quay.io/codefresh/gitops-runtime-installer
tag: ""
pullPolicy: IfNotPresent

# -----------------------------------------------------------------------------------------------------------------------
# Sealed secrets
# -----------------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -162,7 +163,59 @@ argo-cd:
enabled: true
# -- Extract application version based on ApplicationConfiguration CRD
useApplicationConfiguration: true
notifications: {}
notifications:
enabled: true

bots:
slack: {}

notifiers:
service.webhook.cf-promotion-app-revision-changed-notifier: |
url: http://gitops-operator:8082/app-revision-changed
headers:
- name: Content-Type
value: application/json

subscriptions:
- triggers:
- cf-promotion-on-deployed-trigger
recipients:
- cf-promotion-app-revision-changed-notifier
- triggers:
- cf-promotion-on-out-of-sync-trigger
recipients:
- cf-promotion-app-revision-changed-notifier

templates:
template.cf-promotion-app-revision-changed-template: |
webhook:
cf-promotion-app-revision-changed-notifier:
method: POST
body: |
{
"APP_NAMESPACE": {{ .app.metadata.namespace | quote }},
"APP_NAME": {{ .app.metadata.name | quote }},
"REPO_URL": {{ call .repo.RepoURLToHTTPS .app.spec.source.repoURL | quote }},
"BRANCH": {{ .app.spec.source.targetRevision | quote }},
"PATH": {{ .app.spec.source.path | quote }},
"PREV_COMMIT_SHA": {{ (index .app.status.history (sub (len .app.status.history) 2)).revision | quote }},
"CURRENT_COMMIT_SHA": {{ .app.status.operationState.syncResult.revision | quote }}
}

triggers:
trigger.cf-promotion-on-deployed-trigger: |
- description: Application is synced and healthy. Triggered once per commit.
when: get(app.spec.syncPolicy, "automated") != nil && app.status.sync.status == "Synced" && app.status.health.status == "Healthy" && app.status.operationState.syncResult.revision != nil
oncePer: app.status.operationState.syncResult.revision
send:
- cf-promotion-app-revision-changed-template
trigger.cf-promotion-on-out-of-sync-trigger: |
- description: Application is out of sync (when autoHeal is off). Triggered once per commit.
when: get(app.spec.syncPolicy, "automated") == nil && app.status.sync.status == "OutOfSync" && app.status.operationState.syncResult.revision != nil
oncePer: app.status.operationState.syncResult.revision
send:
- cf-promotion-app-revision-changed-template


#-----------------------------------------------------------------------------------------------------------------------
# Argo Events
Expand Down Expand Up @@ -430,15 +483,15 @@ app-proxy:
tag: 1.1.10-main
image:
repository: quay.io/codefresh/cap-app-proxy
tag: 1.2696.0
tag: 1.2727.0
pullPolicy: IfNotPresent
# -- Extra volume mounts for main container
extraVolumeMounts: []

initContainer:
image:
repository: quay.io/codefresh/cap-app-proxy-init
tag: 1.2696.0
tag: 1.2727.0
pullPolicy: IfNotPresent
command:
- ./init.sh
Expand Down Expand Up @@ -534,7 +587,6 @@ app-proxy:
affinity: {}
# -- extra volumes
extraVolumes: []
########################################################################################################################

#-----------------------------------------------------------------------------------------------------------------------
# gitops-operator
Expand Down