Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentLab ¶
type DeploymentLab interface {
// Merge merges the following fields from src to dst
// - ObjectMeta.Labels
// - ObjectMeta.Annotations
// - Spec
Merge(dst, src *v1.Deployment) error
// IsEqual checks if the given two deployments are equal
//
// If ignoreFields is provided, the function will be call on each
// deployment's deepcopy(be free to mutate it) before comparing to
// ignore specified fields.
// You can mutate object in the function like:
// func (in *v1.Deployment) {
// in.Spec.Replicas = nil
// }
IsEqual(a, b *v1.Deployment, ignoreFields func(*v1.Deployment)) bool
}
DeploymentLab contains some utils for Deployments
Click to show internal directories.
Click to hide internal directories.