k8s

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DeploymentKind is the k8s Kind for a Deployment.
	DeploymentKind = "Deployment"
)
View Source
const (
	// ServiceKind is the k8s Kind for a Service.
	ServiceKind = "Service"
)

Variables

This section is empty.

Functions

func DeploymentLocator

func DeploymentLocator(ctx model.SessionContext, ref model.Ref, store model.LocatorStatusStore, report model.LocatorStatusReporter) error

DeploymentLocator attempts to locate a Deployment kind based on Ref name.

func DeploymentModificator added in v0.4.0

func DeploymentModificator(engine template.Engine) model.Modificator

DeploymentModificator attempts to clone the located Deployment.

func DeploymentRegistrar added in v0.4.0

func DeploymentRegistrar(engine template.Engine) model.ModificatorRegistrar

func ServiceLocator added in v0.0.3

func ServiceLocator(ctx model.SessionContext, ref model.Ref, store model.LocatorStatusStore, report model.LocatorStatusReporter) error

ServiceLocator attempts to locate the Services for the target Deployment/DeploymentConfig.

func ServiceModificator added in v0.5.0

func ServiceModificator(ctx model.SessionContext, ref model.Ref, store model.LocatorStatusStore, report model.ModificatorStatusReporter)

ServiceModificator will set a located service to modification status true.

func ServiceRegistrar added in v0.5.0

func ServiceRegistrar() (client.Object, model.Modificator)

Types

type AssumeOperatorInstalled added in v0.5.3

type AssumeOperatorInstalled struct{}

AssumeOperatorInstalled is used for testing where we simply assume CRD is always installed. This is in particular useful as test double where cluster is not involved at all.

func (AssumeOperatorInstalled) CheckCRD added in v0.5.3

func (AssumeOperatorInstalled) CheckCRD() (bool, error)

type ClusterVerifier added in v0.5.3

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

func (*ClusterVerifier) CheckCRD added in v0.5.3

func (v *ClusterVerifier) CheckCRD() (bool, error)

type InstallationVerifier added in v0.5.3

type InstallationVerifier interface {
	CheckCRD() (bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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