controllers

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthConfigsReadyzSubpath = "authconfigs"
)

Variables

This section is empty.

Functions

func LabelSelectorPredicate added in v0.6.0

func LabelSelectorPredicate(selector labels.Selector) predicate.Funcs

func ToLabelSelector added in v0.6.0

func ToLabelSelector(s string) labels.Selector

func Watched added in v0.6.0

func Watched(object WatchedObject, selector labels.Selector) bool

Types

type AuthConfigReconciler added in v0.4.0

type AuthConfigReconciler struct {
	client.Client
	Logger                      logr.Logger
	Scheme                      *runtime.Scheme
	Index                       index.Index
	AllowSupersedingHostSubsets bool
	StatusReport                *StatusReportMap
	LabelSelector               labels.Selector
	Namespace                   string
	// contains filtered or unexported fields
}

AuthConfigReconciler reconciles an AuthConfig object

func (*AuthConfigReconciler) ClusterWide added in v0.8.0

func (r *AuthConfigReconciler) ClusterWide() bool

func (*AuthConfigReconciler) Ready added in v0.11.0

func (r *AuthConfigReconciler) Ready(includes, _ []string, _ bool) error

func (*AuthConfigReconciler) Reconcile added in v0.4.0

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

func (*AuthConfigReconciler) SetupWithManager added in v0.4.0

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

type AuthConfigStatusUpdater added in v0.4.0

type AuthConfigStatusUpdater struct {
	client.Client
	Logger        logr.Logger
	StatusReport  *StatusReportMap
	LabelSelector labels.Selector
}

AuthConfigStatusUpdater updates the status of a newly reconciled auth config

func (*AuthConfigStatusUpdater) Reconcile added in v0.4.0

func (u *AuthConfigStatusUpdater) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*AuthConfigStatusUpdater) SetupWithManager added in v0.4.0

func (u *AuthConfigStatusUpdater) SetupWithManager(mgr ctrl.Manager) error

type SecretReconciler

type SecretReconciler struct {
	client.Client
	Logger        logr.Logger
	Scheme        *runtime.Scheme
	Index         index.Index
	LabelSelector labels.Selector
	Namespace     string
}

SecretReconciler reconciles k8s Secret objects

func (*SecretReconciler) ClusterWide added in v0.8.0

func (r *SecretReconciler) ClusterWide() bool

func (*SecretReconciler) Reconcile

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

func (*SecretReconciler) SetupWithManager

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

type StatusReport added in v0.10.0

type StatusReport struct {
	Reason        string
	Message       string
	LinkedHosts   []string
	LastUpdatedAt time.Time
}

type StatusReportMap added in v0.10.0

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

func NewStatusReportMap added in v0.10.0

func NewStatusReportMap() *StatusReportMap

func (*StatusReportMap) Clear added in v0.10.0

func (m *StatusReportMap) Clear(id string)

func (*StatusReportMap) Get added in v0.10.0

func (m *StatusReportMap) Get(id string) (status StatusReport, found bool)

func (*StatusReportMap) ReadAll added in v0.11.0

func (m *StatusReportMap) ReadAll() map[string]StatusReport

func (*StatusReportMap) Set added in v0.10.0

func (m *StatusReportMap) Set(id, reason, message string, hosts []string)

type WatchedObject added in v0.6.0

type WatchedObject interface {
	GetLabels() map[string]string
}

Directories

Path Synopsis
mocks
Package mock_builder is a generated GoMock package.
Package mock_builder is a generated GoMock package.
Package mock_controllers is a generated GoMock package.
Package mock_controllers is a generated GoMock package.
controller-runtime/client
Package mock_client is a generated GoMock package.
Package mock_client is a generated GoMock package.

Jump to

Keyboard shortcuts

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