component

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CrossplaneRelease is the name of the Helm release for Crossplane.
	CrossplaneRelease = "crossplane"

	// CrossplaneNamespace is the namespace where Crossplane is installed.
	CrossplaneNamespace = "crossplane-system"

	// ComponentNameCrossplane is the name of the Crossplane component.
	ComponentNameCrossplane = "Crossplane"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Crossplane

type Crossplane struct {
	Config    *v1alpha1.CrossplaneSpec
	ChartSpec *v1beta1.ChartSpec
	Values    *apiextensionsv1.JSON `json:"values,omitempty"`
}

Crossplane represents the Crossplane component configuration.

func (*Crossplane) BuildManifesto

func (c *Crossplane) BuildManifesto(ctx context.Context) (fluxcd.Manifesto, error)

BuildManifesto implements FluxComponent.

func (*Crossplane) BuildSourceRepository

func (c *Crossplane) BuildSourceRepository(ctx context.Context) (fluxcd.SourceAdapter, error)

BuildSourceRepository implements FluxComponent.

func (*Crossplane) GetDependencies

func (*Crossplane) GetDependencies() []juggler.Component

GetDependencies implements Component.

func (*Crossplane) GetName

func (*Crossplane) GetName() string

GetName implements Component.

func (*Crossplane) GetNamespace

func (c *Crossplane) GetNamespace() string

GetNamespace implements TargetComponent.

func (*Crossplane) Hooks

Hooks implements Component.

func (*Crossplane) IsEnabled

func (c *Crossplane) IsEnabled() bool

IsEnabled implements Component.

func (*Crossplane) IsInstallable

func (c *Crossplane) IsInstallable(ctx context.Context) (bool, error)

IsInstallable implements FluxComponent.

type CrossplaneProvider

type CrossplaneProvider struct {
	Config  *v1alpha1.CrossplaneProviderConfig
	Enabled bool
}

CrossplaneProvider represents a Crossplane provider configuration for a Crossplane instance.

func (*CrossplaneProvider) BuildObjectToReconcile

func (c *CrossplaneProvider) BuildObjectToReconcile(_ context.Context) (client.Object, types.NamespacedName, error)

BuildObjectToReconcile implements object.ObjectComponent.

func (*CrossplaneProvider) GetDependencies

func (c *CrossplaneProvider) GetDependencies() []juggler.Component

GetDependencies implements Component.

func (*CrossplaneProvider) GetName

func (c *CrossplaneProvider) GetName() string

GetName implements Component.

func (*CrossplaneProvider) GetNamespace

func (c *CrossplaneProvider) GetNamespace() string

GetNamespace implements TargetComponent.

func (*CrossplaneProvider) Hooks

Hooks implements Component.

func (*CrossplaneProvider) IsEnabled

func (c *CrossplaneProvider) IsEnabled() bool

IsEnabled implements Component.

func (*CrossplaneProvider) IsInstallable

func (c *CrossplaneProvider) IsInstallable(ctx context.Context) (bool, error)

IsInstallable implements Component.

func (*CrossplaneProvider) IsObjectHealthy

IsObjectHealthy implements object.ObjectComponent.

func (*CrossplaneProvider) OrphanDetectorContext

func (*CrossplaneProvider) OrphanDetectorContext() object.DetectorContext

OrphanDetectorContext implements object.OrphanedObjectsDetector.

func (*CrossplaneProvider) ReconcileObject

func (c *CrossplaneProvider) ReconcileObject(ctx context.Context, obj client.Object) error

ReconcileObject implements object.ObjectComponent.

Jump to

Keyboard shortcuts

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