diff --git a/controllers/auth_config_controller.go b/controllers/auth_config_controller.go index 41610aa8..c14f9788 100644 --- a/controllers/auth_config_controller.go +++ b/controllers/auth_config_controller.go @@ -99,6 +99,7 @@ func (r *AuthConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) r.Index.Delete(resourceId) r.StatusReport.Clear(resourceId) reportReconciled = false + logger.Info("resource de-indexed") } else { // resource found and it is to be watched by this controller // we need to either create it or update it in the index diff --git a/docs/user-guides/sharding.md b/docs/user-guides/sharding.md index 10f49941..05c6690d 100644 --- a/docs/user-guides/sharding.md +++ b/docs/user-guides/sharding.md @@ -201,11 +201,11 @@ kubectl -n myapp label authconfig/auth-config-2 disabled=true # authconfig.authorino.kuadrant.io/auth-config-2 labeled ``` -Verify in the logs that only the `authorino-production` instance adds the resources to the index: +Verify in the logs that the `authorino-production` instance removes the authconfig from the index: ```sh kubectl logs $(kubectl get pods -l authorino-resource=authorino-production -o name) -# {"level":"info","ts":1638383515.6428752,"logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource reconciled","authconfig":"myapp/auth-config-2"} +# {"level":"info","ts":1638383515.6428752,"logger":"authorino.controller-runtime.manager.controller.authconfig","msg":"resource de-indexed","authconfig":"myapp/auth-config-2"} ``` ## Cleanup