Remove useless nodeip call and deprecate --force-namespace-isolation
This commit is contained in:
parent
8e7480e0f1
commit
d8fe2d992b
4 changed files with 2 additions and 7 deletions
|
|
@ -59,8 +59,6 @@ type Configuration struct {
|
|||
|
||||
Namespace string
|
||||
|
||||
ForceNamespaceIsolation bool
|
||||
|
||||
// +optional
|
||||
TCPConfigMapName string
|
||||
// +optional
|
||||
|
|
|
|||
|
|
@ -71,7 +71,6 @@ func GetNodeIPOrName(kubeClient clientset.Interface, name string, useInternalIP
|
|||
type PodInfo struct {
|
||||
Name string
|
||||
Namespace string
|
||||
NodeIP string
|
||||
// Labels selectors of the running pod
|
||||
// This is used to search for other Ingress controller pods
|
||||
Labels map[string]string
|
||||
|
|
@ -95,7 +94,6 @@ func GetPodDetails(kubeClient clientset.Interface) (*PodInfo, error) {
|
|||
return &PodInfo{
|
||||
Name: podName,
|
||||
Namespace: podNs,
|
||||
NodeIP: GetNodeIPOrName(kubeClient, pod.Spec.NodeName, true),
|
||||
Labels: pod.GetLabels(),
|
||||
}, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue