[mysqldump] Only use the bucketname for the permission and not the folder inside (#10896)

Signed-off-by: tim.smyth <tim.smyth@kiwigrid.com>
This commit is contained in:
timmiotool
2019-01-25 06:41:17 -08:00
committed by Kubernetes Prow Robot
parent b3b11e3844
commit 74a7b1728b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 2.0.0
description: A Helm chart to help backup MySQL databases using mysqldump
name: mysqldump
version: 2.1.2
version: 2.1.3
keywords:
- mysql
- mysqldump
@@ -14,7 +14,7 @@ spec:
serviceAccountDescription: Service account for accessing a storage bucket for mysql backups
secretName: {{ template "mysqldump.gcpsecretName" . }}
bindings:
- resource: buckets/{{ .Values.upload.googlestoragebucket.bucketname | replace "gs://" "" }}
- resource: buckets/{{ index (splitList "/" (.Values.upload.googlestoragebucket.bucketname | replace "gs://" "")) 0 }}
roles:
- roles/storage.objectAdmin
{{ end }}