helpers

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSelfSubjectAccessReviews added in v0.14.0

func CreateSelfSubjectAccessReviews(
	ctx context.Context,
	kubeClient kubernetes.Interface,
	selfSubjectAccessReviews []authorizationv1.SelfSubjectAccessReview) (bool, *authorizationv1.SelfSubjectAccessReview, error)

func FilterClusterAnnotations

func FilterClusterAnnotations(annotations map[string]string) map[string]string

func GetBootstrapSSARs added in v0.14.0

func GetBootstrapSSARs() []authorizationv1.SelfSubjectAccessReview

func GetClusterChanges

func GetClusterChanges(client clusterlister.PlacementDecisionLister, placement *clusterv1beta1.Placement,
	existingClusters sets.Set[string]) (sets.Set[string], sets.Set[string], error)

Get added and deleted clusters names

func GetHubConfigSSARs added in v0.14.0

func GetHubConfigSSARs(clusterName string) []authorizationv1.SelfSubjectAccessReview

func NewEventRecorder added in v0.14.0

func NewEventRecorder(ctx context.Context, scheme *runtime.Scheme,
	kubeClient kubernetes.Interface, controllerName string) (kevents.EventRecorder, error)

NewEventRecorder creates a new event recorder for the given controller, it will also log the events

Types

type PlacementDecisionGetter

type PlacementDecisionGetter struct {
	Client clusterlister.PlacementDecisionLister
}

func (PlacementDecisionGetter) List

type RequeueError added in v0.13.0

type RequeueError struct {
	RequeueTime time.Duration
	Message     string
}

func NewRequeueError added in v0.13.0

func NewRequeueError(msg string, requeueTime time.Duration) RequeueError

func (RequeueError) Error added in v0.13.0

func (r RequeueError) Error() string

Jump to

Keyboard shortcuts

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