Documentation ¶
Index ¶
- Constants
- func NewCodeRepoParams(url, repoName string, secret *SecretContent) *codeRepoParams
- type CodeRepoReconciler
- func (r *CodeRepoReconciler) AddFinalizerAndUpdateStatus(ctx context.Context, codeRepo *resourcev1alpha1.CodeRepo, finalizerName string) error
- func (r *CodeRepoReconciler) DeleteFinalizerAndUpdateStatus(ctx context.Context, codeRepo *resourcev1alpha1.CodeRepo, finalizerName string) error
- func (r *CodeRepoReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *CodeRepoReconciler) SetupWithManager(mgr ctrl.Manager) error
- type SecretContent
Constants ¶
View Source
const ( ResourceName = "codeRepo name" FinalizerName = "argo.nautes.resource.nautes.io/finalizers" )
View Source
const ( RegularUpdate = "RegularUpdate" CodeRepoConditionType = "CodeRepoSyncToArgocd" )
View Source
const ( SecretsEngine = "git" SecretsKey = "deploykey" )
Variables ¶
This section is empty.
Functions ¶
func NewCodeRepoParams ¶
func NewCodeRepoParams(url, repoName string, secret *SecretContent) *codeRepoParams
Types ¶
type CodeRepoReconciler ¶
type CodeRepoReconciler struct { client.Client Scheme *runtime.Scheme Argocd *argocd.ArgocdClient Secret secret.SecretOperator Log logr.Logger URL string GlobalConfigNamespace string GlobalConfigName string }
CodeRepoReconciler reconciles a CodeRepo object
func (*CodeRepoReconciler) AddFinalizerAndUpdateStatus ¶
func (r *CodeRepoReconciler) AddFinalizerAndUpdateStatus(ctx context.Context, codeRepo *resourcev1alpha1.CodeRepo, finalizerName string) error
func (*CodeRepoReconciler) DeleteFinalizerAndUpdateStatus ¶
func (r *CodeRepoReconciler) DeleteFinalizerAndUpdateStatus(ctx context.Context, codeRepo *resourcev1alpha1.CodeRepo, finalizerName string) error
func (*CodeRepoReconciler) SetupWithManager ¶
func (r *CodeRepoReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type SecretContent ¶
type SecretContent struct { ID string Kubeconfig *kubeconfig.KubectlConfig PrivateKey string }
Click to show internal directories.
Click to hide internal directories.