Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
freeznet committed Feb 24, 2025
1 parent 4fa2f5c commit f0e7ee1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions controllers/spec/function_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func makeFunctionSample(functionName string) *v1alpha1.Function {
}
}

func makeFunctionSamplePackageUrl(functionName string) *v1alpha1.Function {
func makeFunctionSamplePackageURL(functionName string) *v1alpha1.Function {
f := makeFunctionSample(functionName)
f.Spec.Java.JarLocation = "function://public/default/java-function"
f.Spec.Java.Jar = "/tmp/java-function.jar"
Expand All @@ -106,7 +106,7 @@ func makeFunctionSamplePackageUrl(functionName string) *v1alpha1.Function {

func TestInitContainerDownloader(t *testing.T) {
utils.EnableInitContainers = true
function := makeFunctionSamplePackageUrl("test")
function := makeFunctionSamplePackageURL("test")

objectMeta := MakeFunctionObjectMeta(function)

Expand Down
5 changes: 4 additions & 1 deletion controllers/spec/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ package spec

import (
"context"
"regexp"

"github.com/streamnative/function-mesh/utils"
"google.golang.org/protobuf/encoding

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / unit-tests (1.21.9)

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / unit-tests (1.21.9)

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / unit-tests (1.21.9)

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / unit-tests (1.21.9)

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / unit-tests (1.21.9)

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / unit-tests (1.21.9)

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / Scan

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / Scan

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / Scan

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / Scan

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / Scan

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / Scan

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / Scan

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / Scan

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / Scan

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / Scan

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / Scan

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / Scan

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / unit-tests (1.22.12)

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / unit-tests (1.22.12)

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / unit-tests (1.22.12)

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / unit-tests (1.22.12)

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / unit-tests (1.22.12)

string literal not terminated

Check failure on line 25 in controllers/spec/sink.go

View workflow job for this annotation

GitHub Actions / unit-tests (1.22.12)

string literal not terminated
"github.com/streamnative/function-mesh/utils"
"google.golang.org/protobuf/encoding/protojson"
appsv1 "k8s.io/api/apps/v1"
autov2 "k8s.io/api/autoscaling/v2"
v1 "k8s.io/api/batch/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"regexp"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down
3 changes: 2 additions & 1 deletion controllers/spec/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ package spec
import (
"context"
"fmt"
"regexp"

"github.com/streamnative/function-mesh/utils"
"google.golang.org/protobuf/encoding/protojson"
appsv1 "k8s.io/api/apps/v1"
autov2 "k8s.io/api/autoscaling/v2"
v1 "k8s.io/api/batch/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"regexp"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/streamnative/function-mesh/api/compute/v1alpha1"
Expand Down

0 comments on commit f0e7ee1

Please sign in to comment.