task

package
v1.0.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 6 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ModuleDelete         task.TaskType = "ModuleDelete"
	ModuleRun            task.TaskType = "ModuleRun"
	ModuleHookRun        task.TaskType = "ModuleHookRun"
	GlobalHookRun        task.TaskType = "GlobalHookRun"
	ReloadAllModules     task.TaskType = "ReloadAllModules"
	DiscoverModulesState task.TaskType = "DiscoverModulesState"

	GlobalHookEnableKubernetesBindings task.TaskType = "GlobalHookEnableKubernetesBindings"
	GlobalHookEnableScheduleBindings   task.TaskType = "GlobalHookEnableScheduleBindings"

	// Delete unknown helm release when no module in ModulesDir
	ModulePurge task.TaskType = "ModulePurge"
	// Task to call ModuleManager.Retry
	ModuleManagerRetry task.TaskType = "ModuleManagerRetry"
)

Addon-operator specific task types

Variables

This section is empty.

Functions

This section is empty.

Types

type HookMetadata

type HookMetadata struct {
	EventDescription string // event name for informative queue dump
	HookName         string
	ModuleName       string
	BindingType      BindingType
	BindingContext   []BindingContext
	AllowFailure     bool //Task considered as 'ok' if hook failed. False by default. Can be true for some schedule hooks.

	OnStartupHooks bool // Execute onStartup and kubernetes@Synchronization hooks for module

	LastAfterAllHook         bool   // True if task is a last hook in afterAll sequence
	ValuesChecksum           string // checksum of global values between first afterAll hook execution
	ReloadAllOnValuesChanges bool   // whether or not run DiscoverModules process if hook change global values
}

HookMetadata is metadata for addon-operator tasks

func HookMetadataAccessor

func HookMetadataAccessor(t task.Task) (meta HookMetadata)

func (HookMetadata) GetBindingContext

func (m HookMetadata) GetBindingContext() []BindingContext

func (HookMetadata) GetDescription

func (hm HookMetadata) GetDescription() string

func (HookMetadata) GetHookName

func (m HookMetadata) GetHookName() string

Jump to

Keyboard shortcuts

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