module

package
v0.0.0-...-bc1b228 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ArtifactDownload

type ArtifactDownload struct {
	reconciler.Funcs
	// contains filtered or unexported fields
}

func NewArtifactDownload

func NewArtifactDownload(git GitRepositoryGetter, status StatusWriter) *ArtifactDownload

func (*ArtifactDownload) Reconcile

func (a *ArtifactDownload) Reconcile(ctx context.Context, obj client.Object) (ctrl.Result, error)

type CheckComponents

type CheckComponents struct {
	reconciler.Funcs
	// contains filtered or unexported fields
}

func NewCheckComponents

func NewCheckComponents(manifest ManifestReader, object ObjectConverter, status StatusWriter) *CheckComponents

func (*CheckComponents) Reconcile

func (c *CheckComponents) Reconcile(ctx context.Context, obj client.Object) (ctrl.Result, error)

type DesiredState

type DesiredState struct {
	reconciler.Funcs
	// contains filtered or unexported fields
}

func NewDesiredState

func NewDesiredState(filters *Filters, transformers *Transformers, manifest ManifestReader) *DesiredState

func (*DesiredState) Reconcile

func (d *DesiredState) Reconcile(ctx context.Context, obj client.Object) (ctrl.Result, error)

type Filters

type Filters struct {
	*filter.GitRepository
}

type GitRepositoryGetter

type GitRepositoryGetter interface {
	GetGitRepository(ctx context.Context, key client.ObjectKey) (*v1beta1.GitRepository, error)
}

type Helm

type Helm interface {
	Template(name, chart string, values map[string]interface{}) (mf.Manifest, error)
}

type HelmClient

type HelmClient interface {
	Template(ctx context.Context, releaseName, source, path string, values *apiextensionsv1.JSON) (mf.Manifest, error)
}

type HelmValidation

type HelmValidation struct {
	reconciler.Funcs
	// contains filtered or unexported fields
}

func NewHelmValidation

func NewHelmValidation(helm HelmClient, status StatusWriter) *HelmValidation

func (*HelmValidation) Reconcile

func (h *HelmValidation) Reconcile(ctx context.Context, obj client.Object) (ctrl.Result, error)

type ManifestReader

type ManifestReader interface {
	FromBytes(ctx context.Context, manifests []byte) (mf.Manifest, error)
	FromString(ctx context.Context, manifests string) (mf.Manifest, error)
	FromUnstructured(ctx context.Context, manifests []unstructured.Unstructured) (mf.Manifest, error)
	LoadDefaults(ctx context.Context) (mf.Manifest, error)
}

type ObjectConverter

type ObjectConverter interface {
	FromUnstructured(in *unstructured.Unstructured, out interface{}) error
}

type Status

type Status struct {
	reconciler.Funcs
	// contains filtered or unexported fields
}

func NewStatus

func NewStatus(status StatusWriter) *Status

func (*Status) Reconcile

func (s *Status) Reconcile(ctx context.Context, obj client.Object) (ctrl.Result, error)

type StatusWriter

type StatusWriter interface {
	UpdateModuleStatus(ctx context.Context, module *deployv1alpha1.Module) (ctrl.Result, error)
}

type Transformers

type Transformers struct {
	*transformer.GitRepository
	*transformer.Metadata
}

Jump to

Keyboard shortcuts

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