controller

package
v1.27.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultFetchInterval = 15 * time.Second
)

Variables

View Source
var (
	Scheme = runtime.NewScheme()
)

Functions

This section is empty.

Types

type NodeConfigReconciler

type NodeConfigReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	MetricsCollector *metrics.Collector
	MetricsStore     *metrics.Store
}

NodeConfigReconciler reconciles a NodeConfig object.

NOTE: This reconciler is used in wao-metrics-adaptor instead of the controller. So RBAC rules below should be applied to wao-metrics-adaptor. kubebuilder:rbac:groups=wao.bitmedia.co.jp,resources=nodeconfigs,verbs=get;list;watch;create;update;patch;delete kubebuilder:rbac:groups=wao.bitmedia.co.jp,resources=nodeconfigs/status,verbs=get;update;patch kubebuilder:rbac:groups=wao.bitmedia.co.jp,resources=nodeconfigs/finalizers,verbs=update kubebuilder:rbac:groups=core,namespace=wao-system,resources=secrets,verbs=get

func (*NodeConfigReconciler) Reconcile

func (r *NodeConfigReconciler) 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 (*NodeConfigReconciler) SetupWithManager

func (r *NodeConfigReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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