package integration

import . "github.com/onsi/ginkgo"

func testNFSShare(aws infrastructureProvisioner, distro linuxDistro) {
	nfsServers, err := aws.CreateNFSServers()
	FailIfError(err, "Couldn't set up NFS shares")

	WithMiniInfrastructure(distro, aws, func(node NodeDeets, sshKey string) {
		By("Setting up a plan file with NFS Shares and no storage")
		plan := PlanAWS{
			Etcd:                []NodeDeets{node},
			Master:              []NodeDeets{node},
			Worker:              []NodeDeets{node},
			MasterNodeFQDN:      node.Hostname,
			MasterNodeShortName: node.Hostname,
			SSHKeyFile:          sshKey,
			SSHUser:             node.SSHUser,
			NFSVolume: []NFSVolume{
				{Host: nfsServers[0].IpAddress},
			},
		}

		err := installKismaticWithPlan(plan, sshKey)
		FailIfError(err, "Error installing cluster with NFS shares")
	})
}

package integration

import . "github.com/onsi/ginkgo"

func testNFSShare(aws infrastructureProvisioner, distro linuxDistro) {
	nfsServers, err := aws.CreateNFSServers()
	FailIfError(err, "Couldn't set up NFS shares")

	WithMiniInfrastructure(distro, aws, func(node NodeDeets, sshKey string) {
		By("Setting up a plan file with NFS Shares and no storage")
		plan := PlanAWS{
			Etcd:                []NodeDeets{node},
			Master:              []NodeDeets{node},
			Worker:              []NodeDeets{node},
			MasterNodeFQDN:      node.PublicIP,
			MasterNodeShortName: node.PublicIP,
			SSHKeyFile:          sshKey,
			SSHUser:             node.SSHUser,
			NFSVolume: []NFSVolume{
				{Host: nfsServers[0].IpAddress},
			},
		}

		err := installKismaticWithPlan(plan, sshKey)
		FailIfError(err, "Error installing cluster with NFS shares")
	})
}

Use the public IP for lb_fqdn in NFS test
Use the public IP for lb_fqdn in NFS test

The helm installation fails because the lb_fqdn is pointing to the
machine's hostname, which ends up in the kubeconfig that is used by helm
to initialize tiller. Given that this hostname is not resolvable from
the testing machine, the test fails.
