controller

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTooManyMatchingShaError added in v0.13.0

func NewTooManyMatchingShaError(commitStatusKey string, commitStatuses []promoterv1alpha1.CommitStatus) error

NewTooManyMatchingShaError creates a new TooManyMatchingShaError. This error indicates that there are too many commit status resources matching the given SHA and key.

func TemplatePullRequest added in v0.1.0

func TemplatePullRequest(prt promoterv1alpha1.PullRequestTemplate, data map[string]any) (string, string, error)

TemplatePullRequest renders the title and description of a pull request using the provided data map.

Types

type ApplicationsInEnvironment added in v0.11.0

type ApplicationsInEnvironment struct {
	ClusterName string
	argocd.ApplicationList
}

ApplicationsInEnvironment is a list of applications in an environment.

type ArgoCDCommitStatusReconciler

type ArgoCDCommitStatusReconciler struct {
	Manager            mcmanager.Manager
	Recorder           record.EventRecorder
	SettingsMgr        *settings.Manager
	KubeConfigProvider *kubeconfig.Provider
	// contains filtered or unexported fields
}

ArgoCDCommitStatusReconciler reconciles a ArgoCDCommitStatus object

func (*ArgoCDCommitStatusReconciler) Reconcile

func (r *ArgoCDCommitStatusReconciler) Reconcile(ctx context.Context, req mcreconcile.Request) (result ctrl.Result, err 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. TODO(user): Modify the Reconcile function to compare the state specified by the ArgoCDCommitStatus object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

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

func (*ArgoCDCommitStatusReconciler) SetupWithManager

func (r *ArgoCDCommitStatusReconciler) SetupWithManager(ctx context.Context, mcMgr mcmanager.Manager) error

SetupWithManager sets up the controller with the Manager.

type ChangeTransferPolicyReconciler

type ChangeTransferPolicyReconciler struct {
	client.Client
	Scheme      *runtime.Scheme
	Recorder    record.EventRecorder
	SettingsMgr *settings.Manager
}

ChangeTransferPolicyReconciler reconciles a ChangeTransferPolicy object

func (*ChangeTransferPolicyReconciler) Reconcile

func (r *ChangeTransferPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err 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. TODO(user): Modify the Reconcile function to compare the state specified by the ChangeTransferPolicy object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

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

func (*ChangeTransferPolicyReconciler) SetupWithManager

func (r *ChangeTransferPolicyReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ClusterScmProviderReconciler added in v0.4.0

type ClusterScmProviderReconciler struct {
	client.Client
	Scheme      *runtime.Scheme
	Recorder    record.EventRecorder
	SettingsMgr *settings.Manager
}

ClusterScmProviderReconciler reconciles a ClusterScmProvider object

func (*ClusterScmProviderReconciler) Reconcile added in v0.4.0

func (r *ClusterScmProviderReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err 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 (*ClusterScmProviderReconciler) SetupWithManager added in v0.4.0

func (r *ClusterScmProviderReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CommitStatusReconciler

type CommitStatusReconciler struct {
	client.Client
	Scheme      *runtime.Scheme
	Recorder    record.EventRecorder
	SettingsMgr *settings.Manager
}

CommitStatusReconciler reconciles a CommitStatus object

func (*CommitStatusReconciler) Reconcile

func (r *CommitStatusReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err 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. TODO(user): Modify the Reconcile function to compare the state specified by the CommitStatus object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

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

func (*CommitStatusReconciler) SetupWithManager

func (r *CommitStatusReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ControllerConfigurationReconciler added in v0.2.0

type ControllerConfigurationReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

ControllerConfigurationReconciler reconciles a ControllerConfiguration object revive:disable:exported // The name starting with "Controller" is fine. That's the kind name.

func (*ControllerConfigurationReconciler) Reconcile added in v0.2.0

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ControllerConfiguration object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

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

func (*ControllerConfigurationReconciler) SetupWithManager added in v0.2.0

func (r *ControllerConfigurationReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type GitRepositoryReconciler

type GitRepositoryReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

GitRepositoryReconciler reconciles a GitRepository object

func (*GitRepositoryReconciler) Reconcile

func (r *GitRepositoryReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err 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 (*GitRepositoryReconciler) SetupWithManager

func (r *GitRepositoryReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type PromotionStrategyReconciler

type PromotionStrategyReconciler struct {
	client.Client
	Scheme      *runtime.Scheme
	Recorder    record.EventRecorder
	SettingsMgr *settings.Manager
}

PromotionStrategyReconciler reconciles a PromotionStrategy object

func (*PromotionStrategyReconciler) Reconcile

func (r *PromotionStrategyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err 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.17.2/pkg/reconcile

func (*PromotionStrategyReconciler) SetupWithManager

func (r *PromotionStrategyReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type PullRequestReconciler

type PullRequestReconciler struct {
	client.Client
	Scheme      *runtime.Scheme
	Recorder    record.EventRecorder
	SettingsMgr *settings.Manager
}

PullRequestReconciler reconciles a PullRequest object

func (*PullRequestReconciler) Reconcile

func (r *PullRequestReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err 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.17.2/pkg/reconcile

func (*PullRequestReconciler) SetupWithManager

func (r *PullRequestReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type RevertCommitReconciler

type RevertCommitReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

RevertCommitReconciler reconciles a RevertCommit object

func (*RevertCommitReconciler) Reconcile

func (r *RevertCommitReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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. TODO(user): Modify the Reconcile function to compare the state specified by the RevertCommit object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

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

func (*RevertCommitReconciler) SetupWithManager

func (r *RevertCommitReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ScmProviderReconciler

type ScmProviderReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

ScmProviderReconciler reconciles a ScmProvider object

func (*ScmProviderReconciler) Reconcile

func (r *ScmProviderReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err 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 (*ScmProviderReconciler) SetupWithManager

func (r *ScmProviderReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type TimedCommitStatusReconciler added in v0.16.0

type TimedCommitStatusReconciler struct {
	client.Client
	Scheme      *runtime.Scheme
	Recorder    record.EventRecorder
	SettingsMgr *settings.Manager
}

TimedCommitStatusReconciler reconciles a TimedCommitStatus object

func (*TimedCommitStatusReconciler) Reconcile added in v0.16.0

func (r *TimedCommitStatusReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err 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. TODO(user): Modify the Reconcile function to compare the state specified by the TimedCommitStatus object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

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

func (*TimedCommitStatusReconciler) SetupWithManager added in v0.16.0

func (r *TimedCommitStatusReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type TooManyMatchingShaError

type TooManyMatchingShaError struct {
	// contains filtered or unexported fields
}

TooManyMatchingShaError is an error type that indicates that there are too many matching SHAs for a commit status.

func (*TooManyMatchingShaError) Error

func (e *TooManyMatchingShaError) Error() string

Error implements the error interface for TooManyMatchingShaError.

type URLTemplateData added in v0.11.0

type URLTemplateData struct {
	Environment        string
	ArgoCDCommitStatus promoterv1alpha1.ArgoCDCommitStatus
}

URLTemplateData is the data passed to the URLTemplate in the ArgoCDCommitStatus.

Jump to

Keyboard shortcuts

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