controllers

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WfInstanceIdLabelKey = "workflows.argoproj.io/controller-instanceid"
	WfInstanceId         = "activemonitor-workflows"
	PodGCOnPodCompletion = "OnPodCompletion"
	WfManagedByLabelKey  = "workflows.argoproj.io/managed-by"
	WfManagedByValue     = "active-monitor"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheckReconciler

type HealthCheckReconciler struct {
	client.Client
	DynClient dynamic.Interface
	Recorder  record.EventRecorder

	Log                logr.Logger
	MaxParallel        int
	RepeatTimersByName map[string]*time.Timer

	TimerLock sync.RWMutex
	// contains filtered or unexported fields
}

HealthCheckReconciler reconciles a HealthCheck object

func NewHealthCheckReconciler added in v0.5.0

func NewHealthCheckReconciler(mgr manager.Manager, log logr.Logger, MaxParallel int) *HealthCheckReconciler

NewHealthCheckReconciler returns an instance of HealthCheckReconciler

func (*HealthCheckReconciler) ContainsEqualFoldSubstring added in v0.5.1

func (r *HealthCheckReconciler) ContainsEqualFoldSubstring(str, substr string) bool

func (*HealthCheckReconciler) DeleteClusterRole added in v0.4.0

func (r *HealthCheckReconciler) DeleteClusterRole(ctx context.Context, clientset kubernetes.Interface, log logr.Logger, hc *activemonitorv1alpha1.HealthCheck, clusterrole string) error

Delete a ClusterRole

func (*HealthCheckReconciler) DeleteClusterRoleBinding added in v0.4.0

func (r *HealthCheckReconciler) DeleteClusterRoleBinding(ctx context.Context, clientset kubernetes.Interface, log logr.Logger, hc *activemonitorv1alpha1.HealthCheck, clusterrolebinding string, clusterrole string, serviceaccount string, namespace string) error

Delete ClusterRoleBinding

func (*HealthCheckReconciler) DeleteNameSpaceRole added in v0.4.0

func (r *HealthCheckReconciler) DeleteNameSpaceRole(ctx context.Context, clientset kubernetes.Interface, log logr.Logger, hc *activemonitorv1alpha1.HealthCheck, nsrole string, namespace string) error

Delete NamespaceRole

func (*HealthCheckReconciler) DeleteNameSpaceRoleBinding added in v0.4.0

func (r *HealthCheckReconciler) DeleteNameSpaceRoleBinding(ctx context.Context, clientset kubernetes.Interface, log logr.Logger, hc *activemonitorv1alpha1.HealthCheck, rolebinding string, nsrole string, serviceaccount string, namespace string) error

Delete NamespaceRoleBinding

func (*HealthCheckReconciler) DeleteServiceAccount added in v0.4.0

func (r *HealthCheckReconciler) DeleteServiceAccount(ctx context.Context, clientset kubernetes.Interface, log logr.Logger, hc *activemonitorv1alpha1.HealthCheck, name string, namespace string) error

Delete a service Account

func (*HealthCheckReconciler) GetTimerByName added in v0.5.2

func (r *HealthCheckReconciler) GetTimerByName(name string) *time.Timer

func (*HealthCheckReconciler) IsStorageError added in v0.5.1

func (r *HealthCheckReconciler) IsStorageError(err error) bool

func (*HealthCheckReconciler) Reconcile

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

Reconcile per kubebuilder v2 pattern

func (*HealthCheckReconciler) SetupWithManager

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

SetupWithManager as used in main package by kubebuilder v2.0.0.alpha4

Jump to

Keyboard shortcuts

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