Skip to content

Commit f7c8103

Browse files
feat: global constraints (#469)
1 parent c26b05c commit f7c8103

23 files changed

+1340
-159
lines changed

charts/gitops-runtime/Chart.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,26 @@ dependencies:
2020
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-28072
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-3-v1.7.2-cap-CR-28008
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/
3434
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.5
42+
version: 0.7.0
4343
alias: gitops-operator
4444
condition: gitops-operator.enabled
4545
- name: garage
@@ -49,4 +49,4 @@ dependencies:
4949
condition: garage-workflows-artifact-storage.enabled
5050
- name: cf-argocd-extras
5151
repository: oci://quay.io/codefresh/charts
52-
version: 0.3.20
52+
version: 0.3.21

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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 3 additions & 3 deletions
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 }}

charts/gitops-runtime/templates/app-proxy/_app-proxy-volumes.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- define "codefresh-gitops-runtime.app-proxy.extra-volumes" }}
22
extraVolumes:
3-
{{- if or .Values.global.codefresh.tls.caCerts.secret.create .Values.global.codefresh.tls.caCerts.secretKeyRef}}
3+
{{- if or .Values.global.codefresh.tls.caCerts.secret.create .Values.global.codefresh.tls.caCerts.secretKeyRef }}
44
- name: codefresh-tls-certs
55
secret:
66
secretName: {{ .Values.global.codefresh.tls.caCerts.secret.create | ternary "codefresh-tls-certs" .Values.global.codefresh.tls.caCerts.secretKeyRef.name }}
@@ -11,7 +11,7 @@ extraVolumes:
1111

1212
{{- define "codefresh-gitops-runtime.app-proxy.init.extra-volume-mounts" }}
1313
extraVolumeMounts:
14-
{{- if or .Values.global.codefresh.tls.caCerts.secret.create .Values.global.codefresh.tls.caCerts.secretKeyRef}}
14+
{{- if or .Values.global.codefresh.tls.caCerts.secret.create .Values.global.codefresh.tls.caCerts.secretKeyRef }}
1515
- mountPath: /app/config/codefresh-tls-certs
1616
name: codefresh-tls-certs
1717
readOnly: true

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{- $appProxyContext := deepCopy . }}
2+
23
{{- $_ := set $appProxyContext "Values" (deepCopy (get .Values "app-proxy")) }}
34
{{- $_ := set $appProxyContext.Values "global" (deepCopy (get .Values "global")) }}
45
{{- $_ := set $appProxyContext.Values "argo-cd" (get .Values "argo-cd") }}

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
{{- if hasKey $eventBusSpec "annotations" }}
1212
{{- $eventBusSpec = unset $eventBusSpec "annotations" }}
1313
{{- end }}
14+
15+
{{- $_ := set $eventBusSpec.nats.native "nodeSelector" ($eventBusSpec.nats.native.nodeSelector | default .Values.global.nodeSelector) }}
16+
{{- $_ := set $eventBusSpec.nats.native "tolerations" ($eventBusSpec.nats.native.tolerations | default .Values.global.tolerations) }}
17+
1418
apiVersion: argoproj.io/v1alpha1
1519
kind: EventBus
1620
metadata:
@@ -21,4 +25,4 @@ metadata:
2125
app.kubernetes.io/part-of: argo-events
2226
codefresh.io/internal: "true"
2327
spec:
24-
{{- $eventBusSpec | toYaml | nindent 2}}
28+
{{- $eventBusSpec | toYaml | nindent 2}}

0 commit comments

Comments
 (0)