Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Use go 1.11 compatible strings.Replace
Browse files Browse the repository at this point in the history
  • Loading branch information
carolynvs-msft committed Jun 17, 2019
1 parent 562305a commit d6b2c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/driver/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func generateFileSecret(files map[string]string) (*v1.Secret, []v1.VolumeMount)

i := 0
for path, contents := range files {
key := strings.ReplaceAll(filepath.ToSlash(path), "/", "_")
key := strings.Replace(filepath.ToSlash(path), "/", "_", -1)
data[key] = contents
mounts[i] = v1.VolumeMount{
Name: k8sFileSecretVolume,
Expand Down

0 comments on commit d6b2c0a

Please sign in to comment.