Skip to content

Commit

Permalink
test linux e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
boddumanohar committed May 24, 2021
1 parent d6a35e6 commit 885eac9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Binary file modified charts/latest/csi-driver-smb-v0.7.0.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{ include "smb.labels" . | indent 6 }}
app: csi-smb-controller
spec:
dnsPolicy: ClusterFirstWithHostNet
serviceAccountName: csi-smb-controller-sa
nodeSelector:
kubernetes.io/os: linux
Expand Down Expand Up @@ -96,6 +97,8 @@ spec:
env:
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
securityContext:
privileged: true
volumeMounts:
- mountPath: /csi
name: socket-dir
Expand Down
3 changes: 3 additions & 0 deletions deploy/csi-smb-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spec:
labels:
app: csi-smb-controller
spec:
dnsPolicy: ClusterFirstWithHostNet
serviceAccountName: csi-smb-controller-sa
nodeSelector:
kubernetes.io/os: linux
Expand Down Expand Up @@ -89,6 +90,8 @@ spec:
env:
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
securityContext:
privileged: true
volumeMounts:
- mountPath: /csi
name: socket-dir
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ var _ = ginkgo.BeforeSuite(func() {
gomega.Expect(err).NotTo(gomega.HaveOccurred())

smbPublicIP := strings.TrimSuffix(string(output), "\n")
source := `\\` + smbPublicIP + `\share`
source := `//` + smbPublicIP + `/share`

log.Printf("use source on Windows: %v\n", source)
defaultStorageClassParameters["source"] = source
Expand Down

0 comments on commit 885eac9

Please sign in to comment.