Documentation
¶
Index ¶
- type ReconcileHelper
- type RegistryClientOptions
- type StatusHelper
- func (helper *StatusHelper) MarkChartPullFailed(instance *v1alpha1.ApplicationGroup, err error)
- func (helper *StatusHelper) MarkFailed(instance *v1alpha1.ApplicationGroup, err error)
- func (helper *StatusHelper) MarkProgressing(instance *v1alpha1.ApplicationGroup)
- func (helper *StatusHelper) MarkSucceeded(ctx context.Context, instance *v1alpha1.ApplicationGroup) error
- func (helper *StatusHelper) MarkTerminating(instance *v1alpha1.ApplicationGroup)
- func (helper *StatusHelper) MarkWorkflowTemplateGenerationFailed(instance *v1alpha1.ApplicationGroup, err error)
- func (helper *StatusHelper) PatchStatus(ctx context.Context, instance *v1alpha1.ApplicationGroup) error
- func (helper *StatusHelper) UpdateFromWorkflowStatus(parent *v1alpha1.ApplicationGroup, instance *v1alpha13.Workflow, ...) error
- func (helper *StatusHelper) UpdateStatus(ctx context.Context, parent *v1alpha1.ApplicationGroup, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReconcileHelper ¶
type ReconcileHelper struct {
client.Client
logr.Logger
Instance *v1alpha1.ApplicationGroup
WorkflowClientBuilder *workflow.Builder
RegistryClient *registry.Client
StatusHelper *StatusHelper
RegistryOptions RegistryClientOptions
}
func (*ReconcileHelper) CreateOrUpdate ¶
func (helper *ReconcileHelper) CreateOrUpdate(ctx context.Context) error
type RegistryClientOptions ¶
type StatusHelper ¶
type StatusHelper struct {
client.Client
logr.Logger
PatchFrom client.Patch
Recorder record.EventRecorder
}
func (*StatusHelper) MarkChartPullFailed ¶
func (helper *StatusHelper) MarkChartPullFailed(instance *v1alpha1.ApplicationGroup, err error)
MarkChartPullFailed sets the meta.ReadyCondition to 'False', with a chart pull failed reason
func (*StatusHelper) MarkFailed ¶
func (helper *StatusHelper) MarkFailed(instance *v1alpha1.ApplicationGroup, err error)
MarkFailed sets the meta.ReadyCondition to 'False', with a failed reason
func (*StatusHelper) MarkProgressing ¶
func (helper *StatusHelper) MarkProgressing(instance *v1alpha1.ApplicationGroup)
MarkProgressing resets the conditions of the ApplicationGroup to metav1.Condition of type meta.ReadyCondition with status 'Unknown' and meta.StartingReason reason and message.
func (*StatusHelper) MarkSucceeded ¶
func (helper *StatusHelper) MarkSucceeded(ctx context.Context, instance *v1alpha1.ApplicationGroup) error
func (*StatusHelper) MarkTerminating ¶
func (helper *StatusHelper) MarkTerminating(instance *v1alpha1.ApplicationGroup)
MarkTerminating sets the meta.ReadyCondition to 'False', with the given meta.Terminating reason and message
func (*StatusHelper) MarkWorkflowTemplateGenerationFailed ¶
func (helper *StatusHelper) MarkWorkflowTemplateGenerationFailed(instance *v1alpha1.ApplicationGroup, err error)
MarkWorkflowTemplateGenerationFailed sets the meta.ReadyCondition to 'False', with a workflow template generation failed reason
func (*StatusHelper) PatchStatus ¶
func (helper *StatusHelper) PatchStatus(ctx context.Context, instance *v1alpha1.ApplicationGroup) error
func (*StatusHelper) UpdateFromWorkflowStatus ¶ added in v0.8.0
func (helper *StatusHelper) UpdateFromWorkflowStatus(parent *v1alpha1.ApplicationGroup, instance *v1alpha13.Workflow, wfType v1alpha1.WorkflowType) error
func (*StatusHelper) UpdateStatus ¶
func (helper *StatusHelper) UpdateStatus(ctx context.Context, parent *v1alpha1.ApplicationGroup, instance *v1alpha13.Workflow, wfType v1alpha1.WorkflowType) error
Click to show internal directories.
Click to hide internal directories.