Documentation
¶
Index ¶
- func CidrEquals(n1, n2 *net.IPNet) bool
- func CidrOverlap(n1, n2 *net.IPNet) bool
- func CidrParseIPnPrefix(cidr string) (string, int, error)
- func GetObjGvk(scheme *runtime.Scheme, out runtime.Object) (gvk schema.GroupVersionKind, e error)
- func GetObjGvkFromListGkv(scheme *runtime.Scheme, listGvk schema.GroupVersionKind) (gvk schema.GroupVersionKind, e error)
- func IsKymaModuleListedInSpec(k *unstructured.Unstructured, moduleName string) bool
- func NewKymaListUnstructured() *unstructured.UnstructuredList
- func NewKymaUnstructured() *unstructured.Unstructured
- func RemoveKymaModuleFromSpec(k *unstructured.Unstructured, moduleName string) error
- func RemoveKymaModuleStateFromStatus(k *unstructured.Unstructured, moduleName string) error
- func SetKymaModuleInSpec(k *unstructured.Unstructured, moduleName string) error
- func SetKymaModuleStateFromStatus(k *unstructured.Unstructured, moduleName string, state KymaModuleState) error
- type KymaModuleState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CidrEquals ¶
func CidrOverlap ¶
func GetObjGvkFromListGkv ¶
func GetObjGvkFromListGkv(scheme *runtime.Scheme, listGvk schema.GroupVersionKind) (gvk schema.GroupVersionKind, e error)
func IsKymaModuleListedInSpec ¶
func IsKymaModuleListedInSpec(k *unstructured.Unstructured, moduleName string) bool
func NewKymaListUnstructured ¶
func NewKymaListUnstructured() *unstructured.UnstructuredList
func NewKymaUnstructured ¶
func NewKymaUnstructured() *unstructured.Unstructured
func RemoveKymaModuleFromSpec ¶
func RemoveKymaModuleFromSpec(k *unstructured.Unstructured, moduleName string) error
func RemoveKymaModuleStateFromStatus ¶
func RemoveKymaModuleStateFromStatus(k *unstructured.Unstructured, moduleName string) error
func SetKymaModuleInSpec ¶
func SetKymaModuleInSpec(k *unstructured.Unstructured, moduleName string) error
func SetKymaModuleStateFromStatus ¶
func SetKymaModuleStateFromStatus(k *unstructured.Unstructured, moduleName string, state KymaModuleState) error
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 GetKymaModuleStateFromStatus ¶
func GetKymaModuleStateFromStatus(k *unstructured.Unstructured, moduleName string) KymaModuleState
Click to show internal directories.
Click to hide internal directories.