controller

package
v1.28.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 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

	// SecretClient is used to get namespace scoped Secrets.
	// See: NodeConfigReconciler.getBasicAuthFromSecret()
	SecretClient kubernetes.Interface

	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