Documentation ¶
Overview ¶
Package dind implements dind-specific kubetest code.
Package dind implements dind specific kubetest code.
Index ¶
- func GetDockerVersion() (string, error)
- type Builder
- type DindDeployer
- func (d *DindDeployer) Down() error
- func (d *DindDeployer) DumpClusterLogs(localPath, gcsPath string) error
- func (d *DindDeployer) GetClusterCreated(gcpProject string) (time.Time, error)
- func (d *DindDeployer) IsUp() error
- func (d *DindDeployer) NewTester(focusRegex, skipRegex string, parallelism int) (*Tester, error)
- func (d *DindDeployer) TestSetup() error
- func (d *DindDeployer) Up() error
- type Tester
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 DindDeployer ¶
type DindDeployer struct { RealKubecfg string // contains filtered or unexported fields }
func NewDeployer ¶
func NewDeployer(kubecfg, image string, testArgs *string, control *process.Control) (*DindDeployer, error)
New returns a new DindDeployer.
func (*DindDeployer) Down ¶
func (d *DindDeployer) Down() error
Down stops and removes the cluster container.
func (*DindDeployer) DumpClusterLogs ¶
func (d *DindDeployer) DumpClusterLogs(localPath, gcsPath string) error
DumpClusterLogs is a no-op.
func (*DindDeployer) GetClusterCreated ¶
func (d *DindDeployer) GetClusterCreated(gcpProject string) (time.Time, error)
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.
func (*DindDeployer) IsUp ¶
func (d *DindDeployer) IsUp() error
IsUp returns nil if the apiserver is running, or the error received while checking.
func (*DindDeployer) NewTester ¶
func (d *DindDeployer) NewTester(focusRegex, skipRegex string, parallelism int) (*Tester, error)
NewTester returns an object that knows how to test the cluster it deployed. TODO(Q-Lee): the deployer interfact should have a NewTester or Test method.
func (*DindDeployer) Up ¶
func (d *DindDeployer) Up() error
Up synchronously starts a cluster, or times out.