component

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: Apache-2.0 Imports: 30 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
	Values               *apiextensionsv1.JSON `json:"values,omitempty"`
	ChartPullSecretName  string
	ImagePullSecretNames []string
}

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
	PullSecrets []corev1.LocalObjectReference
}

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.

type PlatformSecret added in v0.1.1

type PlatformSecret struct {
	SourceClient   client.Client
	Source, Target types.NamespacedName
	Enabled        bool
}

PlatformSecret represents a Kubernetes Secret that is copied from a source namespace in the Platform cluster to the ManagedControlPlane tenant namespace in the Plaform cluster.

func (*PlatformSecret) BuildObjectToReconcile added in v0.1.1

func (s *PlatformSecret) BuildObjectToReconcile(_ context.Context) (client.Object, types.NamespacedName, error)

BuildObjectToReconcile implements object.ObjectComponent.

func (*PlatformSecret) GetDependencies added in v0.1.1

func (s *PlatformSecret) GetDependencies() []juggler.Component

GetDependencies implements object.ObjectComponent.

func (*PlatformSecret) GetName added in v0.1.1

func (s *PlatformSecret) GetName() string

GetName implements object.ObjectComponent.

func (*PlatformSecret) Hooks added in v0.1.1

Hooks implements object.ObjectComponent.

func (*PlatformSecret) IsEnabled added in v0.1.1

func (s *PlatformSecret) IsEnabled() bool

IsEnabled implements object.ObjectComponent.

func (*PlatformSecret) IsInstallable added in v0.1.1

func (s *PlatformSecret) IsInstallable(_ context.Context) (bool, error)

IsInstallable implements object.ObjectComponent.

func (*PlatformSecret) IsObjectHealthy added in v0.1.1

func (s *PlatformSecret) IsObjectHealthy(obj client.Object) juggler.ResourceHealthiness

IsObjectHealthy implements object.ObjectComponent.

func (*PlatformSecret) IsStatusInternal added in v0.1.1

func (s *PlatformSecret) IsStatusInternal() bool

IsStatusInternal implements StatusVisibility interface.

func (*PlatformSecret) OrphanDetectorContext added in v0.1.1

func (s *PlatformSecret) OrphanDetectorContext() object.DetectorContext

OrphanDetectorContext implements OrphanedObjectsDetector.

func (*PlatformSecret) ReconcileObject added in v0.1.1

func (s *PlatformSecret) ReconcileObject(ctx context.Context, obj client.Object) error

ReconcileObject implements object.ObjectComponent.

type Secret added in v0.1.1

type Secret struct {
	SourceClient   client.Client
	Source, Target types.NamespacedName
	Enabled        bool
}

Secret represents a Kubernetes Secret that is copied from a source namespace to the Crossplane namespace.

func (*Secret) BuildObjectToReconcile added in v0.1.1

func (s *Secret) BuildObjectToReconcile(_ context.Context) (client.Object, types.NamespacedName, error)

BuildObjectToReconcile implements object.ObjectComponent.

func (*Secret) GetDependencies added in v0.1.1

func (s *Secret) GetDependencies() []juggler.Component

GetDependencies implements object.ObjectComponent.

func (*Secret) GetName added in v0.1.1

func (s *Secret) GetName() string

GetName implements object.ObjectComponent.

func (*Secret) GetNamespace added in v0.1.1

func (s *Secret) GetNamespace() string

GetNamespace implements TargetComponent.

func (*Secret) Hooks added in v0.1.1

func (s *Secret) Hooks() juggler.ComponentHooks

Hooks implements object.ObjectComponent.

func (*Secret) IsEnabled added in v0.1.1

func (s *Secret) IsEnabled() bool

IsEnabled implements object.ObjectComponent.

func (*Secret) IsInstallable added in v0.1.1

func (s *Secret) IsInstallable(_ context.Context) (bool, error)

IsInstallable implements object.ObjectComponent.

func (*Secret) IsObjectHealthy added in v0.1.1

func (s *Secret) IsObjectHealthy(obj client.Object) juggler.ResourceHealthiness

IsObjectHealthy implements object.ObjectComponent.

func (*Secret) IsStatusInternal added in v0.1.1

func (s *Secret) IsStatusInternal() bool

IsStatusInternal implements StatusVisibility interface.

func (*Secret) OrphanDetectorContext added in v0.1.1

func (s *Secret) OrphanDetectorContext() object.DetectorContext

OrphanDetectorContext implements OrphanedObjectsDetector.

func (*Secret) ReconcileObject added in v0.1.1

func (s *Secret) 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