IntegrationSource CRD #6822
Annotations
10 errors and 1 warning
Verify goimports:
cmd/webhook/main.go#L1
Please run goimports.
diff --git a/cmd/webhook/main.go b/cmd/webhook/main.go
index 68d4777..1f504c5 100644
--- a/cmd/webhook/main.go
+++ b/cmd/webhook/main.go
@@ -18,9 +18,10 @@ package main
import (
"context"
- sourcesv1alpha1 "knative.dev/eventing/pkg/apis/sources/v1alpha1"
"os"
+ sourcesv1alpha1 "knative.dev/eventing/pkg/apis/sources/v1alpha1"
+
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/kubernetes/scheme"
|
Verify goimports:
pkg/apis/sources/v1alpha1/integration_conversion.go#L1
Please run goimports.
diff --git a/pkg/apis/sources/v1alpha1/integration_conversion.go b/pkg/apis/sources/v1alpha1/integration_conversion.go
index 6b0235d..32bfc7c 100644
--- a/pkg/apis/sources/v1alpha1/integration_conversion.go
+++ b/pkg/apis/sources/v1alpha1/integration_conversion.go
@@ -19,6 +19,7 @@ package v1alpha1
import (
"context"
"fmt"
+
"knative.dev/pkg/apis"
)
|
Verify goimports:
pkg/apis/sources/v1alpha1/integration_conversion_test.go#L1
Please run goimports.
diff --git a/pkg/apis/sources/v1alpha1/integration_conversion_test.go b/pkg/apis/sources/v1alpha1/integration_conversion_test.go
index 93d712e..2272ecc 100644
--- a/pkg/apis/sources/v1alpha1/integration_conversion_test.go
+++ b/pkg/apis/sources/v1alpha1/integration_conversion_test.go
@@ -19,8 +19,9 @@ package v1alpha1
import (
"context"
"errors"
- "knative.dev/pkg/apis"
"testing"
+
+ "knative.dev/pkg/apis"
)
// implement apis.Convertible
|
Verify goimports:
pkg/apis/sources/v1alpha1/integration_defaults_test.go#L1
Please run goimports.
diff --git a/pkg/apis/sources/v1alpha1/integration_defaults_test.go b/pkg/apis/sources/v1alpha1/integration_defaults_test.go
index 3497c91..ed58649 100644
--- a/pkg/apis/sources/v1alpha1/integration_defaults_test.go
+++ b/pkg/apis/sources/v1alpha1/integration_defaults_test.go
@@ -18,8 +18,9 @@ package v1alpha1
import (
"context"
- "github.com/google/go-cmp/cmp"
"testing"
+
+ "github.com/google/go-cmp/cmp"
)
func TestSetDefaults(t *testing.T) {
|
Verify goimports:
pkg/apis/sources/v1alpha1/integration_lifecycle_test.go#L1
Please run goimports.
diff --git a/pkg/apis/sources/v1alpha1/integration_lifecycle_test.go b/pkg/apis/sources/v1alpha1/integration_lifecycle_test.go
index 1b88bf1..26b2a00 100644
--- a/pkg/apis/sources/v1alpha1/integration_lifecycle_test.go
+++ b/pkg/apis/sources/v1alpha1/integration_lifecycle_test.go
@@ -17,13 +17,14 @@ limitations under the License.
package v1alpha1
import (
+ "testing"
+
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
corev1 "k8s.io/api/core/v1"
v1 "knative.dev/eventing/pkg/apis/sources/v1"
"knative.dev/pkg/apis"
duckv1 "knative.dev/pkg/apis/duck/v1"
- "testing"
)
var (
|
Verify goimports:
pkg/apis/sources/v1alpha1/integration_validation.go#L1
Please run goimports.
diff --git a/pkg/apis/sources/v1alpha1/integration_validation.go b/pkg/apis/sources/v1alpha1/integration_validation.go
index 5d2a28e..4df223e 100644
--- a/pkg/apis/sources/v1alpha1/integration_validation.go
+++ b/pkg/apis/sources/v1alpha1/integration_validation.go
@@ -18,6 +18,7 @@ package v1alpha1
import (
"context"
+
"knative.dev/pkg/apis"
)
|
Verify goimports:
pkg/reconciler/integrationsource/controller.go#L1
Please run goimports.
diff --git a/pkg/reconciler/integrationsource/controller.go b/pkg/reconciler/integrationsource/controller.go
index 632c40b..4fa32e2 100644
--- a/pkg/reconciler/integrationsource/controller.go
+++ b/pkg/reconciler/integrationsource/controller.go
@@ -18,6 +18,7 @@ package integrationsource
import (
"context"
+
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/tools/cache"
|
Verify goimports:
pkg/reconciler/integrationsource/integrationsource.go#L1
Please run goimports.
diff --git a/pkg/reconciler/integrationsource/integrationsource.go b/pkg/reconciler/integrationsource/integrationsource.go
index 9873568..d9dbda6 100644
--- a/pkg/reconciler/integrationsource/integrationsource.go
+++ b/pkg/reconciler/integrationsource/integrationsource.go
@@ -3,6 +3,7 @@ package integrationsource
import (
"context"
"fmt"
+
"go.uber.org/zap"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/equality"
|
Verify goimports:
pkg/reconciler/integrationsource/resources/containersource.go#L1
Please run goimports.
diff --git a/pkg/reconciler/integrationsource/resources/containersource.go b/pkg/reconciler/integrationsource/resources/containersource.go
index b891b2c..40a0434 100644
--- a/pkg/reconciler/integrationsource/resources/containersource.go
+++ b/pkg/reconciler/integrationsource/resources/containersource.go
@@ -2,14 +2,15 @@ package resources
import (
"fmt"
+ "reflect"
+ "strconv"
+ "strings"
+
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
sourcesv1 "knative.dev/eventing/pkg/apis/sources/v1"
"knative.dev/eventing/pkg/apis/sources/v1alpha1"
"knative.dev/pkg/kmeta"
- "reflect"
- "strconv"
- "strings"
)
func NewContainerSource(source *v1alpha1.IntegrationSource) *sourcesv1.ContainerSource {
|
Verify goimports
Process completed with exit code 1.
|
Set up Go
Restore cache failed: Dependencies file is not found in /home/runner/work/eventing/eventing. Supported file pattern: go.sum
|
Loading