typeresolver

package
v0.0.0-...-4efcaec Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TypeResolver

type TypeResolver struct {
	// contains filtered or unexported fields
}

TypeResolver keeps the preferred GroupVersionKind for all the types in the cluster.

func NewTypeResolver

func NewTypeResolver(mgr ctrl.Manager, logger logr.Logger) (*TypeResolver, error)

NewTypeResolver creates a new TypeResolver

func (*TypeResolver) Reconcile

Reconcile implements reconciler.Reconciler. This function handles reconciliation for the type mapping. +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch

func (*TypeResolver) Refresh

func (r *TypeResolver) Refresh()

Refresh refreshes the type mapping by querying the api server

func (*TypeResolver) Resolve

Resolve maps the provided GroupKind to a GroupVersionKind

Jump to

Keyboard shortcuts

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