1
1
package kube
2
2
3
3
import (
4
+ "errors"
4
5
"fmt"
5
6
"os"
6
7
"strings"
7
8
8
- "k8s.io/client-go/rest"
9
- "k8s.io/client-go/tools/clientcmd"
10
- "sigs.k8s.io/controller-runtime/pkg/client"
11
-
12
9
helmv2 "github.com/fluxcd/helm-controller/api/v2"
13
10
imgautomationv1 "github.com/fluxcd/image-automation-controller/api/v1beta2"
14
11
reflectorv1 "github.com/fluxcd/image-reflector-controller/api/v1beta2"
@@ -17,7 +14,6 @@ import (
17
14
notificationv1b2 "github.com/fluxcd/notification-controller/api/v1beta2"
18
15
sourcev1 "github.com/fluxcd/source-controller/api/v1"
19
16
sourcev1b2 "github.com/fluxcd/source-controller/api/v1beta2"
20
- "github.com/pkg/errors"
21
17
pacv2beta2 "github.com/weaveworks/policy-agent/api/v2beta2"
22
18
appsv1 "k8s.io/api/apps/v1"
23
19
authv1 "k8s.io/api/authentication/v1"
@@ -26,6 +22,9 @@ import (
26
22
extensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
27
23
apiruntime "k8s.io/apimachinery/pkg/runtime"
28
24
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
25
+ "k8s.io/client-go/rest"
26
+ "k8s.io/client-go/tools/clientcmd"
27
+ "sigs.k8s.io/controller-runtime/pkg/client"
29
28
)
30
29
31
30
func CreateScheme () (* apiruntime.Scheme , error ) {
@@ -65,7 +64,7 @@ const (
65
64
66
65
var (
67
66
// ErrWegoConfigNotFound indicates weave gitops config could not be found
68
- ErrWegoConfigNotFound = errors .New ("Wego Config not found" )
67
+ ErrWegoConfigNotFound = errors .New ("wego config not found" )
69
68
)
70
69
71
70
// InClusterConfig defines a function for checking if this code is executing in kubernetes.
0 commit comments