internal

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceInFile added in v1.0.0

func ReplaceInFile(path, old, new string)

ReplaceInFile replaces all instances of old with new in the file at path.

Types

type TestContext

type TestContext struct {
	*kbtestutils.TestContext
}

TestContext wraps kubebuilder's e2e TestContext.

func NewTestContext

func NewTestContext(env ...string) (tc TestContext, err error)

NewTestContext returns a TestContext containing a new kubebuilder TestContext.

func (TestContext) AddPackagemanifestsTarget added in v1.0.0

func (tc TestContext) AddPackagemanifestsTarget() error

AddPackagemanifestsTarget will append the packagemanifests target to the makefile in order to test the steps described in the docs. More info: https://master.sdk.operatorframework.io/docs/olm-integration/generation/#package-manifests-formats

func (TestContext) InstallOLM

func (tc TestContext) InstallOLM() error

InstallOLM runs 'operator-sdk olm install' and returns any errors emitted by that command.

func (TestContext) KustomizeBuild

func (tc TestContext) KustomizeBuild(dir string) ([]byte, error)

KustomizeBuild runs 'kustomize build <dir>' and returns its output and an error if any.

func (TestContext) LoadImageToKindClusterWithName added in v1.0.0

func (tc TestContext) LoadImageToKindClusterWithName(image string) error

LoadImageToKindCluster loads a local docker image with the name informed to the kind cluster

func (TestContext) UninstallOLM

func (tc TestContext) UninstallOLM()

InstallOLM runs 'operator-sdk olm uninstall' and logs any errors emitted by that command.

Jump to

Keyboard shortcuts

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