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.
Click to show internal directories.
Click to hide internal directories.