Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (r *NSXServiceAccountReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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