Skip to content

Commit c8edd37

Browse files
committed
Fix build for ext-proc example
Signed-off-by: Yuan Tang <[email protected]>
1 parent 90c2b64 commit c8edd37

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

examples/poc/ext-proc/cache/cache.go

-4
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,3 @@ type PodCache struct {
8585
PodIPMap map[string]string
8686
IpPodMap map[string]string
8787
}
88-
89-
func SetPodCache(cache *freecache.Cache, pods []string) {
90-
cacheKey := fmt.Sprintf("")
91-
}

examples/poc/ext-proc/main.go

-11
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,6 @@ func main() {
9595
log.Fatalf("failed to listen: %v", err)
9696
}
9797

98-
// creates the in-cluster config
99-
config, err := rest.InClusterConfig()
100-
if err != nil {
101-
panic(err.Error())
102-
}
103-
// creates the clientset
104-
clientset, err := kubernetes.NewForConfig(config)
105-
if err != nil {
106-
panic(err.Error())
107-
}
108-
10998
s := grpc.NewServer()
11099

111100
extProcPb.RegisterExternalProcessorServer(s, &handlers.Server{

0 commit comments

Comments
 (0)