util

package
v0.0.0-...-fd237a5 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CidrEquals

func CidrEquals(n1, n2 *net.IPNet) bool

func CidrOverlap

func CidrOverlap(n1, n2 *net.IPNet) bool

func CidrParseIPnPrefix

func CidrParseIPnPrefix(cidr string) (string, int, error)

func GetObjGvk

func GetObjGvk(scheme *runtime.Scheme, out runtime.Object) (gvk schema.GroupVersionKind, e error)

func GetObjGvkFromListGkv

func GetObjGvkFromListGkv(scheme *runtime.Scheme, listGvk schema.GroupVersionKind) (gvk schema.GroupVersionKind, e error)

func NewKymaUnstructured

func NewKymaUnstructured() *unstructured.Unstructured

Types

type KymaModuleState

type KymaModuleState string

KymaModuleState the state of the modul in the Kyma CR

const (
	KymaModuleStateNotPresent KymaModuleState = ""

	// KymaModuleStateReady signifies CustomObject is ready and has been installed successfully.
	KymaModuleStateReady KymaModuleState = "Ready"

	// KymaModuleStateProcessing signifies CustomObject is reconciling and is in the process of installation.
	// Processing can also signal that the Installation previously encountered an error and is now recovering.
	KymaModuleStateProcessing KymaModuleState = "Processing"

	// KymaModuleStateError signifies an error for CustomObject. This signifies that the Installation
	// process encountered an error.
	// Contrary to Processing, it can be expected that this state should change on the next retry.
	KymaModuleStateError KymaModuleState = "Error"

	// KymaModuleStateDeleting signifies CustomObject is being deleted. This is the state that is used
	// when a deletionTimestamp was detected and Finalizers are picked up.
	KymaModuleStateDeleting KymaModuleState = "Deleting"

	// KymaModuleStateWarning signifies specified resource has been deployed, but cannot be used due to misconfiguration,
	// usually it means that user interaction is required.
	KymaModuleStateWarning KymaModuleState = "Warning"
)

Valid States.

func GetKymaModuleState

func GetKymaModuleState(k *unstructured.Unstructured, moduleName string) KymaModuleState

Jump to

Keyboard shortcuts

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