utility

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImagePullNotFound      string = "ImagePullNotFound"
	ImagePullBackOff       string = "ImagePullBackOff"
	PodProblemsNotReported string = "PodProblemsNotReported"
	InsufficientMemory     string = "InsufficientMemory"
	InsufficientCPU        string = "InsufficientCPU"
	VzSystemNS             string = "verrazzano-system"
	DeploymentToBePatched  string = "verrazzano-console"
)

Variables

View Source
var ReportAnalysis = make(map[string][]string)

Functions

func PatchImage

func PatchImage(client *kubernetes.Clientset, deploymentName, issueType, patchImage string) error

PatchImage patches a deployment's image and feeds cluster analysis report patching includes both injection of an issue and its revival

func PatchPod

func PatchPod(issueType string, resourceReq []string) error

PatchPod patches a deployment's pod and feeds cluster analysis report patching includes both injection of an issue and its revival

func RunVzAnalyze

func RunVzAnalyze() (string, error)

RunVzAnalyze runs and deliver cluster analysis report

func SetDepResources

func SetDepResources(dep, ns, req string) error

SetDepResources sets pod's resources i.e (cpu/ memory)

func VerifyIssue

func VerifyIssue(out, issueType string) bool

VerifyIssue verifies issue against cluster analysis report

Types

This section is empty.

Jump to

Keyboard shortcuts

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