common

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: UPL-1.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreDependenciesReady

func AreDependenciesReady(ctx handlerspi.HandlerContext, depModulesNames []string) (res result.Result, deps []string)

AreDependenciesReady check if dependencies are ready using the Module condition

func CheckDependencies

func CheckDependencies(ctx handlerspi.HandlerContext, action string, reason moduleapi.ModuleConditionReason) result.Result

CheckDependencies checks if the dependencies are ready

func GetComponentAndContext

func GetComponentAndContext(ctx handlerspi.HandlerContext, operation string) (spi.ComponentContext, spi.Component, error)

func GetVerrazzanoCR

func GetVerrazzanoCR(ctx handlerspi.HandlerContext) (*vzapi.Verrazzano, error)

func GetVerrazzanoNSN

func GetVerrazzanoNSN(ctx handlerspi.HandlerContext) (*types.NamespacedName, error)

func UpdateVerrazzanoComponentStatus

func UpdateVerrazzanoComponentStatus(ctx handlerspi.HandlerContext, sd StatusData) result.Result

UpdateVerrazzanoComponentStatus updates the Verrazzano component status

func UpdateVerrazzanoComponentStatusToDisabled

func UpdateVerrazzanoComponentStatusToDisabled(ctx handlerspi.HandlerContext, Vznsn types.NamespacedName, compName string) result.Result

UpdateVerrazzanoComponentStatusToDisabled updates the component status to disabled

Types

type StatusData

type StatusData struct {
	Vznsn       types.NamespacedName
	CondType    vzapi.ConditionType
	CompName    string
	CompVersion string
	Msg         string
	Ready       bool
}

StatusData contains the data for the component status field

Jump to

Keyboard shortcuts

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