coderepo

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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
	Config *nautesconfigs.Config
	Log    logr.Logger
	URL    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) Reconcile

func (r *CodeRepoReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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
}

Jump to

Keyboard shortcuts

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