Documentation
¶
Index ¶
- Constants
- type Crossplane
- func (c *Crossplane) BuildManifesto(ctx context.Context) (fluxcd.Manifesto, error)
- func (c *Crossplane) BuildSourceRepository(ctx context.Context) (fluxcd.SourceAdapter, error)
- func (*Crossplane) GetDependencies() []juggler.Component
- func (*Crossplane) GetName() string
- func (c *Crossplane) GetNamespace() string
- func (*Crossplane) Hooks() juggler.ComponentHooks
- func (c *Crossplane) IsEnabled() bool
- func (c *Crossplane) IsInstallable(ctx context.Context) (bool, error)
- type CrossplaneProvider
- func (c *CrossplaneProvider) BuildObjectToReconcile(_ context.Context) (client.Object, types.NamespacedName, error)
- func (c *CrossplaneProvider) GetDependencies() []juggler.Component
- func (c *CrossplaneProvider) GetName() string
- func (c *CrossplaneProvider) GetNamespace() string
- func (*CrossplaneProvider) Hooks() juggler.ComponentHooks
- func (c *CrossplaneProvider) IsEnabled() bool
- func (c *CrossplaneProvider) IsInstallable(ctx context.Context) (bool, error)
- func (c *CrossplaneProvider) IsObjectHealthy(obj client.Object) juggler.ResourceHealthiness
- func (*CrossplaneProvider) OrphanDetectorContext() object.DetectorContext
- func (c *CrossplaneProvider) ReconcileObject(ctx context.Context, obj client.Object) error
Constants ¶
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 ¶
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) GetNamespace ¶
func (c *Crossplane) GetNamespace() string
GetNamespace implements TargetComponent.
func (*Crossplane) Hooks ¶
func (*Crossplane) Hooks() juggler.ComponentHooks
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 ¶
func (*CrossplaneProvider) Hooks() juggler.ComponentHooks
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 ¶
func (c *CrossplaneProvider) IsObjectHealthy(obj client.Object) juggler.ResourceHealthiness
IsObjectHealthy implements object.ObjectComponent.
func (*CrossplaneProvider) OrphanDetectorContext ¶
func (*CrossplaneProvider) OrphanDetectorContext() object.DetectorContext
OrphanDetectorContext implements object.OrphanedObjectsDetector.
func (*CrossplaneProvider) ReconcileObject ¶
ReconcileObject implements object.ObjectComponent.