reconciler

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PollingDelay is the amount of time to wait between polling for the status of a resource.
	PollingDelay time.Duration = 5 * time.Second

	// RecipeFinalizer is the name of the finalizer added to Recipes.
	RecipeFinalizer = "radapp.io/recipe-finalizer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationClientImpl

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

type Client

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

func NewClient

func NewClient(connection sdk.Connection) *Client

func (*Client) Applications

func (c *Client) Applications(scope string) ApplicationClient

func (*Client) Containers

func (c *Client) Containers(scope string) ContainerClient

func (*Client) Environments

func (c *Client) Environments(scope string) EnvironmentClient

func (*Client) Groups

func (c *Client) Groups(scope string) ResourceGroupClient

func (*Client) Resources

func (c *Client) Resources(scope string, resourceType string) ResourceClient

type ContainerClientImpl

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

func (*ContainerClientImpl) ContinueCreateOperation

func (*ContainerClientImpl) ContinueDeleteOperation

type EnvironmentClientImpl

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

type Poller

type Poller[T any] interface {
	Done() bool
	Poll(ctx context.Context) (*http.Response, error)
	Result(ctx context.Context) (T, error)
	ResumeToken() (string, error)
}

type RadiusClient

type RadiusClient interface {
	Applications(scope string) ApplicationClient
	Containers(scope string) ContainerClient
	Environments(scope string) EnvironmentClient
	Groups(scope string) ResourceGroupClient
	Resources(scope string, resourceType string) ResourceClient
}

type RecipeReconciler

type RecipeReconciler struct {
	// Client is the Kubernetes client.
	Client client.Client

	// Scheme is the Kubernetes scheme.
	Scheme *runtime.Scheme

	// EventRecorder is the Kubernetes event recorder.
	EventRecorder record.EventRecorder

	// Radius is the Radius client.
	Radius RadiusClient

	// DelayInterval is the amount of time to wait between operations.
	DelayInterval time.Duration
}

RecipeReconciler reconciles a Recipe object.

func (*RecipeReconciler) Reconcile

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

Reconcile is the main reconciliation loop for the Recipe resource.

func (*RecipeReconciler) SetupWithManager

func (r *RecipeReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ResourceClientImpl

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

func (*ResourceClientImpl) ContinueCreateOperation

func (*ResourceClientImpl) ContinueDeleteOperation

func (rc *ResourceClientImpl) ContinueDeleteOperation(ctx context.Context, resumeToken string) (Poller[generated.GenericResourcesClientDeleteResponse], error)

func (*ResourceClientImpl) Get

func (*ResourceClientImpl) ListSecrets

type ResourceGroupClientImpl

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

Jump to

Keyboard shortcuts

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