Documentation ¶
Overview ¶
Package dind implements dind-specific kubetest code.
Package dind implements dind specific kubetest code.
Index ¶
- func GetDockerVersion() (string, error)
- type Builder
- type Deployer
- func (d *Deployer) BuildTester(o *e2e.BuildTesterOptions) (e2e.Tester, error)
- func (d *Deployer) Down() error
- func (d *Deployer) DumpClusterLogs(localPath, gcsPath string) error
- func (d *Deployer) GetClusterCreated(gcpProject string) (time.Time, error)
- func (d *Deployer) IsUp() error
- func (d *Deployer) TestSetup() error
- func (d *Deployer) Up() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDockerVersion ¶
GetDockerVersion reads the stable-status.txt file from bazel to get the docker artifact version.
Types ¶
type Builder ¶
Builder is capable of building the appropriate artifacts for the dind deployment.
func NewBuilder ¶
NewBuilder returns an object capable of building the required k8s artifacts for dind.
type Deployer ¶
type Deployer struct { RealKubecfg string // contains filtered or unexported fields }
Deployer stores information necessary to deploy a cluster inside a docker container.
func NewDeployer ¶
NewDeployer instantiates a new Deployer struct with specified args.
kubecfg: path to a ~/.kube/config type file that authenticates to the cluster image: name of the dind image to use, will choose a default if empty control: used for creating subprocesses.
func (*Deployer) BuildTester ¶
BuildTester returns an object that knows how to test the cluster it deployed.
func (*Deployer) DumpClusterLogs ¶
DumpClusterLogs is a no-op.
func (*Deployer) GetClusterCreated ¶
GetClusterCreated returns the start time of the cluster container. If the container doesn't exist, has no start time, or has a malformed start time, then an error is returned.