module

package
v0.0.0-...-2cb76a2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DuplicatedComponent = "DuplicatedComponent"
)
View Source
const (
	SuccessManifestLoadMessage = "Manifests were successfully loaded"
)

Variables

View Source
var ErrorDuplicatedComponent = errors.New("component already present on module")

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) (*sourcev1beta1.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 KustomizationClient

type KustomizationClient interface {
	Kustomize(ctx context.Context, source, path string) (mf.Manifest, error)
}

type KustomizationValidation

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

func NewKustomizationValidation

func NewKustomizationValidation(kustomization KustomizationClient, status StatusWriter) *KustomizationValidation

func (*KustomizationValidation) Reconcile

type ManifestClient

type ManifestClient interface {
	LoadFromSource(ctx context.Context, source, path string, recursive bool) (mf.Manifest, 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 ManifestValidation

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

func NewManifestValidation

func NewManifestValidation(status StatusWriter, manifestClient ManifestClient) *ManifestValidation

func (*ManifestValidation) Reconcile

func (h *ManifestValidation) Reconcile(ctx context.Context, obj client.Object) (ctrl.Result, 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 *charlescdv1alpha1.Module) (ctrl.Result, error)
}

type Transformers

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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