Skip to content

Commit

Permalink
all: Group github.com/fluxcd/cli-utils imports
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Nov 20, 2023
1 parent 09ba5d8 commit 1d7d31b
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 13 deletions.
3 changes: 2 additions & 1 deletion runtime/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ package client
import (
"context"

"github.com/fluxcd/cli-utils/pkg/flowcontrol"
"github.com/spf13/pflag"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/client-go/rest"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client/apiutil"

"github.com/fluxcd/cli-utils/pkg/flowcontrol"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion runtime/client/impersonator.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"context"
"fmt"

"github.com/fluxcd/cli-utils/pkg/kstatus/polling"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
Expand All @@ -30,6 +29,8 @@ import (
rc "sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/client/config"

"github.com/fluxcd/cli-utils/pkg/kstatus/polling"

"github.com/fluxcd/pkg/apis/meta"
)

Expand Down
3 changes: 2 additions & 1 deletion ssa/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ import (
"sync/atomic"
"testing"

"github.com/fluxcd/cli-utils/pkg/kstatus/polling"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/client-go/rest"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/client/apiutil"
"sigs.k8s.io/controller-runtime/pkg/envtest"

"github.com/fluxcd/cli-utils/pkg/kstatus/polling"
)

var manager *ResourceManager
Expand Down
5 changes: 3 additions & 2 deletions ssa/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ limitations under the License.
package ssa

import (
"github.com/fluxcd/cli-utils/pkg/kstatus/polling"
"github.com/fluxcd/cli-utils/pkg/object"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/fluxcd/cli-utils/pkg/kstatus/polling"
"github.com/fluxcd/cli-utils/pkg/object"
)

// ResourceManager reconciles Kubernetes resources onto the target cluster using server-side apply.
Expand Down
9 changes: 5 additions & 4 deletions ssa/manager_wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,17 @@ import (
"strings"
"time"

apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/util/wait"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/fluxcd/cli-utils/pkg/kstatus/polling"
"github.com/fluxcd/cli-utils/pkg/kstatus/polling/aggregator"
"github.com/fluxcd/cli-utils/pkg/kstatus/polling/collector"
"github.com/fluxcd/cli-utils/pkg/kstatus/polling/event"
"github.com/fluxcd/cli-utils/pkg/kstatus/status"
"github.com/fluxcd/cli-utils/pkg/object"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/util/wait"
"sigs.k8s.io/controller-runtime/pkg/client"
)

// WaitOptions contains options for wait requests.
Expand Down
5 changes: 3 additions & 2 deletions ssa/manager_wait_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ import (
"testing"
"time"

"github.com/fluxcd/cli-utils/pkg/kstatus/status"
"github.com/fluxcd/cli-utils/pkg/object"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime/schema"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/fluxcd/cli-utils/pkg/kstatus/status"
"github.com/fluxcd/cli-utils/pkg/object"
)

func TestWaitForSet(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion ssa/sort.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ package ssa
import (
"sort"

"github.com/fluxcd/cli-utils/pkg/object"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime/schema"

"github.com/fluxcd/cli-utils/pkg/object"
)

type KindOrder struct {
Expand Down
3 changes: 2 additions & 1 deletion ssa/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ import (
"regexp"
"strings"

"github.com/fluxcd/cli-utils/pkg/object"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime"
yamlutil "k8s.io/apimachinery/pkg/util/yaml"
"sigs.k8s.io/yaml"

"github.com/fluxcd/cli-utils/pkg/object"
)

const fmtSeparator = "/"
Expand Down

0 comments on commit 1d7d31b

Please sign in to comment.