Documentation ¶
Overview ¶
Package addon contains a controller that applies addons based on a Addon CRD. It needs a folder per addon that contains all manifests, then adds a label to all objects and applies the addon via `kubectl apply --purge -l $added-label`, which result in all objects that do have the label but are not in the on-disk manifests being removed.
Index ¶
Constants ¶
View Source
const (
ControllerName = "kubermatic_addon_controller"
)
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add( mgr manager.Manager, log *zap.SugaredLogger, numWorkers int, workerName string, addonEnforceInterval int, addonCtxVariables map[string]interface{}, kubernetesAddonDir, openshiftAddonDir, overwriteRegistey string, nodeLocalDNSCacheEnabled bool, kubeconfigProvider KubeconfigProvider, ) error
Add creates a new Addon controller that is responsible for managing in-cluster addons
Types ¶
type KubeconfigProvider ¶
type KubeconfigProvider interface { GetAdminKubeconfig(c *kubermaticv1.Cluster) ([]byte, error) GetClient(c *kubermaticv1.Cluster, options ...clusterclient.ConfigOption) (ctrlruntimeclient.Client, error) }
KubeconfigProvider provides functionality to get a clusters admin kubeconfig
type Reconciler ¶
type Reconciler struct { ctrlruntimeclient.Client KubeconfigProvider KubeconfigProvider // contains filtered or unexported fields }
Reconciler stores necessary components that are required to manage in-cluster Add-On's
Click to show internal directories.
Click to hide internal directories.