Skip to content

Commit 080eea2

Browse files
committed
Merge remote-tracking branch 'origin/main' into ci-update-cert-manager-to-v1.17.2
2 parents 5a20bae + f782fcb commit 080eea2

File tree

139 files changed

+6911
-946
lines changed

Some content is hidden

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

139 files changed

+6911
-946
lines changed

apps.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ appsInfo:
1313
integration: Alertmanager can be activated to send alerts to configured receivers. It is configured by APL to use the global values found under settings/alerts. A team can override global settings to send alerts to their own endpoints.
1414
argocd:
1515
title: Argo CD
16-
appVersion: 2.10.4
16+
appVersion: 3.0.3
1717
repo: https://github.com/argoproj/argo-helm
1818
maintainers: Argo Project
1919
relatedLinks:

chart/chart-index/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version: 0.1.0
66
dependencies:
77
- name: argo-cd
88
alias: argocd
9-
version: 6.7.3
9+
version: 8.0.9
1010
repository: https://argoproj.github.io/argo-helm
1111
- name: cert-manager
1212
version: v1.17.2

charts/argocd/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: redis-ha
33
repository: https://dandydeveloper.github.io/charts/
4-
version: 4.26.1
5-
digest: sha256:d72c308ab0eef4233e25bfc3f8fc97cf9b02a9c5d0186ea89e2f8fb332cb9c41
6-
generated: "2024-02-18T19:42:53.135599+02:00"
4+
version: 4.33.2
5+
digest: sha256:1ce334c23fe53427c771277cc7cecd4143226aba04c8a6c52513042a96e7ff5d
6+
generated: "2025-03-27T09:46:27.113833-07:00"

charts/argocd/Chart.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
annotations:
22
artifacthub.io/changes: |
33
- kind: changed
4-
description: Bump argo-cd to v2.10.4
4+
description: Bump dex to v2.43.1
55
artifacthub.io/signKey: |
66
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
77
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
88
apiVersion: v2
9-
appVersion: v2.10.4
9+
appVersion: v3.0.3
1010
dependencies:
1111
- condition: redis-ha.enabled
1212
name: redis-ha
1313
repository: https://dandydeveloper.github.io/charts/
14-
version: 4.26.1
14+
version: 4.33.2
1515
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool
1616
for Kubernetes.
1717
home: https://github.com/argoproj/argo-helm
@@ -20,12 +20,12 @@ keywords:
2020
- argoproj
2121
- argocd
2222
- gitops
23-
kubeVersion: '>=1.23.0-0'
23+
kubeVersion: '>=1.25.0-0'
2424
maintainers:
2525
- name: argoproj
2626
url: https://argoproj.github.io/
2727
name: argo-cd
2828
sources:
2929
- https://github.com/argoproj/argo-helm/tree/main/charts/argo-cd
3030
- https://github.com/argoproj/argo-cd
31-
version: 6.7.3
31+
version: 8.0.9

charts/argocd/README.md

Lines changed: 281 additions & 28 deletions
Large diffs are not rendered by default.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/
24+
ci/
25+
*.gotmpl
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
appVersion: 7.2.4
2+
appVersion: 7.2.7
33
description: This Helm chart provides a highly available Redis implementation with
44
a master/slave configuration and uses Sentinel sidecars for failover management
55
home: http://redis.io/
@@ -9,13 +9,11 @@ keywords:
99
- keyvalue
1010
- database
1111
maintainers:
12-
13-
name: ssalaues
1412
1513
name: dandydeveloper
1614
name: redis-ha
1715
sources:
1816
- https://redis.io/download
1917
- https://github.com/DandyDeveloper/charts/blob/master/charts/redis-ha
2018
- https://github.com/oliver006/redis_exporter
21-
version: 4.26.1
19+
version: 4.33.2

charts/argocd/charts/redis-ha/README.md

Lines changed: 288 additions & 210 deletions
Large diffs are not rendered by default.

charts/argocd/charts/redis-ha/ci/haproxy-enabled-values.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

charts/argocd/charts/redis-ha/templates/_configs.tpl

Lines changed: 45 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@
2727
{{- end }}
2828
{{- end }}
2929
{{- range $key, $value := .Values.redis.config }}
30+
{{- if kindIs "slice" $value }}
31+
{{- range $value }}
32+
{{ $key }} {{ . }}
33+
{{- end }}
34+
{{- else }}
3035
{{ $key }} {{ $value }}
36+
{{- end }}
3137
{{- end }}
3238
{{- if .Values.auth }}
3339
requirepass replace-default-auth
@@ -327,7 +333,7 @@
327333
identify_announce_ip
328334

329335
if [ -z "${ANNOUNCE_IP}" ]; then
330-
"Error: Could not resolve the announce ip for this pod."
336+
"Error: Could not resolve the announce ip for this pod"
331337
exit 1
332338
elif [ "${MASTER}" ]; then
333339
find_master
@@ -459,6 +465,7 @@
459465
identify_announce_ip
460466
done
461467

468+
trap "exit 0" TERM
462469
while true; do
463470
sleep {{ .Values.splitBrainDetection.interval }}
464471

@@ -527,7 +534,7 @@
527534
{{- if .Values.haproxy.tls.enabled }}
528535
bind {{ if .Values.haproxy.IPv6.enabled }}[::]{{ end }}:{{ $root.Values.haproxy.containerPort }} ssl crt {{ .Values.haproxy.tls.certMountPath }}{{ .Values.haproxy.tls.keyName }} {{ if .Values.haproxy.IPv6.enabled }}v4v6{{ end }}
529536
{{ else }}
530-
bind {{ if .Values.haproxy.IPv6.enabled }}[::]{{ end }}:{{ $root.Values.redis.port }} {{ if .Values.haproxy.IPv6.enabled }}v4v6{{ end }}
537+
bind {{ if .Values.haproxy.IPv6.enabled }}[::]{{ end }}:{{ if ne (int $root.Values.redis.port) 0 }}{{ $root.Values.redis.port }}{{ else }}{{ $root.Values.redis.tlsPort }}{{ end }} {{ if .Values.haproxy.IPv6.enabled }}v4v6{{ end }}
531538
{{- end }}
532539
use_backend bk_redis_master
533540
{{- if .Values.haproxy.readOnly.enabled }}
@@ -636,11 +643,12 @@
636643
{{- end}}
637644
ping
638645
)
639-
if [ "$response" != "PONG" ] && [ "${response:0:7}" != "LOADING" ] ; then
640-
echo "$response"
641-
exit 1
642-
fi
643646
echo "response=$response"
647+
case $response in
648+
PONG|LOADING*) ;;
649+
*) exit 1 ;;
650+
esac
651+
exit 0
644652
{{- end }}
645653

646654
{{- define "redis_readiness.sh" }}
@@ -661,10 +669,39 @@
661669
ping
662670
)
663671
if [ "$response" != "PONG" ] ; then
664-
echo "$response"
672+
echo "ping=$response"
673+
exit 1
674+
fi
675+
676+
response=$(
677+
redis-cli \
678+
{{- if .Values.auth }}
679+
-a "${AUTH}" --no-auth-warning \
680+
{{- end }}
681+
-h localhost \
682+
{{- if ne (int .Values.redis.port) 0 }}
683+
-p {{ .Values.redis.port }} \
684+
{{- else }}
685+
-p {{ .Values.redis.tlsPort }} ${TLS_CLIENT_OPTION} \
686+
{{- end}}
687+
role
688+
)
689+
role=$( echo "$response" | sed "1!d" )
690+
if [ "$role" = "master" ]; then
691+
echo "role=$role"
692+
exit 0
693+
elif [ "$role" = "slave" ]; then
694+
repl=$( echo "$response" | sed "4!d" )
695+
echo "role=$role; repl=$repl"
696+
if [ "$repl" = "connected" ]; then
697+
exit 0
698+
else
699+
exit 1
700+
fi
701+
else
702+
echo "role=$role"
665703
exit 1
666704
fi
667-
echo "response=$response"
668705
{{- end }}
669706

670707
{{- define "sentinel_liveness.sh" }}

charts/argocd/charts/redis-ha/templates/_helpers.tpl

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,39 @@ Return the appropriate apiVersion for poddisruptionbudget.
9292
{{- print "policy/v1beta1" -}}
9393
{{- end -}}
9494
{{- end -}}
95+
96+
{{/*
97+
Return true if the detected platform is Openshift
98+
Usage:
99+
{{- include "common.compatibility.isOpenshift" . -}}
100+
*/}}
101+
{{- define "compatibility.isOpenshift" -}}
102+
{{- if .Capabilities.APIVersions.Has "security.openshift.io/v1" -}}
103+
{{- true -}}
104+
{{- end -}}
105+
{{- end -}}
106+
107+
{{/*
108+
Render a compatible securityContext depending on the platform. By default it is maintained as it is. In other platforms like Openshift we remove default user/group values that do not work out of the box with the restricted-v1 SCC
109+
Usage:
110+
{{- include "compatibility.renderSecurityContext" (dict "secContext" .Values.containerSecurityContext "context" $) -}}
111+
*/}}
112+
{{- define "compatibility.renderSecurityContext" -}}
113+
{{- $adaptedContext := .secContext -}}
114+
115+
{{- if (((.context.Values.global).compatibility).openshift) -}}
116+
{{- if or (eq .context.Values.global.compatibility.openshift.adaptSecurityContext "force") (and (eq .context.Values.global.compatibility.openshift.adaptSecurityContext "auto") (include "compatibility.isOpenshift" .context)) -}}
117+
{{/* Remove incompatible user/group values that do not work in Openshift out of the box */}}
118+
{{- $adaptedContext = omit $adaptedContext "fsGroup" "runAsUser" "runAsGroup" -}}
119+
{{- if not .secContext.seLinuxOptions -}}
120+
{{/* If it is an empty object, we remove it from the resulting context because it causes validation issues */}}
121+
{{- $adaptedContext = omit $adaptedContext "seLinuxOptions" -}}
122+
{{- end -}}
123+
{{- end -}}
124+
{{- end -}}
125+
{{/* Remove fields that are disregarded when running the container in privileged mode */}}
126+
{{- if $adaptedContext.privileged -}}
127+
{{- $adaptedContext = omit $adaptedContext "capabilities" "seLinuxOptions" -}}
128+
{{- end -}}
129+
{{- omit $adaptedContext "enabled" | toYaml -}}
130+
{{- end -}}

charts/argocd/charts/redis-ha/templates/redis-ha-network-policy.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ spec:
3535
protocol: TCP
3636
- port: {{ .Values.sentinel.port }}
3737
protocol: TCP
38-
- to:
39-
- namespaceSelector: {}
40-
ports:
41-
- port: 53
42-
protocol: UDP
43-
- port: 53
44-
protocol: TCP
4538
{{- range $rule := .Values.networkPolicy.egressRules }}
4639
- to:
4740
{{ (tpl (toYaml $rule.selectors) $) | indent 7 }}

charts/argocd/charts/redis-ha/templates/redis-ha-serviceaccount.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ metadata:
1212
{{- range $key, $value := .Values.extraLabels }}
1313
{{ $key }}: {{ $value | quote }}
1414
{{- end }}
15+
{{- if .Values.serviceAccount.annotations }}
16+
annotations:
17+
{{ toYaml .Values.serviceAccount.annotations | indent 4 }}
18+
{{- end }}
1519
{{- if or .Values.auth .Values.sentinel.auth }}
1620
secrets:
1721
{{- end }}

charts/argocd/charts/redis-ha/templates/redis-ha-servicemonitor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and ( .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" ) ( .Values.exporter.serviceMonitor.enabled ) ( .Values.exporter.enabled ) }}
1+
{{- if and ( or .Values.exporter.serviceMonitor.disableAPICheck ( .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" ) ) ( .Values.exporter.serviceMonitor.enabled ) ( .Values.exporter.enabled ) }}
22
apiVersion: monitoring.coreos.com/v1
33
kind: ServiceMonitor
44
metadata:

0 commit comments

Comments
 (0)