Skip to content

Commit

Permalink
Re-generate protobuf and cleanup go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
hjiawei committed Jul 9, 2024
1 parent f45d5bf commit c2d63e5
Show file tree
Hide file tree
Showing 10 changed files with 517 additions and 302 deletions.
29 changes: 5 additions & 24 deletions app-policy/proto/healthz.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 12 additions & 6 deletions app-policy/proto/healthz_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions cni-plugin/pkg/dataplane/grpc/proto/cnibackend.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions cni-plugin/pkg/dataplane/grpc/proto/cnibackend_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 7 additions & 10 deletions felix/k8sfv/k8sfv.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,21 @@

package main

// XXX staticcheck disabled for the whole import as golangci-lint ignores
// specific directives, still an open issue:
// https://github.com/golangci/golangci-lint/issues/741
//
// SA1019 prometheus is using that lib and so need we
// github.com/golang/protobuf/proto is deprecated and fails lint

//nolint:staticcheck
import (
"context"
"fmt"
"strings"
"time"

"github.com/golang/protobuf/proto"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/push"
log "github.com/sirupsen/logrus"

"google.golang.org/protobuf/proto"

"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/clientcmd"
"k8s.io/client-go/tools/clientcmd/api"
Expand Down Expand Up @@ -133,7 +128,9 @@ var _ = AfterSuite(func() {
fmt.Println("")
for _, family := range metricFamilies {
if strings.HasPrefix(*family.Name, "k8sfv") {
fmt.Println(proto.MarshalTextString(family))
out, err := proto.Marshal(family)
panicIfError(err)
fmt.Println(string(out))
}
}
})
Expand Down
Loading

0 comments on commit c2d63e5

Please sign in to comment.