nsxserviceaccount

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResultNormal            = common.ResultNormal
	ResultRequeue           = common.ResultRequeue
	ResultRequeueAfter5mins = common.ResultRequeueAfter5mins
	MetricResType           = common.MetricResTypeNSXServiceAccount
)

Functions

This section is empty.

Types

type NSXServiceAccountReconciler

type NSXServiceAccountReconciler struct {
	client.Client
	Scheme  *apimachineryruntime.Scheme
	Service *nsxserviceaccount.NSXServiceAccountService
}

NSXServiceAccountReconciler reconciles a NSXServiceAccount object. Requires NSXT 4.0.1

create/delete event will be processed by Reconcile

update event with realized resource missing NSX resources will be processed by Reconcile since NSXT 4.1.2

GarbageCollector will clean up stale NSX resources and Secret on every GCInterval

GarbageCollector will check and make all Secrets' CA up-to-date on first GC run

GarbageCollector will check and rotate client cert if needed on every GCValidationInterval*GCInterval since NSXT 4.1.3

func (*NSXServiceAccountReconciler) GarbageCollector

func (r *NSXServiceAccountReconciler) GarbageCollector(cancel chan bool, timeout time.Duration)

GarbageCollector collect NSXServiceAccount which has been removed from crd. cancel is used to break the loop during UT

func (*NSXServiceAccountReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile

func (*NSXServiceAccountReconciler) Start

Start setup manager and launch GC

Jump to

Keyboard shortcuts

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