constants

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// InstallModeBuiltinValueKey is the key of the build in value to represent the addon install mode, addon developers
	// can use this built in value in manifests.
	InstallModeBuiltinValueKey = "InstallMode"
	InstallModeHosted          = "Hosted"
	InstallModeDefault         = "Default"
)

Variables

This section is empty.

Functions

func DeployHostingWorkNamePrefix added in v0.5.0

func DeployHostingWorkNamePrefix(addonNamespace, addonName string) string

DeployHostingWorkNamePrefix returns the prefix of the work name on hosting cluster for the addon

func DeployWorkNamePrefix added in v0.5.0

func DeployWorkNamePrefix(addonName string) string

DeployWorkNamePrefix returns the prefix of the work name for the addon

func GetHostedManifestLocation added in v0.5.0

func GetHostedManifestLocation(labels, annotations map[string]string) (string, bool, error)

GetHostedManifestLocation returns the location of the manifest in Hosted mode, if it is invalid will return error

func GetHostedModeInfo added in v0.5.0

func GetHostedModeInfo(annotations map[string]string) (string, string)

GetHostedModeInfo returns addon installation mode and hosting cluster name.

func PreDeleteHookHostingWorkName added in v0.5.0

func PreDeleteHookHostingWorkName(addonNamespace, addonName string) string

PreDeleteHookHostingWorkName return the name of pre-delete work on hosting cluster for the addon

func PreDeleteHookWorkName added in v0.5.0

func PreDeleteHookWorkName(addonName string) string

PreDeleteHookWorkName return the name of pre-delete work for the addon

Types

This section is empty.

Jump to

Keyboard shortcuts

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