Skip to content

Commit

Permalink
Runs goimport
Browse files Browse the repository at this point in the history
  • Loading branch information
somtochiama committed Jul 31, 2020
1 parent d8c62e9 commit 13c533b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/patterns/declarative/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ import (
"context"
"errors"
"fmt"
"k8s.io/client-go/dynamic"
"path/filepath"
"strings"

"k8s.io/client-go/dynamic"

apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
Expand Down Expand Up @@ -51,9 +52,9 @@ type Reconciler struct {

rm reconcileMetrics

mgr manager.Manager
mgr manager.Manager
dynamicClient dynamic.Interface
options reconcilerParams
options reconcilerParams
}

type kubectlClient interface {
Expand Down Expand Up @@ -183,7 +184,7 @@ func (r *Reconciler) reconcileExists(ctx context.Context, name types.NamespacedN
ns := obj.UnstructuredObject().GetNamespace()
unstruct, err := r.dynamicClient.Resource(mapping.Resource).Namespace(ns).Get(context.Background(),
obj.Name, getOptions)
if err != nil && !errors.IsNotFound(err){
if err != nil && !apierrors.IsNotFound(err) {
log.WithValues("name", obj.Name).Error(err, "Unable to get resource")
}
if unstruct != nil {
Expand Down

0 comments on commit 13c533b

Please sign in to comment.