kubeadmdind

package
v0.0.0-...-d7867ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package kubeadmdind implements a kubetest deployer based on the scripts in the github.com/kubernetes-sigs/kubeadm-dind-cluster repo. This deployer can be used to create a multinode, containerized Kubernetes cluster that runs inside a Prow DinD container.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployer

type Deployer struct {
	// contains filtered or unexported fields
}

Deployer is used to implement a kubetest deployer interface

func NewDeployer

func NewDeployer(control *process.Control) (*Deployer, error)

NewDeployer returns a new Kubeadm-DinD Deployer

func (*Deployer) Down

func (d *Deployer) Down() error

Down brings the DinD-based cluster down and cleans up any DinD state

func (*Deployer) DumpClusterLogs

func (d *Deployer) DumpClusterLogs(localPath, gcsPath string) error

DumpClusterLogs copies dumps docker state and service logs for: - Host Prow container - Kube master node container(s) - Kube worker node containers to a local artifacts directory.

func (*Deployer) GetClusterCreated

func (d *Deployer) GetClusterCreated(gcpProject string) (time.Time, error)

GetClusterCreated is not yet implemented.

func (*Deployer) IsUp

func (d *Deployer) IsUp() error

IsUp determines if a cluster is up based on whether one or more nodes is ready.

func (*Deployer) KubectlCommand

func (_ *Deployer) KubectlCommand() (*exec.Cmd, error)

func (*Deployer) TestSetup

func (d *Deployer) TestSetup() error

TestSetup builds end-to-end test and ginkgo binaries.

func (*Deployer) Up

func (d *Deployer) Up() error

Up brings up a multinode, containerized Kubernetes cluster inside a Prow DinD container.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL