controller

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 34 Imported by: 0

Documentation

Overview

Package controller GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

View Source
var FieldOwner = client.FieldOwner("kubepkg")

Functions

func Apply

func Apply(ctx context.Context, cc client.Client, o client.Object) error

func IsReloadMatch

func IsReloadMatch(o client.Object, key string, n string) bool

func IsSupportedGroupKind

func IsSupportedGroupKind(o client.Object) bool

func RangeWorkload

func RangeWorkload(ctx context.Context, c client.Client, namespace string, each func(o client.Object) error) error

func SetupWithManager

func SetupWithManager(mgr ctrl.Manager, hostOptions HostOptions) error

Types

type ClusterInfoReconciler added in v0.2.0

type ClusterInfoReconciler struct {
	ctrl.Manager
}

func (*ClusterInfoReconciler) Reconcile added in v0.2.0

func (ClusterInfoReconciler) RuntimeDoc added in v0.2.0

func (v ClusterInfoReconciler) RuntimeDoc(names ...string) ([]string, bool)

func (*ClusterInfoReconciler) SetupWithManager added in v0.2.0

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

type ConfigMapReloadReconciler

type ConfigMapReloadReconciler struct {
	ctrl.Manager
}

func (*ConfigMapReloadReconciler) Reconcile

func (ConfigMapReloadReconciler) RuntimeDoc added in v0.2.0

func (v ConfigMapReloadReconciler) RuntimeDoc(names ...string) ([]string, bool)

func (*ConfigMapReloadReconciler) SetupWithManager

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

type HostOptions

type HostOptions struct {
	// Cluster Ingress Gateway template
	IngressGateway []string `flag:",omitempty"`
}

func (HostOptions) RuntimeDoc added in v0.2.0

func (v HostOptions) RuntimeDoc(names ...string) ([]string, bool)

type KubePkgApplyReconciler

type KubePkgApplyReconciler struct {
	ctrl.Manager
	HostOptions HostOptions
}

func (*KubePkgApplyReconciler) Reconcile

func (r *KubePkgApplyReconciler) Reconcile(ctx context.Context, request reconcile.Request) (ret reconcile.Result, err error)

func (KubePkgApplyReconciler) RuntimeDoc added in v0.2.0

func (v KubePkgApplyReconciler) RuntimeDoc(names ...string) ([]string, bool)

func (*KubePkgApplyReconciler) SetupWithManager

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

type KubePkgStatusReconciler

type KubePkgStatusReconciler struct {
	ctrl.Manager
	HostOptions HostOptions
}

func (*KubePkgStatusReconciler) Reconcile

func (KubePkgStatusReconciler) RuntimeDoc added in v0.2.0

func (v KubePkgStatusReconciler) RuntimeDoc(names ...string) ([]string, bool)

func (*KubePkgStatusReconciler) SetupWithManager

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

type Operator added in v0.2.0

type Operator struct {
	HostOptions

	// Watch namespace
	WatchNamespace string `flag:",omitempty"`
	// The address the metric endpoint binds to
	MetricsAddr string `flag:",omitempty"`
	// Enable leader election for controller manager.
	EnableLeaderElection bool `flag:",omitempty"`
	// contains filtered or unexported fields
}

func (*Operator) Run added in v0.2.0

func (s *Operator) Run(ctx context.Context) error

func (Operator) RuntimeDoc added in v0.2.0

func (v Operator) RuntimeDoc(names ...string) ([]string, bool)

func (*Operator) Serve added in v0.2.0

func (s *Operator) Serve(ctx context.Context) error

func (*Operator) Shutdown added in v0.2.0

func (o *Operator) Shutdown(ctx context.Context) error

type Reconciler

type Reconciler interface {
	SetupWithManager(mgr ctrl.Manager) error
}

type SecretReloadReconciler

type SecretReloadReconciler struct {
	ctrl.Manager
}

func (*SecretReloadReconciler) Reconcile

func (SecretReloadReconciler) RuntimeDoc added in v0.2.0

func (v SecretReloadReconciler) RuntimeDoc(names ...string) ([]string, bool)

func (*SecretReloadReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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