samba-in-kubernetes / samba-operator

An operator for a Samba as a service on PVCs in kubernetes
Apache License 2.0
108 stars 24 forks source link

controllers: cache cluster-type in memory to avoid redundant calls #228

Closed synarete closed 2 years ago

synarete commented 2 years ago

Cache current cluster type within SmbCommonConfigReconciler in order to avoid extra calls to API server. The in-memory state if set once upon first call to SmbCommonConfigReconciler.Reconcile.

Signed-off-by: Shachar Sharon ssharon@redhat.com

phlogistonjohn commented 2 years ago

/test centos-ci/sink-clustered/mini-k8s-1.24