Documentation ¶
Index ¶
- Constants
- Variables
- func AddonInstallNamespaceFunc(addonGetter utils.AddOnDeploymentConfigGetter, clusterClient client.Client) func(addon *addonapiv1alpha1.ManagedClusterAddOn) (string, error)
- func GetMchImage(kubeConfig *rest.Config) (string, error)
- func HostedClusterInfo(_ *addonapiv1alpha1.ManagedClusterAddOn, cluster *clusterv1.ManagedCluster) (string, string)
- func NewAddonManager(mgr manager.Manager, kubeConfig *rest.Config, agentImage string) (addonmanager.AddonManager, error)
- type GlobalValues
- type Values
Constants ¶
View Source
const ( AppMgrAddonName = "application-manager" ChartDir = "manifests/chart" AgentImageEnv = "OPERAND_IMAGE_MULTICLUSTER_OPERATORS_SUBSCRIPTION" )
View Source
const ( // AnnotationKlusterletDeployMode is the annotation key of klusterlet deploy mode, it describes the // klusterlet deploy mode when importing a managed cluster. // If the value is "Hosted", the HostingClusterNameAnnotation annotation will be required, we use // AnnotationKlusterletHostingClusterName to determine where to deploy the registration-agent and // work-agent. AnnotationKlusterletDeployMode string = "import.open-cluster-management.io/klusterlet-deploy-mode" // AnnotationKlusterletHostingClusterName is the annotation key of hosting cluster name for klusterlet, // it is required in Hosted mode, and the hosting cluster MUST be one of the managed cluster of the hub. // The value of the annotation should be the ManagedCluster name of the hosting cluster. AnnotationKlusterletHostingClusterName string = "import.open-cluster-management.io/hosting-cluster-name" // DisableAutoImportAnnotation is an annotation of ManagedCluster. // If present, the crds.yaml and import.yaml will not be applied on the managed cluster by the hub // controller automatically. And the bootstrap-hub-kubeconfig secret will not be updated as well // in the backup-restore case. DisableAutoImportAnnotation string = "import.open-cluster-management.io/disable-auto-import" // AnnotationKlusterletConfig is an annotation of ManagedCluster, which references to the name of the // KlusterletConfig adopted by this managed cluster. If it is missing on a ManagedCluster, no KlusterletConfig // will be used for this managed cluster. AnnotationKlusterletConfig string = "agent.open-cluster-management.io/klusterlet-config" // AnnotationEnableHostedModeAddons is the key of annotation which indicates if the add-ons will be enabled // in hosted mode automatically for a managed cluster AnnotationEnableHostedModeAddons = "addon.open-cluster-management.io/enable-hosted-mode-addons" )
Variables ¶
View Source
var AppMgrImage string
View Source
var ChartFS embed.FS
Functions ¶
func AddonInstallNamespaceFunc ¶ added in v0.14.0
func AddonInstallNamespaceFunc( addonGetter utils.AddOnDeploymentConfigGetter, clusterClient client.Client) func(addon *addonapiv1alpha1.ManagedClusterAddOn) (string, error)
AddonInstallNamespaceFunc reads addonDeploymentConfig to set install namespace for addons in default mode, and set install namespace to klusterlet-{cluster name} for addons in hosted mode.
func HostedClusterInfo ¶ added in v0.14.0
func HostedClusterInfo(_ *addonapiv1alpha1.ManagedClusterAddOn, cluster *clusterv1.ManagedCluster) (string, string)
func NewAddonManager ¶
func NewAddonManager(mgr manager.Manager, kubeConfig *rest.Config, agentImage string) (addonmanager.AddonManager, error)
Types ¶
type GlobalValues ¶
type Values ¶
type Values struct { OnHubCluster bool `json:"onHubCluster"` // single hub cluster OnMulticlusterHub bool `json:"onMulticlusterHub"` // regional hub cluster GlobalValues GlobalValues `json:"global"` }
Click to show internal directories.
Click to hide internal directories.