controller

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TemplatePullRequest added in v0.1.0

func TemplatePullRequest(prc *promoterv1alpha1.PullRequestConfiguration, 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.1

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(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(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
}

ClusterScmProviderReconciler reconciles a ClusterScmProvider object

func (*ClusterScmProviderReconciler) Reconcile added in v0.4.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 ClusterScmProvider 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 (*ClusterScmProviderReconciler) SetupWithManager added in v0.4.0

func (r *ClusterScmProviderReconciler) SetupWithManager(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(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(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type GitRepositoryReconciler

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

GitRepositoryReconciler reconciles a GitRepository object

func (*GitRepositoryReconciler) Reconcile

func (r *GitRepositoryReconciler) 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 GitRepository 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 (*GitRepositoryReconciler) SetupWithManager

func (r *GitRepositoryReconciler) SetupWithManager(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(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(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(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) (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 ScmProvider 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 (*ScmProviderReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type TooManyMatchingShaError

type TooManyMatchingShaError struct{}

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.1

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