Skip to content

Commit b088086

Browse files
committed
Fix main build
Signed-off-by: Jason Parraga <sovietaced@gmail.com>
1 parent a3093e7 commit b088086

165 files changed

Lines changed: 29181 additions & 808 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

actions/config/config_flags.go

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/config/config_flags_test.go

Lines changed: 214 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/k8s/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"sync"
99

1010
"connectrpc.com/connect"
11-
"google.golang.org/protobuf/proto"
11+
"github.com/golang/protobuf/proto" //nolint: staticcheck
1212
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1313
"k8s.io/apimachinery/pkg/watch"
1414
"k8s.io/client-go/kubernetes/scheme"

app/config/config.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ type AppConfig struct {
1717
CacheTTL time.Duration `json:"cacheTtl" pflag:",TTL for app status cache"`
1818
}
1919

20-
2120
const appConfigSectionKey = "apps"
2221

2322
var defaultAppConfig = &AppConfig{

app/internal/k8s/app_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010
"sync"
1111

12-
"google.golang.org/protobuf/proto"
12+
"github.com/golang/protobuf/proto" //nolint: staticcheck
1313
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
1414
corev1 "k8s.io/api/core/v1"
1515
k8serrors "k8s.io/apimachinery/pkg/api/errors"

app/internal/service/app_logs_streamer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (s *K8sAppLogStreamer) TailLogs(ctx context.Context, replicaID *flyteapp.Re
7777
if err != nil {
7878
return connect.NewError(connect.CodeInternal, fmt.Errorf("failed to stream pod logs: %w", err))
7979
}
80-
defer logStream.Close()
80+
defer logStream.Close() //nolint:errcheck
8181

8282
err = podlogs.Stream(ctx, logStream, podlogs.DefaultBatchSize, func(lines []*dataplane.LogLine) error {
8383
return send(&flyteapp.LogLines{StructuredLines: lines})

app/internal/service/internal_app_service_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313

1414
flyteapp "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/app"
1515
"github.com/flyteorg/flyte/v2/gen/go/flyteidl2/app/appconnect"
16-
flytecoreapp "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/core"
1716
"github.com/flyteorg/flyte/v2/gen/go/flyteidl2/common"
17+
flytecoreapp "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/core"
1818
)
1919

2020
// mockAppK8sClient is a testify mock for AppK8sClientInterface.

app/service/app_logs_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (s *AppLogsService) TailLogs(
3333
if err != nil {
3434
return connect.NewError(connect.CodeInternal, err)
3535
}
36-
defer clientStream.Close()
36+
defer clientStream.Close() //nolint:errcheck
3737
for clientStream.Receive() {
3838
if err := stream.Send(clientStream.Msg()); err != nil {
3939
return err

app/service/app_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (s *AppService) Watch(
142142
if err != nil {
143143
return connect.NewError(connect.CodeInternal, err)
144144
}
145-
defer clientStream.Close()
145+
defer clientStream.Close() //nolint:errcheck
146146
for clientStream.Receive() {
147147
if err := stream.Send(clientStream.Msg()); err != nil {
148148
return err

0 commit comments

Comments
 (0)