util

package
v1.26.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 11 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"
	BackupCreating   = "CREATING"

	// 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 GetHttpStatusCode added in v1.25.2

func GetHttpStatusCode(err error) int

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