Skip to content

Commit 659ff62

Browse files
bump dind-volume-cleanup (#335)
* bump dind-volume-cleanup * bump dind-volume-cleanup and fix rbac
1 parent e7a944b commit 659ff62

File tree

11 files changed

+30
-12
lines changed

11 files changed

+30
-12
lines changed

.deploy/cf-runtime/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: cf-runtime
33
description: A Helm chart for Codefresh Runner
44
type: application
5-
version: 1.9.11
6-
appVersion: "1.9.11"
5+
version: 1.9.12
6+
appVersion: "1.9.12"

.deploy/cf-runtime/templates/volume-provisioner/_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ codefresh.io/application: pv-cleanup
8383

8484
{{- define "cf-vp.docker-image-cleanup-cron" -}}
8585
{{- if ne .Values.dockerRegistry ""}}
86-
{{- .Values.dockerRegistry }}/codefresh/dind-volume-cleanup
87-
{{- else }}codefresh/dind-volume-cleanup
86+
{{- .Values.dockerRegistry }}/codefresh/dind-volume-cleanup:1.2.0
87+
{{- else }}codefresh/dind-volume-cleanup:1.2.0
8888
{{- end}}
8989
{{- end }}

.deploy/cf-runtime/templates/volume-provisioner/cluster-role.dind-volume-provisioner.vp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ rules:
99
verbs: [ "get", "list", "watch", "create", "delete", "patch" ]
1010
- apiGroups: [ "" ]
1111
resources: [ "persistentvolumeclaims" ]
12-
verbs: [ "get", "list", "watch", "update" ]
12+
verbs: [ "get", "list", "watch", "update", "delete" ]
1313
- apiGroups: [ "storage.k8s.io" ]
1414
resources: [ "storageclasses" ]
1515
verbs: [ "get", "list", "watch" ]

.deploy/cf-runtime/templates/volume-provisioner/cron-job.dind-volume-cleanup.vp.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@ spec:
2222
env:
2323
- name: PROVISIONED_BY
2424
value: {{ include "cf-vp.volumeProvisionerName" . }}
25+
securityContext:
26+
fsGroup: 3000
27+
runAsGroup: 3000
28+
runAsUser: 3000
2529
{{- end }}

.deploy/cf-runtime/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dockerRegistry: "quay.io" # Registry prefix for the runtime images (default quay
2424
newRelicLicense: "" # NEWRELIC_LICENSE_KEY (for app-proxy and runner deployments)
2525

2626
runner: # Runner Deployment
27-
image: "codefresh/venona:1.9.11"
27+
image: "codefresh/venona:1.9.12"
2828
env: {}
2929
## e.g:
3030
# env:

venona/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.11
1+
1.9.12

venonactl/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.11
1+
1.9.12

venonactl/pkg/store/store.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ func (s *Values) BuildValues() map[string]interface{} {
180180
"MountAzureJson": false,
181181
},
182182
"LocalVolumeMonitor": s.LocalVolumeMonitor.Resources,
183+
"VolumeCleaner": map[string]interface{}{
184+
"Image": map[string]string{
185+
"Name": "codefresh/dind-volume-cleanup",
186+
"Tag": "1.2.0",
187+
},
188+
},
183189
},
184190
"Monitor": map[string]interface{}{
185191
"Enabled": true,

venonactl/pkg/templates/kubernetes/cluster-role.dind-volume-provisioner.vp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ rules:
1111
verbs: ["get", "list", "watch", "create", "delete", "patch"]
1212
- apiGroups: [""]
1313
resources: ["persistentvolumeclaims"]
14-
verbs: ["get", "list", "watch", "update"]
14+
verbs: ["get", "list", "watch", "update", "delete"]
1515
- apiGroups: ["storage.k8s.io"]
1616
resources: ["storageclasses"]
1717
verbs: ["get", "list", "watch"]

venonactl/pkg/templates/kubernetes/cron-job.dind-volume-cleanup.vp.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ spec:
2020
restartPolicy: Never
2121
containers:
2222
- name: dind-volume-cleanup
23-
image: {{ if ne .DockerRegistry ""}} {{- .DockerRegistry }}/codefresh/dind-volume-cleanup {{- else }}codefresh/dind-volume-cleanup {{- end}}
23+
image: {{ if ne .DockerRegistry ""}} {{- .DockerRegistry }}/{{ .Storage.VolumeCleaner.Image.Name }}:{{ .Storage.VolumeCleaner.Image.Tag }} {{- else }}{{- .Storage.VolumeCleaner.Image.Name }}:{{ .Storage.VolumeCleaner.Image.Tag }} {{- end}}
2424
env:
2525
- name: PROVISIONED_BY
2626
value: codefresh.io/dind-volume-provisioner-{{ .AppName }}-{{ .Namespace }}
27+
securityContext:
28+
fsGroup: 3000
29+
runAsGroup: 3000
30+
runAsUser: 3000
2731
{{- end }}

0 commit comments

Comments
 (0)