deployment

package
v0.0.0-...-9094c1a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOwnerRef

func AddOwnerRef(d *appsv1.Deployment, o metav1.Object)

AddOwnerRef adds a controller refernece that is owned by the object `o` to Deployment d.

func Get

func Get(name string, g GetDeployment) (*appsv1.Deployment, error)

Get will call g to get the Deployment called name and return it if it exists.

func IsValid

func IsValid(d *appsv1.Deployment, expectedOwner metav1.Object) error

IsValid checks if the Deployment d is valid by making sure it is owned by expectedOwner.

func NewDeployment

func NewDeployment(namespace, name string) *appsv1.Deployment

NewDeployment returns the Deployment that should be created in namespace called name.

Types

type GetDeployment

type GetDeployment func(n string) (*appsv1.Deployment, error)

GetDeployment is a function that will return the Deployment with name n if it exists. The error should have reason metav1.StatusReasonNotFound if the Deployment doesn't exist.

Jump to

Keyboard shortcuts

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