Skip to content

Commit 4eed965

Browse files
Merge pull request #30 from codefresh-io/argocd-update-templates-5.50.1
Argocd update templates 5.50.1
2 parents 63013fc + 8925cc8 commit 4eed965

33 files changed

+331
-50
lines changed

.github/workflows/lint-and-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
options: --user 1001
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
16+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1717
- name: Run ah lint
1818
working-directory: ./charts
1919
run: ah lint
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
25+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2626
with:
2727
fetch-depth: 0
2828

@@ -32,7 +32,7 @@ jobs:
3232
version: v3.10.1 # Also update in publish.yaml
3333

3434
- name: Set up python
35-
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
35+
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
3636
with:
3737
python-version: 3.9
3838

.github/workflows/pr-title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
name: Validate PR title
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: amannn/action-semantic-pull-request@c3cd5d1ea3580753008872425915e343e351ab54 # v5.2.0
22+
- uses: amannn/action-semantic-pull-request@47b15d52c5c30e94a17ec87eb8dd51ff5221fed9 # v5.3.0
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2525
with:

.github/workflows/publish.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
21+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2222
with:
2323
fetch-depth: 0
2424

@@ -65,3 +65,20 @@ jobs:
6565
skip_packaging: true
6666
env:
6767
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
68+
69+
- name: Login to GHCR
70+
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
71+
with:
72+
registry: ghcr.io
73+
username: ${{ github.actor }}
74+
password: ${{ secrets.GITHUB_TOKEN }}
75+
76+
- name: Push chart to GHCR
77+
run: |
78+
shopt -s nullglob
79+
for pkg in .cr-release-packages/*.tgz; do
80+
if [ -z "${pkg:-}" ]; then
81+
break
82+
fi
83+
helm push "${pkg}" oci://ghcr.io/${{ github.repository }}
84+
done

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333

3434
steps:
3535
- name: "Checkout code"
36-
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
36+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3737
with:
3838
persist-credentials: false
3939

4040
- name: "Run analysis"
41-
uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031 # v2.2.0
41+
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
4242
with:
4343
results_file: results.sarif
4444
results_format: sarif

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Each release for each chart must be immutable. Any change to a chart (even just
6464

6565
### Chart Versioning
6666

67-
Currently we require a chart version bump for every change to a chart, including updating information for older verions. This may change in the future.
67+
Currently we require a chart version bump for every change to a chart, including updating information for older versions. This may change in the future.
6868

6969
### Artifact Hub Annotations
7070

charts/argo-cd/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: v2.8.1-cap-CR-20837
33
kubeVersion: ">=1.23.0-0"
44
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
55
name: argo-cd
6-
version: 5.46.2-4-cap-CR-20837
6+
version: 5.50.1-0-cap-CR-20837
77
home: https://github.com/argoproj/argo-helm
88
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
99
sources:

charts/argo-cd/README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ NAME: my-release
562562
| controller.serviceAccount.labels | object | `{}` | Labels applied to created service account |
563563
| controller.serviceAccount.name | string | `"argocd-application-controller"` | Service account name |
564564
| controller.statefulsetAnnotations | object | `{}` | Annotations for the application controller StatefulSet |
565+
| controller.terminationGracePeriodSeconds | int | `30` | terminationGracePeriodSeconds for container lifecycle hook |
565566
| controller.tolerations | list | `[]` (defaults to global.tolerations) | [Tolerations] for use with node taints |
566567
| controller.topologySpreadConstraints | list | `[]` (defaults to global.topologySpreadConstraints) | Assign custom [TopologySpreadConstraints] rules to the application controller |
567568
| controller.volumeMounts | list | `[]` | Additional volumeMounts to the application controller main container |
@@ -654,6 +655,7 @@ NAME: my-release
654655
| repoServer.serviceAccount.create | bool | `true` | Create repo server service account |
655656
| repoServer.serviceAccount.labels | object | `{}` | Labels applied to created service account |
656657
| repoServer.serviceAccount.name | string | `""` | Repo server service account name |
658+
| repoServer.terminationGracePeriodSeconds | int | `30` | terminationGracePeriodSeconds for container lifecycle hook |
657659
| repoServer.tolerations | list | `[]` (defaults to global.tolerations) | [Tolerations] for use with node taints |
658660
| repoServer.topologySpreadConstraints | list | `[]` (defaults to global.topologySpreadConstraints) | Assign custom [TopologySpreadConstraints] rules to the repo server |
659661
| repoServer.useEphemeralHelmWorkingDir | bool | `true` | Toggle the usage of a ephemeral Helm working directory |
@@ -808,6 +810,7 @@ NAME: my-release
808810
| server.serviceAccount.create | bool | `true` | Create server service account |
809811
| server.serviceAccount.labels | object | `{}` | Labels applied to created service account |
810812
| server.serviceAccount.name | string | `"argocd-server"` | Server service account name |
813+
| server.terminationGracePeriodSeconds | int | `30` | terminationGracePeriodSeconds for container lifecycle hook |
811814
| server.tolerations | list | `[]` (defaults to global.tolerations) | [Tolerations] for use with node taints |
812815
| server.topologySpreadConstraints | list | `[]` (defaults to global.topologySpreadConstraints) | Assign custom [TopologySpreadConstraints] rules to the Argo CD server |
813816
| server.volumeMounts | list | `[]` | Additional volumeMounts to the server main container |
@@ -916,6 +919,7 @@ server:
916919
| dex.servicePortHttp | int | `5556` | Service port for HTTP access |
917920
| dex.servicePortHttpName | string | `"http"` | Service port name for HTTP access |
918921
| dex.servicePortMetrics | int | `5558` | Service port for metrics access |
922+
| dex.terminationGracePeriodSeconds | int | `30` | terminationGracePeriodSeconds for container lifecycle hook |
919923
| dex.tolerations | list | `[]` (defaults to global.tolerations) | [Tolerations] for use with node taints |
920924
| dex.topologySpreadConstraints | list | `[]` (defaults to global.topologySpreadConstraints) | Assign custom [TopologySpreadConstraints] rules to dex |
921925
| dex.volumeMounts | list | `[]` | Additional volumeMounts to the dex main container |
@@ -947,8 +951,8 @@ server:
947951
| redis.extraArgs | list | `[]` | Additional command line arguments to pass to redis-server |
948952
| redis.extraContainers | list | `[]` | Additional containers to be added to the redis pod |
949953
| redis.image.imagePullPolicy | string | `""` (defaults to global.image.imagePullPolicy) | Redis image pull policy |
950-
| redis.image.repository | string | `"quay.io/codefresh/redis"` | Redis repository |
951-
| redis.image.tag | string | `"7.0.11-alpine"` | Redis tag |
954+
| redis.image.repository | string | `"public.ecr.aws/docker/library/redis"` | Redis repository |
955+
| redis.image.tag | string | `"7.0.13-alpine"` | Redis tag |
952956
| redis.imagePullSecrets | list | `[]` (defaults to global.imagePullSecrets) | Secrets with credentials to pull images from a private registry |
953957
| redis.initContainers | list | `[]` | Init containers to add to the redis pod |
954958
| redis.metrics.enabled | bool | `false` | Deploy metrics service |
@@ -987,6 +991,7 @@ server:
987991
| redis.serviceAccount.create | bool | `false` | Create a service account for the redis pod |
988992
| redis.serviceAccount.name | string | `""` | Service account name for redis pod |
989993
| redis.servicePort | int | `6379` | Redis service port |
994+
| redis.terminationGracePeriodSeconds | int | `30` | terminationGracePeriodSeconds for container lifecycle hook |
990995
| redis.tolerations | list | `[]` (defaults to global.tolerations) | [Tolerations] for use with node taints |
991996
| redis.topologySpreadConstraints | list | `[]` (defaults to global.topologySpreadConstraints) | Assign custom [TopologySpreadConstraints] rules to redis |
992997
| redis.volumeMounts | list | `[]` | Additional volumeMounts to the redis container |
@@ -1001,20 +1006,22 @@ The main options are listed here:
10011006
| Key | Type | Default | Description |
10021007
|-----|------|---------|-------------|
10031008
| redis-ha.additionalAffinities | object | `{}` | Additional affinities to add to the Redis server pods. |
1004-
| redis-ha.affinity | object | `{}` | Assign custom [affinity] rules to the Redis pods. |
1009+
| redis-ha.affinity | string | `""` | Assign custom [affinity] rules to the Redis pods. |
1010+
| redis-ha.containerSecurityContext | object | See [values.yaml] | Redis HA statefulset container-level security context |
10051011
| redis-ha.enabled | bool | `false` | Enables the Redis HA subchart and disables the custom Redis single node deployment |
10061012
| redis-ha.exporter.enabled | bool | `false` | Enable Prometheus redis-exporter sidecar |
10071013
| redis-ha.exporter.image | string | `"public.ecr.aws/bitnami/redis-exporter"` | Repository to use for the redis-exporter |
10081014
| redis-ha.exporter.tag | string | `"1.53.0"` | Tag to use for the redis-exporter |
10091015
| redis-ha.haproxy.additionalAffinities | object | `{}` | Additional affinities to add to the haproxy pods. |
1010-
| redis-ha.haproxy.affinity | object | `{}` | Assign custom [affinity] rules to the haproxy pods. |
1016+
| redis-ha.haproxy.affinity | string | `""` | Assign custom [affinity] rules to the haproxy pods. |
1017+
| redis-ha.haproxy.containerSecurityContext | object | See [values.yaml] | HAProxy container-level security context |
10111018
| redis-ha.haproxy.enabled | bool | `true` | Enabled HAProxy LoadBalancing/Proxy |
10121019
| redis-ha.haproxy.hardAntiAffinity | bool | `true` | Whether the haproxy pods should be forced to run on separate nodes. |
10131020
| redis-ha.haproxy.metrics.enabled | bool | `true` | HAProxy enable prometheus metric scraping |
10141021
| redis-ha.haproxy.tolerations | list | `[]` | [Tolerations] for use with node taints for haproxy pods. |
10151022
| redis-ha.hardAntiAffinity | bool | `true` | Whether the Redis server pods should be forced to run on separate nodes. |
10161023
| redis-ha.image.repository | string | `"redis"` | Redis repository |
1017-
| redis-ha.image.tag | string | `"7.0.11-alpine"` | Redis tag |
1024+
| redis-ha.image.tag | string | `"7.0.13-alpine"` | Redis tag |
10181025
| redis-ha.persistentVolume.enabled | bool | `false` | Configures persistence on Redis nodes |
10191026
| redis-ha.redis.config | object | See [values.yaml] | Any valid redis config options in this section will be applied to each server (see `redis-ha` chart) |
10201027
| redis-ha.redis.config.save | string | `'""'` | Will save the DB if both the given number of seconds and the given number of write operations against the DB occurred. `""` is disabled |
@@ -1135,6 +1142,7 @@ If you want to use an existing Redis (eg. a managed service from a cloud provide
11351142
| applicationSet.serviceAccount.create | bool | `true` | Create ApplicationSet controller service account |
11361143
| applicationSet.serviceAccount.labels | object | `{}` | Labels applied to created service account |
11371144
| applicationSet.serviceAccount.name | string | `"argocd-applicationset-controller"` | ApplicationSet controller service account name |
1145+
| applicationSet.terminationGracePeriodSeconds | int | `30` | terminationGracePeriodSeconds for container lifecycle hook |
11381146
| applicationSet.tolerations | list | `[]` (defaults to global.tolerations) | [Tolerations] for use with node taints |
11391147
| applicationSet.topologySpreadConstraints | list | `[]` (defaults to global.topologySpreadConstraints) | Assign custom [TopologySpreadConstraints] rules to the ApplicationSet controller |
11401148
| applicationSet.webhook.ingress.annotations | object | `{}` | Additional ingress annotations |
@@ -1153,6 +1161,7 @@ If you want to use an existing Redis (eg. a managed service from a cloud provide
11531161
|-----|------|---------|-------------|
11541162
| notifications.affinity | object | `{}` (defaults to global.affinity preset) | Assign custom [affinity] rules |
11551163
| notifications.argocdUrl | string | `nil` | Argo CD dashboard url; used in place of {{.context.argocdUrl}} in templates |
1164+
| notifications.clusterRoleRules.rules | list | `[]` | List of custom rules for the notifications controller's ClusterRole resource |
11561165
| notifications.cm.create | bool | `true` | Whether helm chart creates notifications controller config map |
11571166
| notifications.containerPorts.metrics | int | `9001` | Metrics container port |
11581167
| notifications.containerSecurityContext | object | See [values.yaml] | Notification controller container-level security Context |
@@ -1213,6 +1222,7 @@ If you want to use an existing Redis (eg. a managed service from a cloud provide
12131222
| notifications.serviceAccount.name | string | `"argocd-notifications-controller"` | Notification controller service account name |
12141223
| notifications.subscriptions | list | `[]` | Contains centrally managed global application subscriptions |
12151224
| notifications.templates | object | `{}` | The notification template is used to generate the notification content |
1225+
| notifications.terminationGracePeriodSeconds | int | `30` | terminationGracePeriodSeconds for container lifecycle hook |
12161226
| notifications.tolerations | list | `[]` (defaults to global.tolerations) | [Tolerations] for use with node taints |
12171227
| notifications.topologySpreadConstraints | list | `[]` (defaults to global.topologySpreadConstraints) | Assign custom [TopologySpreadConstraints] rules to the application controller |
12181228
| notifications.triggers | object | `{}` | The trigger defines the condition when the notification should be sent |

charts/argo-cd/templates/argocd-application-controller/statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ spec:
5252
{{- with .Values.controller.priorityClassName | default .Values.global.priorityClassName }}
5353
priorityClassName: {{ . }}
5454
{{- end }}
55+
{{- if .Values.controller.terminationGracePeriodSeconds }}
56+
terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}
57+
{{- end }}
5558
serviceAccountName: {{ include "argo-cd.controllerServiceAccountName" . }}
5659
containers:
5760
- args:

charts/argo-cd/templates/argocd-applicationset/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ spec:
5252
{{- with .Values.applicationSet.priorityClassName | default .Values.global.priorityClassName }}
5353
priorityClassName: {{ . }}
5454
{{- end }}
55+
{{- if .Values.applicationSet.terminationGracePeriodSeconds }}
56+
terminationGracePeriodSeconds: {{ .Values.applicationSet.terminationGracePeriodSeconds }}
57+
{{- end }}
5558
serviceAccountName: {{ include "argo-cd.applicationSetServiceAccountName" . }}
5659
containers:
5760
- name: {{ .Values.applicationSet.name }}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{{- if and .Values.notifications.enabled .Values.createClusterRoles }}
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRole
4+
metadata:
5+
name: {{ include "argo-cd.notifications.fullname" . }}
6+
labels:
7+
{{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" .Values.notifications.name) | nindent 4 }}
8+
rules:
9+
{{- with .Values.notifications.clusterRoleRules.rules }}
10+
{{- toYaml . | nindent 2 }}
11+
{{- end }}
12+
- apiGroups:
13+
- "argoproj.io"
14+
resources:
15+
- "applications"
16+
verbs:
17+
- get
18+
- list
19+
- watch
20+
- update
21+
- patch
22+
{{- end }}

0 commit comments

Comments
 (0)