updateManifest

package
v0.0.0-...-7806530 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorNotSupport = errors.New("not support resource type")
	ErrMismatch     = errors.New("mismatch deployment name")
)

Functions

func CheckDeployment

func CheckDeployment(name string, yamlData []byte) (runtime.Object, error)

CheckDeployment check deployment name and return k8s Object if correct

func PrintDeployment

func PrintDeployment(out io.Writer, obj runtime.Object) error

PrintDeployment Print correct deployment yaml to file

func UpdateResourceValues

func UpdateResourceValues(obj runtime.Object, cpuRequest, memRequest, cpuLimit, memLimit string, replicaCount int32) runtime.Object

UpdateResourceValues update Deployment resource values

Types

This section is empty.

Jump to

Keyboard shortcuts

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