Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions pkg/nas/csi_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ package nas

import (
"context"
"errors"

"github.com/container-storage-interface/spec/lib/go/csi"
cnfsv1beta1 "github.com/kubernetes-sigs/alibaba-cloud-csi-driver/pkg/cnfs/v1beta1"
"github.com/kubernetes-sigs/alibaba-cloud-csi-driver/pkg/nas/internal"
)

Expand All @@ -19,7 +17,6 @@ func NewCSIAgent(socketPath string) *CSIAgent {
AgentMode: true,
EnablePortCheck: true,
MountProxySocket: socketPath,
CNFSGetter: unsupportedCNFSGetter{},
}
ns := newNodeServer(config)
return &CSIAgent{
Expand All @@ -38,9 +35,3 @@ func (a *CSIAgent) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpubli
func (a *CSIAgent) NodeGetCapabilities(ctx context.Context, req *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error) {
return a.ns.NodeGetCapabilities(ctx, req)
}

type unsupportedCNFSGetter struct{}

func (g unsupportedCNFSGetter) GetCNFS(ctx context.Context, name string) (*cnfsv1beta1.ContainerNetworkFileSystem, error) {
return nil, errors.New("CNFS not supported in csi-agent")
}