controller

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasChanged added in v1.0.1

func HasChanged(action ssa.Action) bool

HasChanged evaluates the given action and returns true if the action type matches a resource mutation or deletion.

func MkdirTempAbs

func MkdirTempAbs(dir, pattern string) (string, error)

MkdirTempAbs creates a tmp dir and returns the absolute path to the dir. This is required since certain OSes like MacOS create temporary files in e.g. `/private/var`, to which `/var` is a symlink.

Types

type KustomizationReconciler

type KustomizationReconciler struct {
	client.Client
	kuberecorder.EventRecorder
	runtimeCtrl.Metrics

	StatusPoller   *polling.StatusPoller
	PollingOpts    polling.Options
	ControllerName string

	NoCrossNamespaceRefs    bool
	NoRemoteBases           bool
	FailFast                bool
	DefaultServiceAccount   string
	KubeConfigOpts          runtimeClient.KubeConfigOptions
	ConcurrentSSA           int
	DisallowedFieldManagers []string
	// contains filtered or unexported fields
}

KustomizationReconciler reconciles a Kustomization object

func (*KustomizationReconciler) Reconcile

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

func (*KustomizationReconciler) SetupWithManager

type KustomizationReconcilerOptions

type KustomizationReconcilerOptions struct {
	HTTPRetry                 int
	DependencyRequeueInterval time.Duration
	RateLimiter               ratelimiter.RateLimiter
}

KustomizationReconcilerOptions contains options for the KustomizationReconciler.

type SourceRevisionChangePredicate

type SourceRevisionChangePredicate struct {
	predicate.Funcs
}

func (SourceRevisionChangePredicate) Update

Jump to

Keyboard shortcuts

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