controllers

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CRDV1Version = "v1"
	CRDV1Group   = "apiextensions.k8s.io"
)

Variables

View Source
var (
	RESTDeleteFinalizer = "termination.flanksource.com/protect"
)

Functions

This section is empty.

Types

type CRDReconciler added in v0.1.15

type CRDReconciler struct {
	Client
	ResourceVersion int
}

CRDReconciler reconciles changes to CRD objects

func (*CRDReconciler) Reconcile added in v0.1.15

func (r *CRDReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*CRDReconciler) SetupWithManager added in v0.1.15

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

type Client added in v0.1.17

type Client struct {
	ControllerClient client.Client
	KommonsClient    *kommons.Client
	Events           record.EventRecorder
	Log              logr.Logger
	Scheme           *runtime.Scheme
	Cache            *k8s.SchemaCache
	Discovery        discovery.DiscoveryInterface
	Watcher          k8s.WatcherInterface
}

func (*Client) HasKind added in v0.1.17

func (c *Client) HasKind(groupName, version string) (bool, error)

HasKind detects if the given api group with specified version is supported by the server

type RESTReconciler added in v0.5.0

type RESTReconciler struct {
	Client
}

RESTReconciler reconciles a REST object

func (*RESTReconciler) Reconcile added in v0.5.0

func (r *RESTReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*RESTReconciler) SetupWithManager added in v0.5.0

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

type TemplateReconciler

type TemplateReconciler struct {
	Client
}

TemplateReconciler reconciles a Template object

func (*TemplateReconciler) Reconcile

func (r *TemplateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*TemplateReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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