Documentation ¶
Index ¶
- func CreateSelfSubjectAccessReviews(ctx context.Context, kubeClient kubernetes.Interface, ...) (bool, *authorizationv1.SelfSubjectAccessReview, error)
- func FilterClusterAnnotations(annotations map[string]string) map[string]string
- func GetBootstrapSSARs() []authorizationv1.SelfSubjectAccessReview
- func GetClusterChanges(client clusterlister.PlacementDecisionLister, ...) (sets.Set[string], sets.Set[string], error)
- func GetHubConfigSSARs(clusterName string) []authorizationv1.SelfSubjectAccessReview
- func NewEventRecorder(ctx context.Context, scheme *runtime.Scheme, kubeClient kubernetes.Interface, ...) (kevents.EventRecorder, error)
- type PlacementDecisionGetter
- type RequeueError
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 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 ¶
func (pdl PlacementDecisionGetter) List(selector labels.Selector, namespace string) ([]*clusterv1beta1.PlacementDecision, error)
type RequeueError ¶ added in v0.13.0
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
Click to show internal directories.
Click to hide internal directories.