error

package
v0.0.0-...-1859c74 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	YAMLToJSONConversionError   = "error converting YAML to JSON"
	ClusterUnreachableErrorMsg  = "cluster unreachable"
	CrdPreconditionErrorMsg     = "ensure crds are installed first"
	ArrayStringMismatchErrorMsg = "got array expected string"
	NotFoundErrorMsg            = "not found" //this is a generic type constant, an error could be namespace "ns1" not found or service "ser1" not found.
	InvalidValueErrorMsg        = "invalid value"
	OperationInProgressErrorMsg = "another operation (install/upgrade/rollback) is in progress"
	ForbiddenErrorMsg           = "forbidden"
)

list of error strings from Helm. These are part of the errors we check for presence in Helm's error messages.

View Source
const (
	InternalClusterUnreachableErrorMsg  = "cluster unreachable"
	InternalOperationInProgressErrorMsg = "another operation (install/upgrade/rollback) is in progress"
)

list of internal errors, these errors are easy for the users to understand

Variables

Functions

func ConvertHelmErrorToInternalError

func ConvertHelmErrorToInternalError(err error) error

ConvertHelmErrorToInternalError converts known error message from helm to internal error and also maps it with proper grpc code

func IsValidationError

func IsValidationError(err error) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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