Documentation ¶
Overview ¶
Package klusterletaddon contains the main reconcile function & related functions for klusterletAddonConfigs
Package klusterletaddon contains the main reconcile function & related functions for klusterletAddonConfigs
Package klusterletaddon contains the main reconcile function & related functions for klusterletAddonConfigs
Package klusterletaddon contains the main reconcile function & related functions for klusterletAddonConfigs
Index ¶
Constants ¶
const ( KlusterletAddonConfigAnnotationPause = "klusterletaddonconfig-pause" // AnnotationNodeSelector key name of nodeSelector annotation synced from mch AnnotationNodeSelector = "open-cluster-management/nodeSelector" )
const ( KlusterletAddonFinalizer = "agent.open-cluster-management.io/klusterletaddonconfig-cleanup" KlusterletAddonCRDsPostfix = "-klusterlet-addon-crds" )
constants for delete work and finalizer
const (
KlusterletAddonOperatorPostfix = "-klusterlet-addon-operator"
)
const for addon operator
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(mgr manager.Manager, kubeClient kubernetes.Interface) error
Add creates a new KlusterletAddon Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.
func IsCRDManifestWorkAvailable ¶
func IsCRDManifestWorkAvailable(manifestWork *manifestworkv1.ManifestWork) bool
IsCRDManifestWorkAvailable - if manifestwork for crd is applied and resource is available on managed cluster it will return true
func IsManagedClusterOnline ¶
func IsManagedClusterOnline(managedCluster *managedclusterv1.ManagedCluster) bool
IsManagedClusterOnline - if cluster is online returns true otherwise returns false
Types ¶
type GlobalProxyReconciler ¶
type GlobalProxyReconciler struct {
// contains filtered or unexported fields
}
type ReconcileKlusterletAddon ¶
type ReconcileKlusterletAddon struct {
// contains filtered or unexported fields
}
ReconcileKlusterletAddon reconciles a Klusterlet object
func (*ReconcileKlusterletAddon) Reconcile ¶
Reconcile reads that state of the cluster for a KlusterletAddonConfig object and makes changes based on the state read and what is in the KlusterletAddonConfig.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.