Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 25, 2020 09:53
Show Gist options
  • Save velotiotech/6f956e0b5de0fd61321b87f2414f9c9b to your computer and use it in GitHub Desktop.
Save velotiotech/6f956e0b5de0fd61321b87f2414f9c9b to your computer and use it in GitHub Desktop.
func (r *ReconcileBookStore) Reconcile(request reconcile.Request) (reconcile.Result, error) {
reqLogger := log.WithValues("Request.Namespace", request.Namespace, "Request.Name", request.Name)
reqLogger.Info("Reconciling BookStore")
// Fetch the BookStore instance
bookstore := &blogv1alpha1.BookStore{}
err := r.client.Get(context.TODO(), request.NamespacedName, bookstore)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment