helpers

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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

func (*ReconcileHelper) Reverse

func (helper *ReconcileHelper) Reverse(ctx context.Context) error

func (*ReconcileHelper) Rollback

func (helper *ReconcileHelper) Rollback(ctx context.Context) error

type RegistryClientOptions

type RegistryClientOptions struct {
	StagingRepoName         string
	TargetDir               string
	CleanupDownloadedCharts bool
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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