util

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CompartmentIDAnnotation is the annotation for OCI compartment
	CompartmentIDAnnotation = "oci.oraclecloud.com/compartment-id"

	// Error codes
	Err429           = "429"
	Err4XX           = "4XX"
	Err5XX           = "5XX"
	ErrValidation    = "VALIDATION_ERROR"
	ErrLimitExceeded = "LIMIT_EXCEEDED"
	Success          = "SUCCESS"

	// Components generating errors
	// Load Balancer
	LoadBalancerType = "LB"
	// storage types
	CSIStorageType = "CSI"
	FVDStorageType = "FVD"
)

Variables

This section is empty.

Functions

func GetError

func GetError(err error) string

func GetMetricDimensionForComponent

func GetMetricDimensionForComponent(err string, component string) string

func LookupNodeCompartment

func LookupNodeCompartment(k kubernetes.Interface, nodeName string) (string, error)

LookupNodeCompartment returns the compartment OCID for the given nodeName.

Types

This section is empty.

Directories

Path Synopsis
TODO(thockin): This whole pkg is pretty linux-centric.
TODO(thockin): This whole pkg is pretty linux-centric.

Jump to

Keyboard shortcuts

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