cluster

package
v1.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AkoAddonSecretDataYaml

func AkoAddonSecretDataYaml(cluster *clusterv1.Cluster, obj *akoov1alpha1.AKODeploymentConfig, aviUsersecret *corev1.Secret) (string, error)

func GetFakeRemoteClient

func GetFakeRemoteClient(_ context.Context, _ string, _ client.Client, _ client.ObjectKey) (client.Client, error)

Types

type ClusterReconciler

type ClusterReconciler struct {
	client.Client
	Log             logr.Logger
	Scheme          *runtime.Scheme
	GetRemoteClient remote.ClusterClientGetter
}

func NewReconciler

func NewReconciler(c client.Client, log logr.Logger, scheme *runtime.Scheme) *ClusterReconciler

NewReconciler initializes a ClusterReconciler

func (*ClusterReconciler) GetAKOPackageRefName added in v1.7.0

func (r *ClusterReconciler) GetAKOPackageRefName(ctx context.Context, log logr.Logger, cb *runv1alpha3.ClusterBootstrap) (string, error)

func (*ClusterReconciler) GetAKOPackageRefNameFromTKR added in v1.7.0

func (r *ClusterReconciler) GetAKOPackageRefNameFromTKR(log logr.Logger, tkr *runv1alpha3.TanzuKubernetesRelease) (string, error)

func (*ClusterReconciler) ReconcileAddonSecret

func (r *ClusterReconciler) ReconcileAddonSecret(
	ctx context.Context,
	log logr.Logger,
	cluster *clusterv1.Cluster,
	obj *akoov1alpha1.AKODeploymentConfig,
) (ctrl.Result, error)

func (*ClusterReconciler) ReconcileAddonSecretDelete

func (r *ClusterReconciler) ReconcileAddonSecretDelete(
	ctx context.Context,
	log logr.Logger,
	cluster *clusterv1.Cluster,
	_ *akoov1alpha1.AKODeploymentConfig,
) (ctrl.Result, error)

func (*ClusterReconciler) ReconcileDelete

func (r *ClusterReconciler) ReconcileDelete(
	ctx context.Context,
	log logr.Logger,
	cluster *clusterv1.Cluster,
	_ *akoov1alpha1.AKODeploymentConfig,
) (ctrl.Result, error)

ReconcileDelete removes the finalizer on Cluster once AKO finishes its cleanup work

Jump to

Keyboard shortcuts

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