Documentation ¶ Index ¶ func GetMock(opts MockSpec) appsv1.Deployment func GetOriginalInfoToRestore(data []byte) (map[string]int32, error) func NewResource(ctx context.Context, res resource.ResourceClient, namespace string, ...) (resource.Resource, error) type MockSpec type OriginalReplicas Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetMock ¶ func GetMock(opts MockSpec) appsv1.Deployment func GetOriginalInfoToRestore ¶ func GetOriginalInfoToRestore(data []byte) (map[string]int32, error) func NewResource ¶ func NewResource(ctx context.Context, res resource.ResourceClient, namespace string, originalReplicas map[string]int32) (resource.Resource, error) Types ¶ type MockSpec ¶ type MockSpec struct { Namespace string Name string Labels map[string]string Replicas *int32 ResourceVersion string PodAnnotations map[string]string MatchLabels map[string]string } type OriginalReplicas ¶ type OriginalReplicas struct { Name string `json:"name"` Replicas int32 `json:"replicas"` } Source Files ¶ View all Source files deployments.go testutil.go Click to show internal directories. Click to hide internal directories.