controllers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Includes information about the code path
	Log5Trace = iota

	// Includes additional logs and data that help with debugging
	Log4Debug

	// Includes information about the state of the host
	Log3SystemState

	// Includes information about the state of the controllers
	Log2ApplicationState

	// Includes information about notable actions performed
	Log1Info

	// Error and warning messages only
	Log0Error
)

Variables

This section is empty.

Functions

func PatchObjectWithRetry added in v0.5.0

func PatchObjectWithRetry(ctx context.Context, log logr.Logger, clnt client.Client, patchFn patchFunc, obj client.Object, newObj func() client.Object) error

func PatchStatusWithRetry added in v0.8.0

func PatchStatusWithRetry(ctx context.Context, log logr.Logger, clnt client.Client, patchStatusFn patchStatusFunc, obj client.Object, newObj func() client.Object) error

Types

type AgentActionReconciler added in v0.5.0

type AgentActionReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

func (*AgentActionReconciler) Reconcile added in v0.5.0

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

Reconcile is called when the spec of an AgentAction is changed or a job associated with an agent is updated. Either schedule a job to handle a spec change, or update the AgentAction status in response to the job's state.

func (*AgentActionReconciler) SetupWithManager added in v0.5.0

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

SetupWithManager sets up the controller with the Manager.

type AgentConfigReconciler added in v0.8.0

type AgentConfigReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

AgentConfigReconciler calls porter to execute changes made to an AgentConfig CRD

func (*AgentConfigReconciler) Reconcile added in v0.8.0

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

Reconcile is called when the spec of an agent config is changed or a job associated with an agent config is updated. Either schedule a job to handle a spec change, or update the agent config status in response to the job's state.

func (*AgentConfigReconciler) SetupWithManager added in v0.8.0

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

SetupWithManager sets up the controller with the Manager.

type CredentialSetReconciler added in v0.6.0

type CredentialSetReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CredentialSetReconciler reconciles a CredentialSet object

func (*CredentialSetReconciler) Reconcile added in v0.6.0

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

Reconcile is called when the spec of a credential set is changed

func (*CredentialSetReconciler) SetupWithManager added in v0.6.0

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

SetupWithManager sets up the controller with the Manager.

type InstallationReconciler

type InstallationReconciler struct {
	client.Client
	Log              logr.Logger
	PorterGRPCClient PorterClient
	Scheme           *runtime.Scheme
}

InstallationReconciler calls porter to execute changes made to an Installation CRD

func (*InstallationReconciler) CheckOrCreateInstallationOutputsCR added in v1.0.0

func (r *InstallationReconciler) CheckOrCreateInstallationOutputsCR(ctx context.Context, log logr.Logger, inst *v1.Installation) (ctrl.Result, error)

func (*InstallationReconciler) CreateInstallationOutputsCR added in v1.0.0

func (*InstallationReconciler) CreateStatusOutputs added in v1.0.0

func (*InstallationReconciler) Reconcile

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

Reconcile is called when the spec of an installation is changed or a job associated with an installation is updated. Either schedule a job to handle a spec change, or update the installation status in response to the job's state.

func (*InstallationReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ParameterSetReconciler added in v0.6.0

type ParameterSetReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

ParameterSetReconciler reconciles a ParameterSet object

func (*ParameterSetReconciler) Reconcile added in v0.6.0

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

Reconcile is called when the spec of a parameter set is changed

func (*ParameterSetReconciler) SetupWithManager added in v0.6.0

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

SetupWithManager sets up the controller with the Manager.

type PorterResource added in v0.6.0

type PorterResource interface {
	client.Object
	GetStatus() porterv1.PorterResourceStatus
	SetStatus(value porterv1.PorterResourceStatus)
}

Jump to

Keyboard shortcuts

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