Documentation ¶
Index ¶
- Constants
- func DeployHostingWorkNamePrefix(addonNamespace, addonName string) string
- func DeployWorkNamePrefix(addonName string) string
- func GetHostedManifestLocation(labels, annotations map[string]string) (string, bool, error)
- func GetHostedModeInfo(addon *addonv1alpha1.ManagedClusterAddOn, _ *clusterv1.ManagedCluster) (string, string)
- func PreDeleteHookHostingWorkName(addonNamespace, addonName string) string
- func PreDeleteHookWorkName(addonName string) string
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
DeployHostingWorkNamePrefix returns the prefix of the work name on hosting cluster for the addon
func DeployWorkNamePrefix ¶ added in v0.5.0
DeployWorkNamePrefix returns the prefix of the work name for the addon
func GetHostedManifestLocation ¶ added in v0.5.0
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(addon *addonv1alpha1.ManagedClusterAddOn, _ *clusterv1.ManagedCluster) (string, string)
GetHostedModeInfo returns addon installation mode and hosting cluster name.
func PreDeleteHookHostingWorkName ¶ added in v0.5.0
PreDeleteHookHostingWorkName return the name of pre-delete work on hosting cluster for the addon
func PreDeleteHookWorkName ¶ added in v0.5.0
PreDeleteHookWorkName return the name of pre-delete work for the addon
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.