Skip to content

Commit

Permalink
vendor: Remove gops dependency
Browse files Browse the repository at this point in the history
This dependency got introduced in #325 for debugging and performance
improvement purposes, but my impression is that we haven't really been
using it.

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
  • Loading branch information
michi-covalent committed Sep 17, 2024
1 parent 5284e08 commit f78d5e9
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 409 deletions.
7 changes: 0 additions & 7 deletions cmd/cilium/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,13 @@ package main

import (
"fmt"
"log"
"os"

gops "github.com/google/gops/agent"

"github.com/cilium/cilium/cilium-cli/cli"
_ "github.com/cilium/cilium/cilium-cli/logging" // necessary to disable unwanted cfssl log messages
)

func main() {
if err := gops.Listen(gops.Options{}); err != nil {
log.Printf("Unable to start gops: %s", err)
}

if err := cli.NewDefaultCiliumCommand().Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
Expand Down
6 changes: 2 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ replace (
sigs.k8s.io/controller-tools => github.com/cilium/controller-tools v0.8.0-2
)

require (
github.com/cilium/cilium v1.17.0-pre.0
github.com/google/gops v0.3.28
)
require github.com/cilium/cilium v1.17.0-pre.0

require (
cel.dev/expr v0.15.0 // indirect
Expand Down Expand Up @@ -86,6 +83,7 @@ require (
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/gops v0.3.28 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gopacket/gopacket v1.2.0 // indirect
Expand Down
284 changes: 0 additions & 284 deletions vendor/github.com/google/gops/agent/agent.go

This file was deleted.

37 changes: 0 additions & 37 deletions vendor/github.com/google/gops/agent/sockopt_reuseport.go

This file was deleted.

14 changes: 0 additions & 14 deletions vendor/github.com/google/gops/agent/sockopt_unsupported.go

This file was deleted.

Loading

0 comments on commit f78d5e9

Please sign in to comment.