Help us shape the future of Go! Take the 2026 Go Developer Survey

root

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KptGroup = "kpt"
)

Variables

This section is empty.

Functions

func NewController

func NewController(mgr manager.Manager, channel chan event.GenericEvent,
	logger logr.Logger, resolver *typeresolver.TypeResolver, group string, resMap *resourcemap.ResourceMap) error

NewController creates a new Reconciler and registers it with the provided manager

Types

type NoGenericEventPredicate

type NoGenericEventPredicate struct {
	predicate.Funcs
}

NoGenericEventPredicate skips all the generic events

func (NoGenericEventPredicate) Generic

Generic skips all generic events

type OwnedByConfigSyncPredicate

type OwnedByConfigSyncPredicate struct{}

OwnedByConfigSyncPredicate filters events for objects that have the label "app.kubernetes.io/managed-by=configmanagement.gke.io"

func (OwnedByConfigSyncPredicate) Create

Create implements predicate.Predicate

func (OwnedByConfigSyncPredicate) Delete

Delete implements predicate.Predicate

func (OwnedByConfigSyncPredicate) Generic

Generic implements predicate.Predicate

func (OwnedByConfigSyncPredicate) Update

Update implements predicate.Predicate

type Reconciler

type Reconciler struct {
	*controllers.LoggingController
	// contains filtered or unexported fields
}

Reconciler reconciles a ResourceGroup object It only accepts the Create, Update, Delete events of ResourceGroup objects.

func (*Reconciler) Reconcile

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

Reconcile implements reconcile.Reconciler. This function handles reconciliation for ResourceGroup objects. +kubebuilder:rbac:groups=kpt.dev,resources=resourcegroups,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=kpt.dev,resources=resourcegroups/status,verbs=get;update;patch +kubebuilder:rbac:groups=*,resources=*,verbs=get;list;watch

Jump to

Keyboard shortcuts

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