coderepo

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 18 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

This section is empty.

Types

type CodeRepoParams added in v0.4.1

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

func NewCodeRepoParams

func NewCodeRepoParams(url, repoName string, secret *SecretContent) *CodeRepoParams

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) 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