Documentation ¶
Overview ¶
Package controllers implements k8s controller functionality for kapp-controller config CRD.
Index ¶
- type KappControllerConfigReconciler
- func (r *KappControllerConfigReconciler) ClusterToKappControllerConfig(o client.Object) []ctrl.Request
- func (r *KappControllerConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *KappControllerConfigReconciler) ReconcileKappControllerConfig(ctx context.Context, kappControllerConfig *runv1alpha3.KappControllerConfig, ...) (_ ctrl.Result, retErr error)
- func (r *KappControllerConfigReconciler) ReconcileKappControllerConfigDataValue(ctx context.Context, kappControllerConfig *runv1alpha3.KappControllerConfig, ...) (retErr error)
- func (r *KappControllerConfigReconciler) ReconcileKappControllerConfigNormal(ctx context.Context, kappControllerConfig *runv1alpha3.KappControllerConfig, ...) (retErr error)
- func (r *KappControllerConfigReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
- type NodeSelector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KappControllerConfigReconciler ¶
type KappControllerConfigReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Config addonconfig.KappControllerConfigControllerConfig }
KappControllerConfigReconciler reconciles a KappControllerConfig object
func (*KappControllerConfigReconciler) ClusterToKappControllerConfig ¶
func (r *KappControllerConfigReconciler) ClusterToKappControllerConfig(o client.Object) []ctrl.Request
ClusterToKappControllerConfig returns a list of Requests with KappControllerConfig ObjectKey
func (*KappControllerConfigReconciler) Reconcile ¶
func (r *KappControllerConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*KappControllerConfigReconciler) ReconcileKappControllerConfig ¶
func (r *KappControllerConfigReconciler) ReconcileKappControllerConfig( ctx context.Context, kappControllerConfig *runv1alpha3.KappControllerConfig, cluster *clusterapiv1beta1.Cluster, log logr.Logger) (_ ctrl.Result, retErr error)
ReconcileKappControllerConfig reconciles KappControllerConfig CR
func (*KappControllerConfigReconciler) ReconcileKappControllerConfigDataValue ¶
func (r *KappControllerConfigReconciler) ReconcileKappControllerConfigDataValue( ctx context.Context, kappControllerConfig *runv1alpha3.KappControllerConfig, cluster *clusterapiv1beta1.Cluster, log logr.Logger) (retErr error)
ReconcileKappControllerConfigDataValue reconciles KappControllerConfig data values secret
func (*KappControllerConfigReconciler) ReconcileKappControllerConfigNormal ¶
func (r *KappControllerConfigReconciler) ReconcileKappControllerConfigNormal( ctx context.Context, kappControllerConfig *runv1alpha3.KappControllerConfig, cluster *clusterapiv1beta1.Cluster, log logr.Logger) (retErr error)
ReconcileKappControllerConfigNormal reconciles KappControllerConfig CR
func (*KappControllerConfigReconciler) SetupWithManager ¶
func (r *KappControllerConfigReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
SetupWithManager sets up the controller with the Manager.
type NodeSelector ¶
type NodeSelector struct {
NodeRoleControlPlane string `yaml:"node-role.kubernetes.io/control-plane"`
}
NodeSelector contains the nodeSelector information