Skip to content

Commit 1832c28

Browse files
committed
chore: remove unused functions
1 parent f78cb3c commit 1832c28

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

internal/ingress/controller/controller.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"github.com/golang/glog"
2525
"github.com/pkg/errors"
2626

27-
apiv1 "k8s.io/api/core/v1"
2827
clientset "k8s.io/client-go/kubernetes"
2928
"k8s.io/client-go/rest"
3029

@@ -83,16 +82,6 @@ type Configuration struct {
8382
SyncRateLimit float32
8483
}
8584

86-
// GetPublishService returns the configured service used to set ingress status
87-
func (n KongController) GetPublishService() *apiv1.Service {
88-
s, err := n.store.GetService(n.cfg.PublishService)
89-
if err != nil {
90-
return nil
91-
}
92-
93-
return s
94-
}
95-
9685
// sync collects all the pieces required to assemble the configuration file and
9786
// then sends the content to the backend (OnUpdate) receiving the populated
9887
// template as response reloading the backend if is required.

internal/ingress/utils/k8s.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ import (
2121
"os"
2222
"strings"
2323

24-
"github.com/golang/glog"
2524
apiv1 "k8s.io/api/core/v1"
2625
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2726
clientset "k8s.io/client-go/kubernetes"
28-
"k8s.io/client-go/tools/cache"
2927
)
3028

3129
// ParseNameNS parses a string searching a namespace and name
@@ -105,13 +103,3 @@ func GetPodDetails(kubeClient clientset.Interface) (*PodInfo, error) {
105103
Labels: pod.GetLabels(),
106104
}, nil
107105
}
108-
109-
// MetaNamespaceKey knows how to make keys for API objects which implement meta.Interface.
110-
func MetaNamespaceKey(obj interface{}) string {
111-
key, err := cache.DeletionHandlingMetaNamespaceKeyFunc(obj)
112-
if err != nil {
113-
glog.Warning(err)
114-
}
115-
116-
return key
117-
}

0 commit comments

Comments
 (0)