Skip to content

Commit c16d8d3

Browse files
Upgrade argocd,sealed secrets,app-proxy and switch to appVersion (#22)
* upgrade argocd,sealed secrets,app-proxy and switch to appVersion Co-authored-by: danielm-codefresh <[email protected]>
1 parent 5a6c886 commit c16d8d3

File tree

8 files changed

+48
-30
lines changed

8 files changed

+48
-30
lines changed

charts/gitops-runtime/Chart.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
2-
appVersion: v0.0.1
2+
appVersion: 0.1.27-helm-alpha
33
description: A Helm chart for Codefresh gitops runtime
44
name: gitops-runtime
5-
version: 0.2.0-alpha-12
5+
version: 0.2.0-alpha-14
66
home: https://github.com/codefresh-io/gitops-runtime-helm
77
keywords:
88
- codefresh
@@ -13,7 +13,7 @@ maintainers:
1313
dependencies:
1414
- name: argo-cd
1515
repository: https://codefresh-io.github.io/argo-helm
16-
version: 5.16.0-2-cap-CR-16950
16+
version: 5.27.1-1-cap-CR-17237
1717
- name: argo-events
1818
repository: https://codefresh-io.github.io/argo-helm
1919
version: 2.0.5-1-cf-init
@@ -27,7 +27,7 @@ dependencies:
2727
condition: argo-rollouts.enabled
2828
- name: sealed-secrets
2929
repository: https://bitnami-labs.github.io/sealed-secrets/
30-
version: 2.1.6
30+
version: 2.7.3
3131
- name: codefresh-tunnel-client
3232
repository: https://chartmuseum.codefresh.io/codefresh-tunnel-client
3333
version: "0.1.12"

charts/gitops-runtime/README.md

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# gitops-runtime
22

3-
![Version: 0.2.0-alpha-12](https://img.shields.io/badge/Version-0.2.0--alpha--12-informational?style=flat-square) ![AppVersion: v0.0.1](https://img.shields.io/badge/AppVersion-v0.0.1-informational?style=flat-square)
3+
![Version: 0.2.0-alpha-14](https://img.shields.io/badge/Version-0.2.0--alpha--14-informational?style=flat-square) ![AppVersion: 0.1.27-helm-alpha](https://img.shields.io/badge/AppVersion-0.1.27--helm--alpha-informational?style=flat-square)
44

55
A Helm chart for Codefresh gitops runtime
66

@@ -16,9 +16,9 @@ A Helm chart for Codefresh gitops runtime
1616

1717
| Repository | Name | Version |
1818
|------------|------|---------|
19-
| https://bitnami-labs.github.io/sealed-secrets/ | sealed-secrets | 2.1.6 |
19+
| https://bitnami-labs.github.io/sealed-secrets/ | sealed-secrets | 2.7.3 |
2020
| https://chartmuseum.codefresh.io/codefresh-tunnel-client | tunnel-client(codefresh-tunnel-client) | 0.1.12 |
21-
| https://codefresh-io.github.io/argo-helm | argo-cd | 5.16.0-2-cap-CR-16950 |
21+
| https://codefresh-io.github.io/argo-helm | argo-cd | 5.27.1-1-cap-CR-17237 |
2222
| https://codefresh-io.github.io/argo-helm | argo-events | 2.0.5-1-cf-init |
2323
| https://codefresh-io.github.io/argo-helm | argo-rollouts | 2.22.1-1-cap-sw |
2424
| https://codefresh-io.github.io/argo-helm | argo-workflows | 0.22.8-1-cf-init |
@@ -28,8 +28,10 @@ A Helm chart for Codefresh gitops runtime
2828
| Key | Type | Default | Description |
2929
|-----|------|---------|-------------|
3030
| app-proxy.affinity | object | `{}` | |
31-
| app-proxy.config.argoCdUsername | string | `"admin"` | |
31+
| app-proxy.config.argoCdUrl | string | `nil` | ArgoCD Url. determined by chart logic. Do not change unless you are certain you need to |
32+
| app-proxy.config.argoCdUsername | string | `"admin"` | ArgoCD user to be used by app-proxy |
3233
| app-proxy.config.argoWorkflowsInsecure | string | `"true"` | |
34+
| app-proxy.config.argoWorkflowsUrl | string | `nil` | Workflows server url. Determined by chart logic. Do not change unless you are certain you need to |
3335
| app-proxy.config.env | string | `"production"` | |
3436
| app-proxy.config.logLevel | string | `"info"` | Log Level |
3537
| app-proxy.config.skipGitPermissionValidation | string | `"false"` | Skit git permissions validation |
@@ -50,13 +52,13 @@ A Helm chart for Codefresh gitops runtime
5052
| 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 |
5153
| app-proxy.image.pullPolicy | string | `"IfNotPresent"` | |
5254
| app-proxy.image.repository | string | `"quay.io/codefresh/cap-app-proxy"` | |
53-
| app-proxy.image.tag | string | `"CR-17702-fix-runtime-name-crash"` | |
55+
| app-proxy.image.tag | string | `"1.2170.0"` | |
5456
| app-proxy.imagePullSecrets | list | `[]` | |
5557
| app-proxy.initContainer.command[0] | string | `"./init.sh"` | |
5658
| app-proxy.initContainer.env | object | `{}` | |
5759
| app-proxy.initContainer.image.pullPolicy | string | `"IfNotPresent"` | |
5860
| app-proxy.initContainer.image.repository | string | `"quay.io/codefresh/cap-app-proxy-init"` | |
59-
| app-proxy.initContainer.image.tag | string | `"CR-17702-fix-runtime-name-crash"` | |
61+
| app-proxy.initContainer.image.tag | string | `"1.2170.0"` | |
6062
| app-proxy.initContainer.resources.limits.cpu | string | `"1"` | |
6163
| app-proxy.initContainer.resources.limits.memory | string | `"512Mi"` | |
6264
| app-proxy.initContainer.resources.requests.cpu | string | `"0.2"` | |
@@ -172,7 +174,7 @@ A Helm chart for Codefresh gitops runtime
172174
| internal-router.serviceAccount.create | bool | `true` | |
173175
| internal-router.serviceAccount.name | string | `""` | |
174176
| internal-router.tolerations | list | `[]` | |
175-
| sealed-secrets | object | `{"fullnameOverride":"sealed-secrets-controller","image":{"registry":"quay.io","repository":"codefresh/sealed-secrets-controller","tag":"v0.17.5"},"keyrenewperiod":"720h","resources":{"limits":{"cpu":"500m","memory":"1Gi"},"requests":{"cpu":"200m","memory":"512Mi"}}}` | --------------------------------------------------------------------------------------------------------------------- |
177+
| sealed-secrets | object | `{"fullnameOverride":"sealed-secrets-controller","image":{"registry":"quay.io","repository":"codefresh/sealed-secrets-controller","tag":"v0.19.4"},"keyrenewperiod":"720h","resources":{"limits":{"cpu":"500m","memory":"1Gi"},"requests":{"cpu":"200m","memory":"512Mi"}}}` | --------------------------------------------------------------------------------------------------------------------- |
176178
| tunnel-client | object | `{"libraryMode":true,"tunnelServer":{"host":"register-tunnels.cf-cd.com","subdomainHost":"tunnels.cf-cd.com"}}` | Tunnel based runtime. Only relevant when runtime.ingress.enabled = false |
177179
| tunnel-client.libraryMode | bool | `true` | Do not change this value! Breaks chart logic |
178180

charts/gitops-runtime/templates/_helpers.tpl

+4-4
Original file line numberDiff line numberDiff line change
@@ -200,18 +200,18 @@ Output comma separated list of installed runtime components
200200
{{- $argoCD := dict "name" "argocd" "version" (get .Subcharts "argo-cd").Chart.AppVersion }}
201201
{{- $argoEvents := dict "name" "argo-events" "version" (get .Subcharts "argo-events").Chart.AppVersion }}
202202
{{- $sealedSecrets := dict "name" "sealed-secrets" "version" (get .Subcharts "sealed-secrets").Chart.AppVersion }}
203-
{{- $internalRouter := dict "name" "internal-router" "version" .Chart.Version }}
204-
{{- $eventsReporter := dict "name" "events-reporter" "version" .Chart.Version }}
203+
{{- $internalRouter := dict "name" "internal-router" "version" .Chart.AppVersion }}
204+
{{- $eventsReporter := dict "name" "events-reporter" "version" .Chart.AppVersion }}
205205
{{- $appProxy := dict "name" "app-proxy" "version" (index (get .Values "app-proxy") "image" "tag") }}
206206
{{- $comptList := list $argoCD $argoEvents $appProxy $eventsReporter $sealedSecrets $internalRouter}}
207207
{{- if index (get .Values "argo-rollouts") "enabled" }}
208-
{{- $rolloutReporter := dict "name" "rollout-reporter" "version" .Chart.Version }}
208+
{{- $rolloutReporter := dict "name" "rollout-reporter" "version" .Chart.AppVersion }}
209209
{{- $argoRollouts := dict "name" "argo-rollouts" "version" (get .Subcharts "argo-rollouts").Chart.AppVersion }}
210210
{{- $comptList = append $comptList $argoRollouts }}
211211
{{- $comptList = append $comptList $rolloutReporter }}
212212
{{- end }}
213213
{{- if index (get .Values "argo-workflows") "enabled" }}
214-
{{- $workflowReporter := dict "name" "workflow-reporter" "version" .Chart.Version }}
214+
{{- $workflowReporter := dict "name" "workflow-reporter" "version" .Chart.AppVersion }}
215215
{{- $argoWorkflows := dict "name" "argo-workflows" "version" (get .Subcharts "argo-workflows").Chart.AppVersion }}
216216
{{- $comptList = append $comptList $workflowReporter}}
217217
{{- $comptList = append $comptList $argoWorkflows }}

charts/gitops-runtime/templates/app-proxy/config.yaml

+7-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
{{ $appProxyContext := deepCopy . }}
44
{{ $_ := set $appProxyContext "Values" (get .Values "app-proxy") }}
55
{{ $_ := set $appProxyContext.Values "global" (get .Values "global") }}
6-
{{ $_ := set $appProxyContext.Values.config "argoCdUrl" $argoCdUrl }}
6+
{{- if not $appProxyContext.Values.config.argoCdUrl }}
7+
{{ $_ := set $appProxyContext.Values.config "argoCdUrl" $argoCdUrl }}
8+
{{- end }}
79
{{- if index (get .Values "argo-workflows") "enabled" }}
8-
{{- $argoWorkflowsUrl := include "codefresh-gitops-runtime.argo-workflows.server.url" . }}
9-
{{- $_ := set $appProxyContext.Values.config "argoWorkflowsUrl" $argoWorkflowsUrl }}
10+
{{- if not $appProxyContext.Values.config.argoWorkflowsUrl }}
11+
{{- $argoWorkflowsUrl := include "codefresh-gitops-runtime.argo-workflows.server.url" . }}
12+
{{- $_ := set $appProxyContext.Values.config "argoWorkflowsUrl" $argoWorkflowsUrl }}
13+
{{- end }}
1014
{{- end}}
1115
{{- include "cap-app-proxy.resources.configmap" $appProxyContext }}

charts/gitops-runtime/templates/codefresh-cm.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ metadata:
66
{{- include "codefresh-gitops-runtime.labels" . | nindent 4 }}
77
data:
88
base-url: {{ .Values.global.codefresh.url }}
9-
bootstrapRevision: {{ .Chart.Version }}
9+
bootstrapRevision: {{ .Chart.AppVersion }}
1010
helmReleaseName: {{ .Release.Name }}
1111
cluster: {{ .Values.global.runtime.cluster }}
1212
components: |-
1313
{{- include "codefresh-gitops-runtime.component-list" . | nindent 4}}
1414
ingressClassName: {{ .Values.global.runtime.ingress.className | default "" | quote }}
1515
ingressController: {{ .Values.global.runtime.ingress.className | default "" | quote }}
1616
ingressHost: {{ include "codefresh-gitops-runtime.ingress-url" . }}
17-
version: {{ .Chart.Version }}
17+
version: {{ .Chart.AppVersion }}

charts/gitops-runtime/templates/enforce-runtime-name.yaml

-7
This file was deleted.

charts/gitops-runtime/tests/app-proxy-misc_test.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,20 @@ tests:
1515
content:
1616
name: PORT
1717
value: 8787
18+
- it: overriding of argoCD and workflows Url through values
19+
template: 'app-proxy/config.yaml'
20+
values:
21+
- ./values/mandatory-values.yaml
22+
set:
23+
app-proxy.config.argoCdUrl: 'https://test-argocd'
24+
app-proxy.config.argoWorkflowsUrl: 'https://test-workflows'
25+
asserts:
26+
- equal:
27+
path: data.argoCdUrl
28+
value: https://test-argocd
29+
- equal:
30+
path: data.argoWorkflowsUrl
31+
value: https://test-workflows
1832
- it: setting security context on main container
1933
template: 'app-proxy/deployment.yaml'
2034
values:

charts/gitops-runtime/values.yaml

+8-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ sealed-secrets:
8888
image:
8989
registry: 'quay.io'
9090
repository: 'codefresh/sealed-secrets-controller'
91-
tag: 'v0.17.5'
91+
tag: 'v0.19.4'
9292
resources:
9393
limits:
9494
cpu: 500m
@@ -280,14 +280,14 @@ app-proxy:
280280
image:
281281
repository: quay.io/codefresh/cap-app-proxy
282282
# Overrides the image tag whose default is the chart appVersion.
283-
tag: CR-17702-fix-runtime-name-crash
283+
tag: 1.2170.0
284284
pullPolicy: IfNotPresent
285285

286286
initContainer:
287287
image:
288288
repository: quay.io/codefresh/cap-app-proxy-init
289289
# Overrides the image tag whose default is the chart appVersion.
290-
tag: CR-17702-fix-runtime-name-crash
290+
tag: 1.2170.0
291291
pullPolicy: IfNotPresent
292292
command:
293293
- ./init.sh
@@ -307,7 +307,12 @@ app-proxy:
307307
fullnameOverride: "cap-app-proxy"
308308

309309
config:
310+
# -- ArgoCD user to be used by app-proxy
310311
argoCdUsername: "admin"
312+
# -- ArgoCD Url. determined by chart logic. Do not change unless you are certain you need to
313+
argoCdUrl:
314+
# -- Workflows server url. Determined by chart logic. Do not change unless you are certain you need to
315+
argoWorkflowsUrl:
311316
argoWorkflowsInsecure: "true"
312317
env: "production"
313318
# -- Skit git permissions validation

0 commit comments

Comments
 (0)