operator

package
v0.3.0-beta Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller is a controller for Node CR

func NewController

func NewController(nodeSelector string, useExternalAnnotaion bool, nodeAnnotaion string,
	k8sClient *k8s.KubeClient, logger *logrus.Logger) (*Controller, error)

NewController returns instance of Controller

func (*Controller) Reconcile

func (bmc *Controller) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile reconciles Node CR and k8s Node objects at first define for which object current Reconcile is triggered and then run corresponding reconciliation method

func (*Controller) SetupWithManager

func (bmc *Controller) SetupWithManager(m ctrl.Manager) error

SetupWithManager registers Controller to k8s controller manager

Directories

Path Synopsis
Package common contains variables that are used in controller code and in other places too the reason of that package is to avoid conflict during initialization k8s client for e2e test
Package common contains variables that are used in controller code and in other places too the reason of that package is to avoid conflict during initialization k8s client for e2e test

Jump to

Keyboard shortcuts

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