diff options
Diffstat (limited to 'cmd/k8s-operator/nameserver_test.go')
| -rw-r--r-- | cmd/k8s-operator/nameserver_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/k8s-operator/nameserver_test.go b/cmd/k8s-operator/nameserver_test.go index aa2a294c5..3ec00d5ed 100644 --- a/cmd/k8s-operator/nameserver_test.go +++ b/cmd/k8s-operator/nameserver_test.go @@ -43,6 +43,9 @@ func TestNameserverReconciler(t *testing.T) { ClusterIP: "5.4.3.2", }, Pod: &tsapi.NameserverPod{ + NodeSelector: map[string]string{ + "foo": "bar", + }, Tolerations: []corev1.Toleration{ { Key: "some-key", @@ -131,6 +134,9 @@ func TestNameserverReconciler(t *testing.T) { }, }, } + wantsDeploy.Spec.Template.Spec.NodeSelector = map[string]string{ + "foo": "bar", + } expectEqual(t, fc, wantsDeploy) }) |
