controller

package
v0.0.0-...-7a50a3a Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: AGPL-3.0, Apache-2.0, MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterFinalizer = "deployments.plural.sh/cluster-protection"
)
View Source
const (
	GlobalServiceFinalizer = "deployments.plural.sh/global-service-protection"
)
View Source
const InfrastructureStackFinalizer = "deployments.plural.sh/stack-protection"
View Source
const ManagedNamespaceFinalizer = "deployments.plural.sh/managed-namespace-protection"
View Source
const NotificationRouterFinalizer = "deployments.plural.sh/notification-router-protection"
View Source
const (
	NotificationSinkFinalizer = "deployments.plural.sh/notification-sink-protection"
)
View Source
const (
	PipelineFinalizer = "deployments.plural.sh/pipeline-protection"
)
View Source
const (
	// PrAutomationProtectionFinalizerName defines name for the main finalizer that synchronizes
	// resource deletion from the Console API prior to removing the CRD.
	PrAutomationProtectionFinalizerName = "providers.deployments.plural.sh/provider-protection"
)
View Source
const (
	// ProviderProtectionFinalizerName defines name for the main finalizer that synchronizes
	// resource deletion from the Console API prior to removing the CRD.
	ProviderProtectionFinalizerName = "providers.deployments.plural.sh/provider-protection"
)
View Source
const (
	RepoFinalizer = "deployments.plural.sh/gitrepo-protection"
)
View Source
const (
	// ScmConnectionProtectionFinalizerName defines name for the main finalizer that synchronizes
	// resource deletion from the Console API prior to removing the CRD.
	ScmConnectionProtectionFinalizerName = "scmconnections.deployments.plural.sh/scmconnection-protection"
)
View Source
const (
	ServiceFinalizer = "deployments.plural.sh/service-protection"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterReconciler

type ClusterReconciler struct {
	client.Client
	ConsoleClient consoleclient.ConsoleClient
	Scheme        *runtime.Scheme
}

ClusterReconciler reconciles a Cluster object.

func (*ClusterReconciler) Reconcile

func (r *ClusterReconciler) Reconcile(ctx context.Context, req reconcile.Request) (_ reconcile.Result, reterr error)

func (*ClusterReconciler) SetupWithManager

func (r *ClusterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ClusterRestoreReconciler

type ClusterRestoreReconciler struct {
	client.Client
	ConsoleClient consoleclient.ConsoleClient
	Scheme        *runtime.Scheme
}

ClusterRestoreReconciler reconciles a ClusterRestore object

func (*ClusterRestoreReconciler) Reconcile

func (r *ClusterRestoreReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ reconcile.Result, reterr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ClusterRestoreReconciler) SetupWithManager

func (r *ClusterRestoreReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ClusterRestoreScope

type ClusterRestoreScope struct {
	Client  client.Client
	Restore *v1alpha1.ClusterRestore
	// contains filtered or unexported fields
}

func NewClusterRestoreScope

func NewClusterRestoreScope(ctx context.Context, client client.Client, restore *v1alpha1.ClusterRestore) (*ClusterRestoreScope, error)

func (*ClusterRestoreScope) PatchObject

func (p *ClusterRestoreScope) PatchObject() error

type ClusterRestoreTrigger

type ClusterRestoreTrigger struct {
	Client  client.Client
	Trigger *v1alpha1.ClusterRestoreTrigger
	// contains filtered or unexported fields
}

func NewClusterRestoreTriggerScope

func NewClusterRestoreTriggerScope(ctx context.Context, client client.Client, trigger *v1alpha1.ClusterRestoreTrigger) (*ClusterRestoreTrigger, error)

func (*ClusterRestoreTrigger) PatchObject

func (p *ClusterRestoreTrigger) PatchObject() error

type ClusterRestoreTriggerReconciler

type ClusterRestoreTriggerReconciler struct {
	client.Client
	ConsoleClient consoleclient.ConsoleClient
	Scheme        *runtime.Scheme
}

ClusterRestoreTriggerReconciler reconciles a ClusterRestoreTrigger object

func (*ClusterRestoreTriggerReconciler) Reconcile

func (r *ClusterRestoreTriggerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ reconcile.Result, reterr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile

func (*ClusterRestoreTriggerReconciler) SetupWithManager

func (r *ClusterRestoreTriggerReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ClusterScope

type ClusterScope struct {
	Client  client.Client
	Cluster *v1alpha1.Cluster
	// contains filtered or unexported fields
}

func NewClusterScope

func NewClusterScope(ctx context.Context, client client.Client, cluster *v1alpha1.Cluster) (*ClusterScope, error)

func (*ClusterScope) PatchObject

func (p *ClusterScope) PatchObject() error

type GitRepoCred

type GitRepoCred struct {
	PrivateKey *string
	Passphrase *string
	Username   *string
	Password   *string
}

type GitRepositoryReconciler

type GitRepositoryReconciler struct {
	client.Client
	ConsoleClient consoleclient.ConsoleClient
	Scheme        *runtime.Scheme
}

GitRepositoryReconciler reconciles a GitRepository object

func (*GitRepositoryReconciler) Reconcile

func (r *GitRepositoryReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

func (*GitRepositoryReconciler) SetupWithManager

func (r *GitRepositoryReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type GitRepositoryScope

type GitRepositoryScope struct {
	Client        client.Client
	GitRepository *v1alpha1.GitRepository
	// contains filtered or unexported fields
}

func NewGitRepositoryScope

func NewGitRepositoryScope(ctx context.Context, client client.Client, repository *v1alpha1.GitRepository) (*GitRepositoryScope, error)

func (*GitRepositoryScope) PatchObject

func (p *GitRepositoryScope) PatchObject() error

type GlobalServiceReconciler

type GlobalServiceReconciler struct {
	client.Client
	ConsoleClient consoleclient.ConsoleClient
	Scheme        *runtime.Scheme
}

GlobalServiceReconciler reconciles a GlobalService object

func (*GlobalServiceReconciler) Reconcile

func (r *GlobalServiceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile

func (*GlobalServiceReconciler) SetupWithManager

func (r *GlobalServiceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type GlobalServiceScope

type GlobalServiceScope struct {
	Client  client.Client
	Service *v1alpha1.GlobalService
	// contains filtered or unexported fields
}

func NewGlobalServiceScope

func NewGlobalServiceScope(ctx context.Context, client client.Client, service *v1alpha1.GlobalService) (*GlobalServiceScope, error)

func (*GlobalServiceScope) PatchObject

func (p *GlobalServiceScope) PatchObject() error

type InfrastructureStackReconciler

type InfrastructureStackReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	ConsoleClient consoleclient.ConsoleClient
}

InfrastructureStackReconciler reconciles a InfrastructureStack object

func (*InfrastructureStackReconciler) Reconcile

func (r *InfrastructureStackReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile

func (*InfrastructureStackReconciler) SetupWithManager

func (r *InfrastructureStackReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type InfrastructureStackScope

type InfrastructureStackScope struct {
	Client client.Client
	// contains filtered or unexported fields
}

func NewInfrastructureStackScope

func NewInfrastructureStackScope(ctx context.Context, client client.Client, infrastructureStack *v1alpha1.InfrastructureStack) (*InfrastructureStackScope, error)

func (*InfrastructureStackScope) PatchObject

func (p *InfrastructureStackScope) PatchObject() error

type ManagedNamespaceReconciler

type ManagedNamespaceReconciler struct {
	client.Client
	ConsoleClient consoleclient.ConsoleClient
	Scheme        *runtime.Scheme
}

ManagedNamespaceReconciler reconciles a ManagedNamespace object

func (*ManagedNamespaceReconciler) Reconcile

func (r *ManagedNamespaceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile

func (*ManagedNamespaceReconciler) SetupWithManager

func (r *ManagedNamespaceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ManagedNamespaceScope

type ManagedNamespaceScope struct {
	Client           client.Client
	ManagedNamespace *v1alpha1.ManagedNamespace
	// contains filtered or unexported fields
}

func NewManagedNamespaceScope

func NewManagedNamespaceScope(ctx context.Context, client client.Client, managedNamespace *v1alpha1.ManagedNamespace) (*ManagedNamespaceScope, error)

func (*ManagedNamespaceScope) PatchObject

func (p *ManagedNamespaceScope) PatchObject() error

type NotificationRouterReconciler

type NotificationRouterReconciler struct {
	client.Client
	ConsoleClient consoleclient.ConsoleClient
	Scheme        *runtime.Scheme
}

NotificationRouterReconciler reconciles a NotificationRouter object

func (*NotificationRouterReconciler) Reconcile

func (r *NotificationRouterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile

func (*NotificationRouterReconciler) SetupWithManager

func (r *NotificationRouterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type NotificationRouterScope

type NotificationRouterScope struct {
	Client             client.Client
	NotificationRouter *v1alpha1.NotificationRouter
	// contains filtered or unexported fields
}

func NewNotificationRouterScope

func NewNotificationRouterScope(ctx context.Context, client client.Client, notification *v1alpha1.NotificationRouter) (*NotificationRouterScope, error)

func (*NotificationRouterScope) PatchObject

func (p *NotificationRouterScope) PatchObject() error

type NotificationSinkReconciler

type NotificationSinkReconciler struct {
	client.Client
	ConsoleClient consoleclient.ConsoleClient
	Scheme        *runtime.Scheme
}

NotificationSinkReconciler reconciles a NotificationSink object

func (*NotificationSinkReconciler) Reconcile

func (r *NotificationSinkReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile

func (*NotificationSinkReconciler) SetupWithManager

func (r *NotificationSinkReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type NotificationSinkScope

type NotificationSinkScope struct {
	Client           client.Client
	NotificationSink *v1alpha1.NotificationSink
	// contains filtered or unexported fields
}

func NewNotificationSinkScope

func NewNotificationSinkScope(ctx context.Context, client client.Client, notificationSink *v1alpha1.NotificationSink) (*NotificationSinkScope, error)

func (*NotificationSinkScope) PatchObject

func (p *NotificationSinkScope) PatchObject() error

type PipelineContext

type PipelineContext struct {
	Client  client.Client
	Context *v1alpha1.PipelineContext
	// contains filtered or unexported fields
}

func NewPipelineContextScope

func NewPipelineContextScope(ctx context.Context, client client.Client, context *v1alpha1.PipelineContext) (*PipelineContext, error)

func (*PipelineContext) PatchObject

func (p *PipelineContext) PatchObject() error

type PipelineContextReconciler

type PipelineContextReconciler struct {
	client.Client
	ConsoleClient consoleclient.ConsoleClient
	Scheme        *runtime.Scheme
}

PipelineContextReconciler reconciles a PipelineContext object

func (*PipelineContextReconciler) Reconcile

func (r *PipelineContextReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ reconcile.Result, reterr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile

func (*PipelineContextReconciler) SetupWithManager

func (r *PipelineContextReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type PipelineReconciler

type PipelineReconciler struct {
	client.Client
	ConsoleClient consoleclient.ConsoleClient
	Scheme        *runtime.Scheme
}

PipelineReconciler reconciles a Pipeline object

func (*PipelineReconciler) Reconcile

func (r *PipelineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ reconcile.Result, reterr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*PipelineReconciler) SetupWithManager

func (r *PipelineReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type PipelineScope

type PipelineScope struct {
	Client   client.Client
	Pipeline *v1alpha1.Pipeline
	// contains filtered or unexported fields
}

func NewPipelineScope

func NewPipelineScope(ctx context.Context, client client.Client, pipeline *v1alpha1.Pipeline) (*PipelineScope, error)

func (*PipelineScope) PatchObject

func (p *PipelineScope) PatchObject() error

type PrAutomationReconciler

type PrAutomationReconciler struct {
	client.Client

	ConsoleClient consoleclient.ConsoleClient
	Scheme        *runtime.Scheme
}

PrAutomationReconciler reconciles a v1alpha1.PrAutomation object. Implements reconcile.Reconciler and types.Controller

func (*PrAutomationReconciler) Reconcile

func (in *PrAutomationReconciler) Reconcile(ctx context.Context, req reconcile.Request) (_ reconcile.Result, reterr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the v1alpha1.PrAutomation closer to the desired state and syncs it with the Console API state.

func (*PrAutomationReconciler) SetupWithManager

func (in *PrAutomationReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager is responsible for initializing new reconciler within provided ctrl.Manager.

type PrAutomationScope

type PrAutomationScope struct {
	Client       client.Client
	PrAutomation *v1alpha1.PrAutomation
	// contains filtered or unexported fields
}

func NewPrAutomationScope

func NewPrAutomationScope(ctx context.Context, client client.Client, prAutomation *v1alpha1.PrAutomation) (*PrAutomationScope, error)

func (*PrAutomationScope) PatchObject

func (p *PrAutomationScope) PatchObject() error

type PrAutomationTrigger

type PrAutomationTrigger struct {
	Client  client.Client
	Trigger *v1alpha1.PrAutomationTrigger
	// contains filtered or unexported fields
}

func NewPrAutomationTriggerScope

func NewPrAutomationTriggerScope(ctx context.Context, client client.Client, trigger *v1alpha1.PrAutomationTrigger) (*PrAutomationTrigger, error)

func (*PrAutomationTrigger) PatchObject

func (p *PrAutomationTrigger) PatchObject() error

type PrAutomationTriggerReconciler

type PrAutomationTriggerReconciler struct {
	client.Client
	ConsoleClient consoleclient.ConsoleClient
	Scheme        *runtime.Scheme
}

PrAutomationTriggerReconciler reconciles a PrAutomationTrigger object

func (*PrAutomationTriggerReconciler) Reconcile

func (r *PrAutomationTriggerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ reconcile.Result, reterr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile

func (*PrAutomationTriggerReconciler) SetupWithManager

func (r *PrAutomationTriggerReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ProviderReconciler

type ProviderReconciler struct {
	client.Client

	ConsoleClient consoleclient.ConsoleClient
	Scheme        *runtime.Scheme
}

ProviderReconciler reconciles a v1alpha1.Provider object. Implements reconcile.Reconciler and types.Controller

func (*ProviderReconciler) Reconcile

func (r *ProviderReconciler) Reconcile(ctx context.Context, req reconcile.Request) (_ reconcile.Result, reterr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the v1alpha1.Provider closer to the desired state and syncs it with the Console API state.

func (*ProviderReconciler) SetupWithManager

func (r *ProviderReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager is responsible for initializing new reconciler within provided ctrl.Manager.

type ProviderScope

type ProviderScope struct {
	Client   client.Client
	Provider *v1alpha1.Provider
	// contains filtered or unexported fields
}

func NewProviderScope

func NewProviderScope(ctx context.Context, client client.Client, provider *v1alpha1.Provider) (*ProviderScope, error)

func (*ProviderScope) PatchObject

func (p *ProviderScope) PatchObject() error

type ScmConnectionReconciler

type ScmConnectionReconciler struct {
	client.Client

	ConsoleClient consoleclient.ConsoleClient
	Scheme        *runtime.Scheme
}

ScmConnectionReconciler reconciles a v1alpha1.ScmConnection object. Implements reconcile.Reconciler and types.Controller

func (*ScmConnectionReconciler) Reconcile

func (r *ScmConnectionReconciler) Reconcile(ctx context.Context, req reconcile.Request) (_ reconcile.Result, reterr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the v1alpha1.ScmConnection closer to the desired state and syncs it with the Console API state.

func (*ScmConnectionReconciler) SetupWithManager

func (r *ScmConnectionReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager is responsible for initializing new reconciler within provided ctrl.Manager.

type ScmConnectionScope

type ScmConnectionScope struct {
	Client        client.Client
	ScmConnection *v1alpha1.ScmConnection
	// contains filtered or unexported fields
}

func NewScmConnectionScope

func NewScmConnectionScope(ctx context.Context, client client.Client, provider *v1alpha1.ScmConnection) (*ScmConnectionScope, error)

func (*ScmConnectionScope) PatchObject

func (p *ScmConnectionScope) PatchObject() error

type ServiceReconciler

type ServiceReconciler struct {
	client.Client
	ConsoleClient consoleclient.ConsoleClient
	Scheme        *runtime.Scheme
}

ServiceReconciler reconciles a Service object

func (*ServiceReconciler) MergeHelmValues

func (r *ServiceReconciler) MergeHelmValues(ctx context.Context, secretRef *corev1.SecretReference, values *runtime.RawExtension) (*string, error)

func (*ServiceReconciler) Reconcile

func (r *ServiceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

func (*ServiceReconciler) SetupWithManager

func (r *ServiceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ServiceScope

type ServiceScope struct {
	Client  client.Client
	Service *v1alpha1.ServiceDeployment
	// contains filtered or unexported fields
}

func NewServiceScope

func NewServiceScope(ctx context.Context, client client.Client, service *v1alpha1.ServiceDeployment) (*ServiceScope, error)

func (*ServiceScope) PatchObject

func (p *ServiceScope) PatchObject() error

Jump to

Keyboard shortcuts

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