Skip to content

Commit 025e5e5

Browse files
andrii-codefreshpasha-codefreshilia-medvedev-codefreshATGardnerdenis-codefresh
authored
Release 0.4.1 (#125)
* upgrade app-proxy 1.2566.1 * fix version typo * feat: update argocd to 2.9-2023.12.22-f5398c630 * disallow usage of codefresh-token as secret name for runtime token * bumped app-proxy to `1.2585.0` (#127) * add validations on secret names * feat: update argocd to 2.9-2023.12.28-a52e719a5 * make app-proxy init container image the same as main container * update docs * update workflows chart to 0.22.10-2-CR-20826 * feat: update argocd to 2.9-2023.12.28-a52e719a5 * back reporter changes (#135) --------- Co-authored-by: pashakostohrys <[email protected]> Co-authored-by: Ilia Medvedev <[email protected]> Co-authored-by: Noam Gal <[email protected]> Co-authored-by: Denys Melnyk <[email protected]>
1 parent d1d76b1 commit 025e5e5

File tree

5 files changed

+37
-19
lines changed

5 files changed

+37
-19
lines changed

charts/gitops-runtime/Chart.yaml

+10-12
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
2-
appVersion: 0.1.37
2+
appVersion: 0.1.38
33
description: A Helm chart for Codefresh gitops runtime
44
name: gitops-runtime
5-
version: 0.4.0
5+
version: 0.4.1
66
home: https://github.com/codefresh-io/gitops-runtime-helm
77
icon: https://avatars1.githubusercontent.com/u/11412079?v=3
88
keywords:
@@ -15,27 +15,25 @@ annotations:
1515
artifacthub.io/alternativeName: "codefresh-gitops-runtime"
1616
artifacthub.io/changes: |
1717
- kind: changed
18-
description: Update app-proxy
18+
description: Update app version to 0.1.38
1919
- kind: changed
20-
description: Update app version to 0.1.37
21-
- kind: added
22-
description: Support Codefresh hosted runtimes registration flow
23-
- kind: fixed
24-
description: fail templating when runtime.name is not provided and ingress is enabled
20+
description: Update argo-cd to 2.9-2023.12.28-a52e719a5
2521
- kind: changed
26-
description: Update Argo-CD to 5.51.6-1-cap-2.9-2023.12.06-e6258156d (2.9.3)
22+
description: Update app-proxy to 1.2585.0
2723
- kind: changed
28-
description: Update Argo-Rollouts to 2.32.5-2-cap-init (1.6.1)
24+
description: Update argo-workflows to 0.22.10-2-CR-20826
25+
- kind: fixed
26+
description: fail template if secretKeyRef uses reserved secret name codefresh-token
2927
dependencies:
3028
- name: argo-cd
3129
repository: https://codefresh-io.github.io/argo-helm
32-
version: 5.51.6-1-cap-2.9-2023.12.06-e6258156d
30+
version: 5.51.6-3-cap-2.9-2023.12.28-a52e719a5
3331
- name: argo-events
3432
repository: https://codefresh-io.github.io/argo-helm
3533
version: 2.0.9-1-cap-CR-19893
3634
- name: argo-workflows
3735
repository: https://codefresh-io.github.io/argo-helm
38-
version: 0.22.10-1-CR-17426
36+
version: 0.22.10-2-CR-20826
3937
condition: argo-workflows.enabled
4038
- name: argo-rollouts
4139
repository: https://codefresh-io.github.io/argo-helm

charts/gitops-runtime/README.md

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

44
## Prerequisites
55

@@ -27,7 +27,7 @@ We have created a helper utility to resolve this issue:
2727
The utility is packaged in a container image. Below are instructions on executing the utility using Docker:
2828

2929
```
30-
docker run -v <output_dir>:/output quay.io/codefresh/gitops-runtime-private-registry-utils:0.4.0 <local_registry>
30+
docker run -v <output_dir>:/output quay.io/codefresh/gitops-runtime-private-registry-utils:0.4.1 <local_registry>
3131
```
3232
`output_dir` - is a local directory where the utility will output files. <br>
3333
`local_registry` - is your local registry where you want to mirror the images to
@@ -100,14 +100,14 @@ sealed-secrets:
100100
| 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 |
101101
| app-proxy.image.pullPolicy | string | `"IfNotPresent"` | |
102102
| app-proxy.image.repository | string | `"quay.io/codefresh/cap-app-proxy"` | |
103-
| app-proxy.image.tag | string | `"1.2565.0"` | |
103+
| app-proxy.image.tag | string | `"1.2585.0"` | |
104104
| app-proxy.imagePullSecrets | list | `[]` | |
105105
| app-proxy.initContainer.command[0] | string | `"./init.sh"` | |
106106
| app-proxy.initContainer.env | object | `{}` | |
107107
| app-proxy.initContainer.extraVolumeMounts | list | `[]` | Extra volume mounts for init container |
108108
| app-proxy.initContainer.image.pullPolicy | string | `"IfNotPresent"` | |
109109
| app-proxy.initContainer.image.repository | string | `"quay.io/codefresh/cap-app-proxy-init"` | |
110-
| app-proxy.initContainer.image.tag | string | `"1.2565.0"` | |
110+
| app-proxy.initContainer.image.tag | string | `"1.2585.0"` | |
111111
| app-proxy.initContainer.resources.limits.cpu | string | `"1"` | |
112112
| app-proxy.initContainer.resources.limits.memory | string | `"512Mi"` | |
113113
| app-proxy.initContainer.resources.requests.cpu | string | `"0.2"` | |

charts/gitops-runtime/templates/_helpers.tpl

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
{{/* Validation for secretKeyRef to avoid conflicting secret names with secrets created by controllers */}}
2+
{{- define "codefresh-gitops-runtime.secret-name-validation"}}
3+
{{- $reservedSecretNames := list "codefresh-token" }}
4+
{{- if has .name $reservedSecretNames }}
5+
{{- fail (printf "%s is a reserved name and is not allowed. Please use a different secret name" .name) }}
6+
{{- end }}
7+
{{- end }}
18
{{/*
29
Expand the name of the chart.
310
*/}}
@@ -161,6 +168,7 @@ valueFrom:
161168
key: token
162169
optional: true
163170
{{- else if .Values.global.codefresh.userToken.secretKeyRef }}
171+
{{- include "codefresh-gitops-runtime.secret-name-validation" .Values.global.codefresh.userToken.secretKeyRef }}
164172
valueFrom:
165173
secretKeyRef:
166174
{{- .Values.global.codefresh.userToken.secretKeyRef | toYaml | nindent 4 }}
@@ -244,6 +252,7 @@ Output comma separated list of installed runtime components
244252
{{- include "codefresh-gitops-runtime.runtime-gitcreds.password.default-secret-name" . }}
245253
{{- else if .Values.global.runtime.gitCredentials.password.secretKeyRef }}
246254
{{- if hasKey .Values.global.runtime.gitCredentials.password.secretKeyRef "name" }}
255+
{{- include "codefresh-gitops-runtime.secret-name-validation" .Values.global.runtime.gitCredentials.password.secretKeyRef }}
247256
{{- print .Values.global.runtime.gitCredentials.password.secretKeyRef.name }}
248257
{{- else }}
249258
{{ fail "secretKeyRef for global.runtime.gitCredentials.password illegal - must have name field"}}
@@ -270,4 +279,4 @@ valueFrom:
270279
key: {{ include "codefresh-gitops-runtime.runtime-gitcreds.password.secretkey" . }}
271280
optional: true
272281
{{- end }}
273-
# ------------------------------------------------------------------------------------------------------------
282+
# ------------------------------------------------------------------------------------------------------------

charts/gitops-runtime/tests/installation-token_test.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,14 @@ tests:
7373
secretKeyRef:
7474
name: mysecret
7575
key: mykey
76+
77+
- it: codefresh-token is not allowed
78+
template: 'app-proxy/deployment.yaml'
79+
values:
80+
- ./values/mandatory-values-no-token.yaml
81+
set:
82+
global.codefresh.userToken.secretKeyRef.name: codefresh-token
83+
global.codefresh.userToken.secretKeyRef.key: token
84+
asserts:
85+
- failedTemplate:
86+
errorMessage: 'codefresh-token is a reserved name and is not allowed. Please use a different secret name'

charts/gitops-runtime/values.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -418,15 +418,15 @@ app-proxy:
418418
tag: 1.1.10-main
419419
image:
420420
repository: quay.io/codefresh/cap-app-proxy
421-
tag: 1.2565.0
421+
tag: 1.2585.0
422422
pullPolicy: IfNotPresent
423423
# -- Extra volume mounts for main container
424424
extraVolumeMounts: []
425425

426426
initContainer:
427427
image:
428428
repository: quay.io/codefresh/cap-app-proxy-init
429-
tag: 1.2565.0
429+
tag: 1.2585.0
430430
pullPolicy: IfNotPresent
431431
command:
432432
- ./init.sh

0 commit comments

Comments
 (0)