resource

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller[T client.Object] struct {
	// contains filtered or unexported fields
}

func NewController

func NewController[T client.Object](client client.Client) *Controller[T]

This is a generic controller that performs a write to custom resources. This is needed to update the stored version of the custom resource to v1 from v1beta1. A no-op write could have been done instead, but the annotation is used so that in case of rollback to v1beta1, the migration controller on v1beta1 versions will understand which resources have yet to be migrated.

func (*Controller[T]) Reconcile

func (c *Controller[T]) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

func (*Controller[T]) Register

func (c *Controller[T]) Register(_ context.Context, m manager.Manager) error

Jump to

Keyboard shortcuts

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