Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
  • Loading branch information
matzew committed Oct 25, 2024
1 parent df9e227 commit 01cbeab
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 9 deletions.
3 changes: 2 additions & 1 deletion cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/sources/v1alpha1/integration_conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package v1alpha1
import (
"context"
"fmt"

"knative.dev/pkg/apis"
)

Expand Down
3 changes: 2 additions & 1 deletion pkg/apis/sources/v1alpha1/integration_conversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ package v1alpha1
import (
"context"
"errors"
"knative.dev/pkg/apis"
"testing"

"knative.dev/pkg/apis"
)

// implement apis.Convertible
Expand Down
3 changes: 2 additions & 1 deletion pkg/apis/sources/v1alpha1/integration_defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/apis/sources/v1alpha1/integration_lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/sources/v1alpha1/integration_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package v1alpha1

import (
"context"

"knative.dev/pkg/apis"
)

Expand Down
1 change: 1 addition & 0 deletions pkg/reconciler/integrationsource/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package integrationsource

import (
"context"

"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/tools/cache"
Expand Down
1 change: 1 addition & 0 deletions pkg/reconciler/integrationsource/integrationsource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 4 additions & 3 deletions pkg/reconciler/integrationsource/resources/containersource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/rekt/features/integrationsource/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package integrationsource

import (
"context"

"github.com/cloudevents/sdk-go/v2/test"
"knative.dev/eventing/pkg/eventingtls/eventingtlstesting"
"knative.dev/eventing/test/rekt/features/featureflags"
Expand Down
1 change: 1 addition & 0 deletions test/rekt/features/integrationsource/oidc_feature.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package integrationsource

import (
"context"

"github.com/cloudevents/sdk-go/v2/test"
"knative.dev/eventing/test/rekt/features/featureflags"
"knative.dev/eventing/test/rekt/features/source"
Expand Down
5 changes: 3 additions & 2 deletions test/rekt/resources/integrationsource/integrationsource.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package integrationsource
import (
"context"
"embed"
"strings"
"time"

"k8s.io/apimachinery/pkg/runtime/schema"
duckv1 "knative.dev/pkg/apis/duck/v1"
"knative.dev/reconciler-test/pkg/environment"
"knative.dev/reconciler-test/pkg/feature"
"knative.dev/reconciler-test/pkg/k8s"
"knative.dev/reconciler-test/pkg/manifest"
"strings"
"time"
)

//go:embed integrationsource.yaml
Expand Down

0 comments on commit 01cbeab

Please sign in to comment.