Skip to content

Commit fcb4f4d

Browse files
authored
Merge pull request #554 from slok/slok/fenix
Update deployment manifests Git-sync from v3 to v4
2 parents 2fc1fd0 + 9e33b0a commit fcb4f4d

File tree

8 files changed

+32
-30
lines changed

8 files changed

+32
-30
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
- Update to Go 1.24.
1212
- Update to Kubernetes v1.32.
1313
- Update all other dependencies to latest versions.
14+
- Migrate deployment manifests `git-sync` to v4.
1415

1516
### Fixes
1617

1718
- Allow spec files with CRLF.
19+
- Helm chart tolerations
1820

1921
## [v0.11.0] - 2022-10-22
2022

deploy/kubernetes/helm/sloth/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ description: Base chart for Sloth.
44
type: application
55
home: https://github.com/slok/sloth
66
kubeVersion: ">= 1.19.0-0"
7-
version: 0.7.1
7+
version: 0.8.0

deploy/kubernetes/helm/sloth/templates/deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ spec:
9595
image: {{ .Values.commonPlugins.image.repository }}:{{ .Values.commonPlugins.image.tag }}
9696
args:
9797
- --repo={{.Values.commonPlugins.gitRepo.url}}
98-
- --branch={{.Values.commonPlugins.gitRepo.branch}}
99-
- --wait=30
98+
- --ref={{.Values.commonPlugins.gitRepo.branch}}
99+
- --period=30s
100100
- --webhook-url=http://localhost:8082/-/reload
101101
volumeMounts:
102102
- name: sloth-common-sli-plugins
103103
# Default path for git-sync.
104-
mountPath: /tmp/git
104+
mountPath: /git
105105
{{- with .Values.securityContext.container }}
106106
securityContext:
107107
{{- toYaml . | nindent 12 }}

deploy/kubernetes/helm/sloth/tests/testdata/output/deployment_custom.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,16 @@ spec:
6868
cpu: 5m
6969
memory: 75Mi
7070
- name: git-sync-plugins
71-
image: k8s.gcr.io/git-sync/git-sync:v3.6.1
71+
image: registry.k8s.io/git-sync/git-sync:v4.4.0
7272
args:
7373
- --repo=https://github.com/slok/sloth-test-common-sli-plugins
74-
- --branch=main
75-
- --wait=30
74+
- --ref=main
75+
- --period=30s
7676
- --webhook-url=http://localhost:8082/-/reload
7777
volumeMounts:
7878
- name: sloth-common-sli-plugins
7979
# Default path for git-sync.
80-
mountPath: /tmp/git
80+
mountPath: /git
8181
securityContext:
8282
allowPrivilegeEscalation: false
8383
resources:

deploy/kubernetes/helm/sloth/tests/testdata/output/deployment_default.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ spec:
5252
cpu: 5m
5353
memory: 75Mi
5454
- name: git-sync-plugins
55-
image: k8s.gcr.io/git-sync/git-sync:v3.6.1
55+
image: registry.k8s.io/git-sync/git-sync:v4.4.0
5656
args:
5757
- --repo=https://github.com/slok/sloth-common-sli-plugins
58-
- --branch=main
59-
- --wait=30
58+
- --ref=main
59+
- --period=30s
6060
- --webhook-url=http://localhost:8082/-/reload
6161
volumeMounts:
6262
- name: sloth-common-sli-plugins
6363
# Default path for git-sync.
64-
mountPath: /tmp/git
64+
mountPath: /git
6565
resources:
6666
limits:
6767
cpu: 50m

deploy/kubernetes/helm/sloth/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ sloth:
3333
commonPlugins:
3434
enabled: true
3535
image:
36-
repository: k8s.gcr.io/git-sync/git-sync
37-
tag: v3.6.1
36+
repository: registry.k8s.io/git-sync/git-sync
37+
tag: v4.4.0
3838
gitRepo:
3939
url: https://github.com/slok/sloth-common-sli-plugins
4040
branch: main

deploy/kubernetes/raw/sloth-with-common-plugins.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
name: sloth
77
namespace: monitoring
88
labels:
9-
helm.sh/chart: sloth-0.7.0
9+
helm.sh/chart: sloth-0.8.0
1010
app.kubernetes.io/managed-by: Helm
1111
app: sloth
1212
app.kubernetes.io/name: sloth
@@ -18,7 +18,7 @@ kind: ClusterRole
1818
metadata:
1919
name: sloth
2020
labels:
21-
helm.sh/chart: sloth-0.7.0
21+
helm.sh/chart: sloth-0.8.0
2222
app.kubernetes.io/managed-by: Helm
2323
app: sloth
2424
app.kubernetes.io/name: sloth
@@ -38,7 +38,7 @@ kind: ClusterRoleBinding
3838
metadata:
3939
name: sloth
4040
labels:
41-
helm.sh/chart: sloth-0.7.0
41+
helm.sh/chart: sloth-0.8.0
4242
app.kubernetes.io/managed-by: Helm
4343
app: sloth
4444
app.kubernetes.io/name: sloth
@@ -59,7 +59,7 @@ metadata:
5959
name: sloth
6060
namespace: monitoring
6161
labels:
62-
helm.sh/chart: sloth-0.7.0
62+
helm.sh/chart: sloth-0.8.0
6363
app.kubernetes.io/managed-by: Helm
6464
app: sloth
6565
app.kubernetes.io/name: sloth
@@ -74,7 +74,7 @@ spec:
7474
template:
7575
metadata:
7676
labels:
77-
helm.sh/chart: sloth-0.7.0
77+
helm.sh/chart: sloth-0.8.0
7878
app.kubernetes.io/managed-by: Helm
7979
app: sloth
8080
app.kubernetes.io/name: sloth
@@ -105,16 +105,16 @@ spec:
105105
cpu: 5m
106106
memory: 75Mi
107107
- name: git-sync-plugins
108-
image: k8s.gcr.io/git-sync/git-sync:v3.6.1
108+
image: registry.k8s.io/git-sync/git-sync:v4.4.0
109109
args:
110110
- --repo=https://github.com/slok/sloth-common-sli-plugins
111-
- --branch=main
112-
- --wait=30
111+
- --ref=main
112+
- --period=30s
113113
- --webhook-url=http://localhost:8082/-/reload
114114
volumeMounts:
115115
- name: sloth-common-sli-plugins
116116
# Default path for git-sync.
117-
mountPath: /tmp/git
117+
mountPath: /git
118118
resources:
119119
limits:
120120
cpu: 50m
@@ -133,7 +133,7 @@ metadata:
133133
name: sloth
134134
namespace: monitoring
135135
labels:
136-
helm.sh/chart: sloth-0.7.0
136+
helm.sh/chart: sloth-0.8.0
137137
app.kubernetes.io/managed-by: Helm
138138
app: sloth
139139
app.kubernetes.io/name: sloth

deploy/kubernetes/raw/sloth.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
name: sloth
77
namespace: monitoring
88
labels:
9-
helm.sh/chart: sloth-0.7.0
9+
helm.sh/chart: sloth-0.8.0
1010
app.kubernetes.io/managed-by: Helm
1111
app: sloth
1212
app.kubernetes.io/name: sloth
@@ -18,7 +18,7 @@ kind: ClusterRole
1818
metadata:
1919
name: sloth
2020
labels:
21-
helm.sh/chart: sloth-0.7.0
21+
helm.sh/chart: sloth-0.8.0
2222
app.kubernetes.io/managed-by: Helm
2323
app: sloth
2424
app.kubernetes.io/name: sloth
@@ -38,7 +38,7 @@ kind: ClusterRoleBinding
3838
metadata:
3939
name: sloth
4040
labels:
41-
helm.sh/chart: sloth-0.7.0
41+
helm.sh/chart: sloth-0.8.0
4242
app.kubernetes.io/managed-by: Helm
4343
app: sloth
4444
app.kubernetes.io/name: sloth
@@ -59,7 +59,7 @@ metadata:
5959
name: sloth
6060
namespace: monitoring
6161
labels:
62-
helm.sh/chart: sloth-0.7.0
62+
helm.sh/chart: sloth-0.8.0
6363
app.kubernetes.io/managed-by: Helm
6464
app: sloth
6565
app.kubernetes.io/name: sloth
@@ -74,7 +74,7 @@ spec:
7474
template:
7575
metadata:
7676
labels:
77-
helm.sh/chart: sloth-0.7.0
77+
helm.sh/chart: sloth-0.8.0
7878
app.kubernetes.io/managed-by: Helm
7979
app: sloth
8080
app.kubernetes.io/name: sloth
@@ -108,7 +108,7 @@ metadata:
108108
name: sloth
109109
namespace: monitoring
110110
labels:
111-
helm.sh/chart: sloth-0.7.0
111+
helm.sh/chart: sloth-0.8.0
112112
app.kubernetes.io/managed-by: Helm
113113
app: sloth
114114
app.kubernetes.io/name: sloth

0 commit comments

Comments
 (0)