k# This is a combination of 2 commits.

chore: fix Windows test failure

fix windows tests
This commit is contained in:
andyzhangx 2021-12-30 11:38:47 +00:00
parent 45e550847c
commit 2d38d5c6b5
5 changed files with 19 additions and 4 deletions

View File

@ -19,7 +19,7 @@ jobs:
- name: Check deploy folder
run: |
pluto detect-files -d deploy
pluto detect-files -d deploy --ignore-deprecations --ignore-removals
- name: Check example folder
run: |

View File

@ -9,6 +9,12 @@ jobs:
name: Build
runs-on: ubuntu-18.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16
id: go
- name: Checkout code
uses: actions/checkout@v2

View File

@ -11,10 +11,11 @@ jobs:
platform: [windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
go-version: ^1.16
id: go
- name: Checkout code
uses: actions/checkout@v2
- name: Build Test

View File

@ -255,6 +255,10 @@ func (mounter *csiProxyMounterV1Beta) MountSensitiveWithoutSystemd(source string
return fmt.Errorf("MountSensitiveWithoutSystemd not implemented for CSIProxyMounterV1Beta")
}
func (mounter *csiProxyMounterV1Beta) MountSensitiveWithoutSystemdWithMountFlags(source string, target string, fstype string, options []string, sensitiveOptions []string, mountFlags []string) error {
return mounter.MountSensitive(source, target, fstype, options, sensitiveOptions /* sensitiveOptions */)
}
// NewCSIProxyMounter - creates a new CSI Proxy mounter struct which encompassed all the
// clients to the CSI proxy - filesystem, disk and volume clients.
func NewCSIProxyMounterV1Beta() (*csiProxyMounterV1Beta, error) {

View File

@ -280,6 +280,10 @@ func (mounter *csiProxyMounter) MountSensitiveWithoutSystemd(source string, targ
return fmt.Errorf("MountSensitiveWithoutSystemd not implemented for CSIProxyMounter")
}
func (mounter *csiProxyMounter) MountSensitiveWithoutSystemdWithMountFlags(source string, target string, fstype string, options []string, sensitiveOptions []string, mountFlags []string) error {
return mounter.MountSensitive(source, target, fstype, options, sensitiveOptions /* sensitiveOptions */)
}
// NewCSIProxyMounter - creates a new CSI Proxy mounter struct which encompassed all the
// clients to the CSI proxy - filesystem, disk and volume clients.
func NewCSIProxyMounter() (*csiProxyMounter, error) {