cluster

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: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceName  = "cluster name"
	FinalizerName = "argo.nautes.nautes.resource.nautes.io/finalizers"
)
View Source
const (
	RegularUpdate        = "RegularUpdate"
	ClusterConditionType = "ClusterSyncToArgocd"
	DefaultNamespace     = "nautes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterReconciler

type ClusterReconciler struct {
	client.Client
	Log                   logr.Logger
	Scheme                *runtime.Scheme
	Argocd                *argocd.ArgocdClient
	Secret                secret.SecretOperator
	GlobalConfigNamespace string
	GlobalConfigName      string
}

ClusterReconciler reconciles a Cluster object

func (*ClusterReconciler) ConvertKubeconfig

func (r *ClusterReconciler) ConvertKubeconfig(data []byte) (*kubeconfig.KubectlConfig, error)

func (*ClusterReconciler) Reconcile

func (r *ClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*ClusterReconciler) SetupWithManager

func (r *ClusterReconciler) 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