deployments

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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"`
}

Jump to

Keyboard shortcuts

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