Documentation
¶
Index ¶
- Constants
- func PatchObjectWithRetry(ctx context.Context, log logr.Logger, clnt client.Client, patchFn patchFunc, ...) error
- func PatchStatusWithRetry(ctx context.Context, log logr.Logger, clnt client.Client, ...) error
- type AgentActionReconciler
- type AgentConfigReconciler
- type ClientConn
- type CredentialSetReconciler
- type InstallationReconciler
- func (r *InstallationReconciler) CheckOrCreateInstallationOutputsCR(ctx context.Context, log logr.Logger, inst *v1.Installation) (ctrl.Result, error)
- func (r *InstallationReconciler) CreateInstallationOutputsCR(ctx context.Context, install *v1.Installation, ...) (*v1.InstallationOutput, error)
- func (r *InstallationReconciler) CreateStatusOutputs(ctx context.Context, install *v1.InstallationOutput, ...) (*v1.InstallationOutput, error)
- func (r *InstallationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *InstallationReconciler) SetupWithManager(mgr ctrl.Manager) error
- type ParameterSetReconciler
- type PorterClient
- type PorterResource
Constants ¶
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
Types ¶
type AgentActionReconciler ¶ added in v0.5.0
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
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 ClientConn ¶ added in v1.1.0
type ClientConn interface {
Close() error
}
func CreatePorterGRPCClient ¶ added in v1.1.0
func CreatePorterGRPCClient(ctx context.Context) (porterv1alpha1.PorterClient, ClientConn, error)
type CredentialSetReconciler ¶ added in v0.6.0
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 Recorder record.EventRecorder Scheme *runtime.Scheme CreateGRPCClient func(ctx context.Context) (porterv1alpha1.PorterClient, ClientConn, error) }
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 (r *InstallationReconciler) CreateInstallationOutputsCR(ctx context.Context, install *v1.Installation, in *installationv1.ListInstallationLatestOutputResponse) (*v1.InstallationOutput, error)
func (*InstallationReconciler) CreateStatusOutputs ¶ added in v1.0.0
func (r *InstallationReconciler) CreateStatusOutputs(ctx context.Context, install *v1.InstallationOutput, in *installationv1.ListInstallationLatestOutputResponse) (*v1.InstallationOutput, error)
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
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 PorterClient ¶ added in v1.0.0
type PorterClient interface { ListInstallations(ctx context.Context, in *installationv1.ListInstallationsRequest, opts ...grpc.CallOption) (*installationv1.ListInstallationsResponse, error) ListInstallationLatestOutputs(ctx context.Context, in *installationv1.ListInstallationLatestOutputRequest, opts ...grpc.CallOption) (*installationv1.ListInstallationLatestOutputResponse, error) }
type PorterResource ¶ added in v0.6.0
type PorterResource interface { client.Object GetStatus() porterv1.PorterResourceStatus SetStatus(value porterv1.PorterResourceStatus) }