Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: upgrade redis-ha to 4.12.14 & cleanup generate.sh #6021

Merged
merged 1 commit into from
Apr 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions USERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Currently, the following organizations are **officially** using Argo CD:
1. [hipages](https://hipages.com.au/)
1. [Honestbank](https://honestbank.com)
1. [IBM](https://www.ibm.com/)
1. [Index Exchange](https://www.indexexchange.com/)
1. [InsideBoard](https://www.insideboard.com)
1. [Intuit](https://www.intuit.com/)
1. [JovianX](https://www.jovianx.com/)
Expand Down
6 changes: 3 additions & 3 deletions manifests/ha/base/redis-ha/chart/requirements.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: redis-ha
repository: https://dandydeveloper.github.io/charts
version: 4.12.9
digest: sha256:c36edaae2ca31d21c92b162adbbc80091131c534728fb4879927a8f790874d6e
generated: "2021-03-06T11:18:40.670161536+01:00"
version: 4.12.14
digest: sha256:fc0ed1b72121f10a6c50cccc605f73582474d03e1453a9c1e5636b84a0ee829d
generated: "2021-04-12T11:46:20.2865728-04:00"
2 changes: 1 addition & 1 deletion manifests/ha/base/redis-ha/chart/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dependencies:
- name: redis-ha
version: 4.12.9
version: 4.12.14
repository: https://dandydeveloper.github.io/charts
66 changes: 33 additions & 33 deletions manifests/ha/base/redis-ha/chart/upstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,35 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: argocd-redis-ha
namespace: argocd
namespace: "argocd"
labels:
heritage: Helm
release: argocd
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
app: argocd-redis-ha
---
# Source: redis-ha/charts/redis-ha/templates/redis-haproxy-serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: argocd-redis-ha-haproxy
namespace: argocd
namespace: "argocd"
labels:
heritage: Helm
release: argocd
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
app: argocd-redis-ha
---
# Source: redis-ha/charts/redis-ha/templates/redis-ha-configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-redis-ha-configmap
namespace: argocd
namespace: "argocd"
labels:
heritage: Helm
release: argocd
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
app: argocd-redis-ha
data:
redis.conf: |
Expand Down Expand Up @@ -326,8 +326,8 @@ data:
defaults REDIS
mode tcp
timeout connect 4s
timeout server 330s
timeout client 330s
timeout server 6m
timeout client 6m
timeout check 2s

listen health_check_http_url
Expand Down Expand Up @@ -457,11 +457,11 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-redis-ha-health-configmap
namespace: argocd
namespace: "argocd"
labels:
heritage: Helm
release: argocd
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
app: argocd-redis-ha
data:
redis_liveness.sh: |
Expand Down Expand Up @@ -506,12 +506,12 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: argocd-redis-ha
namespace: argocd
namespace: "argocd"
labels:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
rules:
- apiGroups:
- ""
Expand All @@ -525,12 +525,12 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: argocd-redis-ha-haproxy
namespace: argocd
namespace: "argocd"
labels:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
component: argocd-redis-ha-haproxy
rules:
- apiGroups:
Expand All @@ -545,12 +545,12 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: argocd-redis-ha
namespace: argocd
namespace: "argocd"
labels:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
subjects:
- kind: ServiceAccount
name: argocd-redis-ha
Expand All @@ -564,12 +564,12 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: argocd-redis-ha-haproxy
namespace: argocd
namespace: "argocd"
labels:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
component: argocd-redis-ha-haproxy
subjects:
- kind: ServiceAccount
Expand All @@ -584,12 +584,12 @@ apiVersion: v1
kind: Service
metadata:
name: argocd-redis-ha-announce-0
namespace: argocd
namespace: "argocd"
labels:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
spec:
Expand All @@ -614,12 +614,12 @@ apiVersion: v1
kind: Service
metadata:
name: argocd-redis-ha-announce-1
namespace: argocd
namespace: "argocd"
labels:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
spec:
Expand All @@ -644,12 +644,12 @@ apiVersion: v1
kind: Service
metadata:
name: argocd-redis-ha-announce-2
namespace: argocd
namespace: "argocd"
labels:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
spec:
Expand All @@ -674,12 +674,12 @@ apiVersion: v1
kind: Service
metadata:
name: argocd-redis-ha
namespace: argocd
namespace: "argocd"
labels:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
annotations:
spec:
type: ClusterIP
Expand All @@ -702,12 +702,12 @@ apiVersion: v1
kind: Service
metadata:
name: argocd-redis-ha-haproxy
namespace: argocd
namespace: "argocd"
labels:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
component: argocd-redis-ha-haproxy
annotations:
spec:
Expand All @@ -726,12 +726,12 @@ kind: Deployment
apiVersion: apps/v1
metadata:
name: argocd-redis-ha-haproxy
namespace: argocd
namespace: "argocd"
labels:
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
spec:
strategy:
type: RollingUpdate
Expand All @@ -749,7 +749,7 @@ spec:
release: argocd
revision: "1"
annotations:
checksum/config: d2ea567716f714054660c172aa717a4ec9daa16d25dab418d8fd7a0c961b03e3
checksum/config: c55502ce732f78a70658dc77f00c02444cd6b6bede4b270f56d082fdaed1dc5f
spec:
# Needed when using unmodified rbac-setup.yml

Expand Down Expand Up @@ -832,13 +832,13 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
name: argocd-redis-ha-server
namespace: argocd
namespace: "argocd"
labels:
argocd-redis-ha: replica
app: redis-ha
heritage: "Helm"
release: "argocd"
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
annotations:
{}
spec:
Expand Down
4 changes: 4 additions & 0 deletions manifests/ha/base/redis-ha/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ redis-ha:
enabled: true
image:
tag: 2.0.20-alpine
timeout:
server: 6m
client: 6m
checkInterval: 3s
image:
tag: 6.2.1-alpine
sentinel:
Expand Down
5 changes: 1 addition & 4 deletions manifests/ha/base/redis-ha/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ helm template argocd ./chart \
--no-hooks \
>> ./chart/upstream_orig.yaml

sed -e 's/check inter 1s/check inter 3s/' ./chart/upstream_orig.yaml >> ./chart/upstream.yaml && rm ./chart/upstream_orig.yaml
sed -i.bak 's/timeout server 30s/timeout server 6m/' ./chart/upstream.yaml && rm ./chart/upstream.yaml.bak
sed -i.bak 's/timeout client 30s/timeout client 6m/' ./chart/upstream.yaml && rm ./chart/upstream.yaml.bak
sed -i.bak -E 's/^([[:space:]]){8}sentinel replaceme argocd/ bind/' ./chart/upstream.yaml && rm ./chart/upstream.yaml.bak
sed -E 's/^([[:space:]]){8}sentinel replaceme argocd/ bind/' ./chart/upstream_orig.yaml >> ./chart/upstream.yaml && rm ./chart/upstream_orig.yaml
12 changes: 6 additions & 6 deletions manifests/ha/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2142,7 +2142,7 @@ kind: Role
metadata:
labels:
app: redis-ha
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
component: argocd-redis-ha-haproxy
heritage: Helm
release: argocd
Expand Down Expand Up @@ -2302,7 +2302,7 @@ kind: RoleBinding
metadata:
labels:
app: redis-ha
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
component: argocd-redis-ha-haproxy
heritage: Helm
release: argocd
Expand Down Expand Up @@ -2407,7 +2407,7 @@ kind: ConfigMap
metadata:
labels:
app: argocd-redis-ha
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
heritage: Helm
release: argocd
name: argocd-redis-ha-health-configmap
Expand Down Expand Up @@ -2443,8 +2443,8 @@ data:
defaults REDIS
mode tcp
timeout connect 4s
timeout server 330s
timeout client 330s
timeout server 6m
timeout client 6m
timeout check 2s

listen health_check_http_url
Expand Down Expand Up @@ -3202,7 +3202,7 @@ spec:
template:
metadata:
annotations:
checksum/config: d2ea567716f714054660c172aa717a4ec9daa16d25dab418d8fd7a0c961b03e3
checksum/config: c55502ce732f78a70658dc77f00c02444cd6b6bede4b270f56d082fdaed1dc5f
labels:
app.kubernetes.io/name: argocd-redis-ha-haproxy
name: argocd-redis-ha-haproxy
Expand Down
12 changes: 6 additions & 6 deletions manifests/ha/namespace-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2142,7 +2142,7 @@ kind: Role
metadata:
labels:
app: redis-ha
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
component: argocd-redis-ha-haproxy
heritage: Helm
release: argocd
Expand Down Expand Up @@ -2251,7 +2251,7 @@ kind: RoleBinding
metadata:
labels:
app: redis-ha
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
component: argocd-redis-ha-haproxy
heritage: Helm
release: argocd
Expand Down Expand Up @@ -2322,7 +2322,7 @@ kind: ConfigMap
metadata:
labels:
app: argocd-redis-ha
chart: redis-ha-4.12.9
chart: redis-ha-4.12.14
heritage: Helm
release: argocd
name: argocd-redis-ha-health-configmap
Expand Down Expand Up @@ -2358,8 +2358,8 @@ data:
defaults REDIS
mode tcp
timeout connect 4s
timeout server 330s
timeout client 330s
timeout server 6m
timeout client 6m
timeout check 2s

listen health_check_http_url
Expand Down Expand Up @@ -3117,7 +3117,7 @@ spec:
template:
metadata:
annotations:
checksum/config: d2ea567716f714054660c172aa717a4ec9daa16d25dab418d8fd7a0c961b03e3
checksum/config: c55502ce732f78a70658dc77f00c02444cd6b6bede4b270f56d082fdaed1dc5f
labels:
app.kubernetes.io/name: argocd-redis-ha-haproxy
name: argocd-redis-ha-haproxy
Expand Down