controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func AnnotateHash

func AnnotateHash(o client.Object, key string, hash string)

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, options Options) error

Types

type ConfigMapReloadReconciler

type ConfigMapReloadReconciler struct {
	ctrl.Manager
}

func (*ConfigMapReloadReconciler) Reconcile

func (*ConfigMapReloadReconciler) SetupWithManager

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

type HostOptions

type HostOptions struct {
	InternalHost           string `flag:"internal-host" env:"INTERNAL_HOST" desc:"cluster hostname or ip for internal access"`
	ExternalHost           string `flag:"external-host" env:"EXTERNAL_HOST" desc:"cluster hostname or ip for external access"`
	EnableHttps            bool   `flag:"enable-https" env:"ENABLE_HTTPS" desc:"https enabled or not"`
	EnableAutoInternalHost bool   `` /* 129-byte string literal not displayed */
}

type KubePkgApplyReconciler

type KubePkgApplyReconciler struct {
	ctrl.Manager
}

func (*KubePkgApplyReconciler) Reconcile

func (*KubePkgApplyReconciler) SetupWithManager

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

type KubePkgStatusReconciler

type KubePkgStatusReconciler struct {
	ctrl.Manager
}

func (*KubePkgStatusReconciler) Reconcile

func (*KubePkgStatusReconciler) SetupWithManager

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

type Options

type Options struct {
	HostOptions
}

type Reconciler

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

type SecretReloadReconciler

type SecretReloadReconciler struct {
	ctrl.Manager
}

func (*SecretReloadReconciler) Reconcile

func (*SecretReloadReconciler) SetupWithManager

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

type ServiceReconciler

type ServiceReconciler struct {
	ctrl.Manager
	HostOptions HostOptions
	// contains filtered or unexported fields
}

func (*ServiceReconciler) Endpoint

func (r *ServiceReconciler) Endpoint(hostname string) string

func (*ServiceReconciler) ExternalHost

func (r *ServiceReconciler) ExternalHost(nn types.NamespacedName) (string, bool)

func (*ServiceReconciler) InternalHost

func (r *ServiceReconciler) InternalHost(nn types.NamespacedName) (string, bool)

func (*ServiceReconciler) Reconcile

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

func (*ServiceReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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