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
- type PlatformSecret
- func (s *PlatformSecret) BuildObjectToReconcile(_ context.Context) (client.Object, types.NamespacedName, error)
- func (s *PlatformSecret) GetDependencies() []juggler.Component
- func (s *PlatformSecret) GetName() string
- func (s *PlatformSecret) Hooks() juggler.ComponentHooks
- func (s *PlatformSecret) IsEnabled() bool
- func (s *PlatformSecret) IsInstallable(_ context.Context) (bool, error)
- func (s *PlatformSecret) IsObjectHealthy(obj client.Object) juggler.ResourceHealthiness
- func (s *PlatformSecret) IsStatusInternal() bool
- func (s *PlatformSecret) OrphanDetectorContext() object.DetectorContext
- func (s *PlatformSecret) ReconcileObject(ctx context.Context, obj client.Object) error
- type Secret
- func (s *Secret) BuildObjectToReconcile(_ context.Context) (client.Object, types.NamespacedName, error)
- func (s *Secret) GetDependencies() []juggler.Component
- func (s *Secret) GetName() string
- func (s *Secret) GetNamespace() string
- func (s *Secret) Hooks() juggler.ComponentHooks
- func (s *Secret) IsEnabled() bool
- func (s *Secret) IsInstallable(_ context.Context) (bool, error)
- func (s *Secret) IsObjectHealthy(obj client.Object) juggler.ResourceHealthiness
- func (s *Secret) IsStatusInternal() bool
- func (s *Secret) OrphanDetectorContext() object.DetectorContext
- func (s *Secret) 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
Values *apiextensionsv1.JSON `json:"values,omitempty"`
ChartPullSecretName string
ImagePullSecretNames []string
}
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
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 ¶
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.
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
func (s *PlatformSecret) Hooks() juggler.ComponentHooks
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
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
GetDependencies implements object.ObjectComponent.
func (*Secret) GetNamespace ¶ added in v0.1.1
GetNamespace implements TargetComponent.
func (*Secret) Hooks ¶ added in v0.1.1
func (s *Secret) Hooks() juggler.ComponentHooks
Hooks implements object.ObjectComponent.
func (*Secret) IsInstallable ¶ added in v0.1.1
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
IsStatusInternal implements StatusVisibility interface.
func (*Secret) OrphanDetectorContext ¶ added in v0.1.1
func (s *Secret) OrphanDetectorContext() object.DetectorContext
OrphanDetectorContext implements OrphanedObjectsDetector.