github.com/apprenda/kismatic@v1.12.0/integration-tests/nfsshare.go (about)

     1  package integration_tests
     2  
     3  import . "github.com/onsi/ginkgo"
     4  
     5  func testNFSShare(aws infrastructureProvisioner, distro linuxDistro) {
     6  	nfsServers, err := aws.CreateNFSServers()
     7  	FailIfError(err, "Couldn't set up NFS shares")
     8  
     9  	WithMiniInfrastructure(distro, aws, func(node NodeDeets, sshKey string) {
    10  		By("Setting up a plan file with NFS Shares and no storage")
    11  		plan := PlanAWS{
    12  			Etcd:         []NodeDeets{node},
    13  			Master:       []NodeDeets{node},
    14  			Worker:       []NodeDeets{node},
    15  			LoadBalancer: node.PublicIP,
    16  			SSHKeyFile:   sshKey,
    17  			SSHUser:      node.SSHUser,
    18  			NFSVolume: []NFSVolume{
    19  				{Host: nfsServers[0].IpAddress},
    20  			},
    21  		}
    22  
    23  		err := installKismaticWithPlan(plan)
    24  		FailIfError(err, "Error installing cluster with NFS shares")
    25  	})
    26  }