deployment

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIncorrectDeployment

func IsIncorrectDeployment(err error) bool

IsIncorrectDeployment asserts incorrectDeploymentError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

Types

type Config

type Config struct {
	K8sClient kubernetes.Interface
	Logger    micrologger.Logger
}

type Deployment

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

func New

func New(config Config) (*Deployment, error)

func (*Deployment) Check

func (d *Deployment) Check(name string, replicas int, expectedLabels, expectedMatchLabels map[string]string) error

Check ensures that key properties of the deployment are correct.

Jump to

Keyboard shortcuts

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