Skip to content

Commit

Permalink
Fix missing func MountSensitiveWithoutSystemdWithMountFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
hakman committed Oct 5, 2021
1 parent 97ecd44 commit a196e95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions protokube/pkg/hostmount/nsenter_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,7 @@ func (n *Mounter) Unmount(target string) error {
func (n *Mounter) MountSensitiveWithoutSystemd(source string, target string, fstype string, options []string, sensitiveOptions []string) error {
return fmt.Errorf("MountSensitiveWithoutSystemd not implemented for containerized mounter")
}

func (n *Mounter) MountSensitiveWithoutSystemdWithMountFlags(source string, target string, fstype string, options []string, sensitiveOptions []string, mountFlags []string) error {
return fmt.Errorf("MountSensitiveWithoutSystemdWithMountFlags not implemented for containerized mounter")
}
5 changes: 5 additions & 0 deletions protokube/pkg/hostmount/nsenter_unsupported.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ func (n *Mounter) MountSensitiveWithoutSystemd(source string, target string, fst
return errUnsupported
}

// MountSensitiveWithoutSystemdWithMountFlags always returns an error on unsupported platforms
func (n *Mounter) MountSensitiveWithoutSystemdWithMountFlags(source string, target string, fstype string, options []string, sensitiveOptions []string, mountFlags []string) error {
return errUnsupported
}

// Unmount always returns an error on unsupported platforms
func (mounter *Mounter) Unmount(target string) error {
return errUnsupported
Expand Down

0 comments on commit a196e95

Please sign in to comment.