mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
plugin/kubernetes: Enable protobuf, Update client api package (#1114)
* vendor * code
This commit is contained in:
committed by
John Belamaric
parent
45b0252c1a
commit
4b3a430ff2
@@ -6,7 +6,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/mholt/caddy"
|
||||
"k8s.io/client-go/1.5/pkg/api/unversioned"
|
||||
meta "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
func TestKubernetesParse(t *testing.T) {
|
||||
@@ -431,7 +431,7 @@ func TestKubernetesParse(t *testing.T) {
|
||||
|
||||
// Labels
|
||||
if opts.labelSelector != nil {
|
||||
foundLabelSelectorString := unversioned.FormatLabelSelector(opts.labelSelector)
|
||||
foundLabelSelectorString := meta.FormatLabelSelector(opts.labelSelector)
|
||||
if foundLabelSelectorString != test.expectedLabelSelector {
|
||||
t.Errorf("Test %d: Expected kubernetes controller to be initialized with label selector '%s'. Instead found selector '%s' for input '%s'", i, test.expectedLabelSelector, foundLabelSelectorString, test.input)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user