Skip to content

Commit 04f7690

Browse files
committed
Merge branch 'main' into feat/workflows-codefresh-saas-s3
# Conflicts: # charts/gitops-runtime/README.md
2 parents 9f3b43f + 5dbe40a commit 04f7690

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2032
-358
lines changed

.gitignore

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ output
77
**/charts/**/charts
88
**/charts/**/Chart.lock
99

10-
# only ignore the values.yaml file at the root of the repo
11-
/values.yaml
10+
# only ignore any values*.yaml file at the root of the repo
11+
/values*.yaml
1212
.devcontainer
1313

1414
# ignore local dev
1515
values-dev.yaml
1616
dry-run.yaml
17-
values-test.yaml
1817
.debug

charts/gitops-runtime/Chart.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
appVersion: 0.1.69-0
2+
appVersion: 0.1.71
33
description: A Helm chart for Codefresh gitops runtime
44
name: gitops-runtime
55
version: 0.0.0
@@ -17,31 +17,31 @@ dependencies:
1717
- name: argo-cd
1818
repository: https://codefresh-io.github.io/argo-helm
1919
condition: argo-cd.enabled
20-
version: 7.7.14-5-cap-2.13.3-2025.3.5-50344f005
20+
version: 7.8.23-3-cap-v2.14.9-2025-04-23-4de04dd8
2121
- name: argo-events
2222
repository: https://codefresh-io.github.io/argo-helm
23-
version: 2.4.7-1-cap-CR-26731
23+
version: 2.4.7-2-cap-CR-28072
2424
- name: argo-workflows
2525
repository: https://codefresh-io.github.io/argo-helm
26-
version: 0.45.2-v3.6.4-cap-CR-27392
26+
version: 0.45.4-v3.6.4-cap-CR-27392
2727
condition: argo-workflows.enabled
2828
- name: argo-rollouts
2929
repository: https://codefresh-io.github.io/argo-helm
30-
version: 2.37.3-2-v1.7.2-cap-CR-26082
30+
version: 2.37.3-4-v1.7.2-cap-CR-28008
3131
condition: argo-rollouts.enabled
3232
- name: sealed-secrets
3333
repository: https://bitnami-labs.github.io/sealed-secrets/
34-
version: 2.17.0
34+
version: 2.17.2
3535
- name: codefresh-tunnel-client
3636
repository: oci://quay.io/codefresh/charts
37-
version: 0.1.19
37+
version: 0.1.21
3838
alias: tunnel-client
3939
condition: tunnel-client.enabled
4040
- name: codefresh-gitops-operator
4141
repository: oci://quay.io/codefresh/charts
42-
version: 0.5.1
42+
version: 0.7.1
4343
alias: gitops-operator
4444
condition: gitops-operator.enabled
4545
- name: cf-argocd-extras
4646
repository: oci://quay.io/codefresh/charts
47-
version: 0.3.13
47+
version: 0.3.21

charts/gitops-runtime/README.md

+50-31
Large diffs are not rendered by default.

charts/gitops-runtime/README.md.gotmpl

+26
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,25 @@ argo-cd:
9494
enabled: false
9595
```
9696

97+
## Installation with External Argo Rollouts
98+
99+
If you want to use an existing Argo Rollouts installation, you can disable the built-in Argo Rollouts and configure the GitOps Runtime to use the external Argo Rollouts.
100+
See the `values.yaml` example below:
101+
102+
```yaml
103+
global:
104+
# -- Configuration for external Argo Rollouts
105+
external-argo-rollouts:
106+
# -- Rollout reporter settings
107+
rollout-reporter:
108+
# -- Enable rollout reporter
109+
# Configuration is defined at .Values.event-reporters.rollout
110+
enabled: true
111+
112+
argo-rollouts:
113+
# -- Disable built-in Argo Rollouts
114+
enabled: false
115+
```
97116

98117
## Using with private registries - Helper utility
99118
The GitOps Runtime comprises multiple subcharts and container images. Subcharts also vary in values structure, making it difficult to override image specific values to use private registries.
@@ -117,6 +136,13 @@ The utility will output 4 files into the folder:
117136
3. `values-images-no-tags.yaml` - a values file with all image values with the private registry **excluding tags**. If provided through --values to helm install/upgrade command - it will override all images to use the private registry.
118137
4. `values-images-with-tags.yaml` - The same as 3 but with tags **included**.
119138

139+
140+
For usage with external ArgoCD run the utility with `EXTERNAL_ARGOCD` environment variable set to `true`.
141+
```
142+
docker run -e EXTERNAL_ARGOCD=true -v <output_dir>:/output quay.io/codefresh/gitops-runtime-private-registry-utils:{{ template "chart.version" . }} <local_registry>
143+
```
144+
145+
120146
## Openshift
121147

122148
```yaml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Values file used to render all image values
2+
global:
3+
codefresh:
4+
accountId: 628a80b693a15c0f9c13ab75 # Codefresh Account id for ilia-codefresh for now, needs to be some test account
5+
gitIntegration:
6+
provider:
7+
name: 'GITHUB'
8+
apiUrl: 'https://api.github.com'
9+
userToken:
10+
secretKeyRef:
11+
name: mysecret
12+
key: myvalue
13+
optional: true
14+
15+
runtime:
16+
name: default
17+
18+
ingress:
19+
enabled: false
20+
21+
repoCredentialsTemplate:
22+
url: 'https://github.com'
23+
username: 'username'
24+
password: 'dummy'
25+
26+
argo-rollouts:
27+
dashboard:
28+
enabled: true
29+
30+
argo-cd:
31+
enabled: false
32+
33+
garage-workflows-artifact-storage:
34+
enabled: true
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
GitOps Runtime {{ .Values.global.runtime.name }} has been successfully installed in your cluster!
2-
To complete the setup, please finalize the process in the platform here: https://g.codefresh.io/2.0/account-settings/runtimes/{{ .Values.global.runtime.name }}/runtime-components
2+
To complete the setup, please finalize the process in the platform here: {{ .Values.global.codefresh.url }}/2.0/account-settings/runtimes/info/list?activeAccountId={{ .Values.global.codefresh.accountId }}&drawer=install-runtime-wizard&mode={{- if index .Values "argo-cd" "enabled" }}new{{- else }}byoa{{- end }}&runtimeName={{ .Values.global.runtime.name }}&waitEvents=true

charts/gitops-runtime/templates/_components/cap-app-proxy/_deployment.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ spec:
8484
- mountPath: /app/config/all
8585
name: all-certs
8686
readOnly: true
87-
{{- with .Values.nodeSelector }}
87+
{{- with .Values.nodeSelector | default .Values.global.nodeSelector }}
8888
nodeSelector:
8989
{{- toYaml . | nindent 8 }}
9090
{{- end }}
9191
{{- with .Values.affinity }}
9292
affinity:
9393
{{- toYaml . | nindent 8}}
9494
{{- end }}
95-
{{- with .Values.tolerations }}
95+
{{- with .Values.tolerations | default .Values.global.tolerations}}
9696
tolerations:
9797
{{- toYaml . | nindent 6 }}
9898
{{- end }}

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ spec:
4848
{{- end }}
4949
serviceAccountName: {{ include "event-reporters.rollout-reporter.serviceAccountName" .}}
5050
tolerations:
51-
{{- with .Values.rollout.eventSource.tolerations }}
51+
{{- with .Values.rollout.eventSource.tolerations | default .Values.global.tolerations }}
5252
{{- . | toYaml | nindent 6 }}
5353
{{- end }}
5454
nodeSelector:
55-
{{- with .Values.rollout.eventSource.nodeSelector }}
55+
{{- with .Values.rollout.eventSource.nodeSelector | default .Values.global.nodeSelector }}
5656
{{- . | toYaml | nindent 6 }}
5757
{{- end }}
5858
affinity:
59-
{{- with .Values.rollout.eventSource.affinity }}
59+
{{- with .Values.affinity }}
6060
{{- . | toYaml | nindent 6 }}
6161
{{- end }}
62-
{{- end }}
62+
{{- end }}

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ spec:
2828
{{- . | toYaml | nindent 8 }}
2929
{{- end }}
3030
tolerations:
31-
{{- with .Values.rollout.sensor.tolerations }}
31+
{{- with .Values.rollout.sensor.tolerations | default .Values.global.tolerations }}
3232
{{- . | toYaml | nindent 6 }}
3333
{{- end }}
3434
nodeSelector:
35-
{{- with .Values.rollout.sensor.nodeSelector }}
35+
{{- with .Values.rollout.sensor.nodeSelector | default .Values.global.nodeSelector}}
3636
{{- . | toYaml | nindent 6 }}
3737
{{- end }}
3838
affinity:
39-
{{- with .Values.rollout.sensor.affinity }}
39+
{{- with .Values.affinity }}
4040
{{- . | toYaml | nindent 6 }}
4141
{{- end }}
4242
triggers:

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ spec:
2929
{{- end }}
3030
serviceAccountName: {{ include "event-reporters.workflow-reporter.serviceAccountName" .}}
3131
tolerations:
32-
{{- with .Values.workflow.eventSource.tolerations }}
32+
{{- with .Values.workflow.eventSource.tolerations | default .Values.global.tolerations }}
3333
{{- toYaml . | nindent 6 }}
3434
{{- end }}
3535
nodeSelector:
36-
{{- with .Values.workflow.eventSource.nodeSelector }}
36+
{{- with .Values.workflow.eventSource.nodeSelector | default .Values.global.nodeSelector }}
3737
{{- toYaml . | nindent 6 }}
3838
{{- end }}
3939
affinity:
40-
{{- with .Values.workflow.eventSource.affinity }}
40+
{{- with .Values.affinity }}
4141
{{- toYaml . | nindent 6 }}
4242
{{- end }}
43-
{{- end }}
43+
{{- end }}

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ spec:
2222
{{- . | toYaml | nindent 8 }}
2323
{{- end }}
2424
tolerations:
25-
{{- with .Values.workflow.sensor.tolerations }}
25+
{{- with .Values.workflow.sensor.tolerations | default .Values.global.tolerations}}
2626
{{- . | toYaml | nindent 6 }}
2727
{{- end }}
2828
nodeSelector:
29-
{{- with .Values.workflow.sensor.nodeSelector }}
29+
{{- with .Values.workflow.sensor.nodeSelector | default .Values.global.nodeSelector }}
3030
{{- . | toYaml | nindent 6 }}
3131
{{- end }}
3232
affinity:
33-
{{- with .Values.workflow.sensor.affinity }}
33+
{{- with .Values.affinity }}
3434
{{- . | toYaml | nindent 6 }}
3535
{{- end }}
3636
triggers:

charts/gitops-runtime/templates/_components/internal-router/_deployment.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,16 @@ spec:
7070
path: default.conf.template
7171
- name: log
7272
emptyDir: { }
73-
{{- with .Values.nodeSelector }}
73+
{{- with .Values.nodeSelector | default .Values.global.nodeSelector }}
7474
nodeSelector:
7575
{{- toYaml . | nindent 8 }}
7676
{{- end }}
7777
{{- with .Values.affinity }}
7878
affinity:
7979
{{- toYaml . | nindent 8 }}
8080
{{- end }}
81-
{{- with .Values.tolerations }}
81+
{{- with .Values.tolerations | default .Values.global.tolerations }}
8282
tolerations:
8383
{{- toYaml . | nindent 8 }}
8484
{{- end }}
85-
{{- end }}
85+
{{- end }}

0 commit comments

Comments
 (0)