klusterletaddon

package
v0.0.0-...-09fc2e2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 49 Imported by: 0

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

View Source
const (
	KlusterletAddonConfigAnnotationPause = "klusterletaddonconfig-pause"

	// AnnotationNodeSelector key name of nodeSelector annotation synced from mch
	AnnotationNodeSelector = "open-cluster-management/nodeSelector"
)
View Source
const (
	KlusterletAddonFinalizer   = "agent.open-cluster-management.io/klusterletaddonconfig-cleanup"
	KlusterletAddonCRDsPostfix = "-klusterlet-addon-crds"
)

constants for delete work and finalizer

View Source
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
}

func (*GlobalProxyReconciler) Reconcile

func (r *GlobalProxyReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

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.

Jump to

Keyboard shortcuts

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