util

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 10 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"
	ErrCtxTimeout    = "CTX_TIMEOUT"
	Success          = "SUCCESS"

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

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

Jump to

Keyboard shortcuts

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