Commit 8bd71c3d authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #29502 from lixiaobing10051267/masterHostName

Automatic merge from submit-queue t.Errorf output wrong variables in identity_mapper_test.go t.Errorf output wrong variables in identity_mapper_test.go <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/29502) <!-- Reviewable:end -->
parents ff3bd05e 7d3d6a7f
...@@ -55,11 +55,11 @@ func TestPetIDDNS(t *testing.T) { ...@@ -55,11 +55,11 @@ func TestPetIDDNS(t *testing.T) {
t.Fatalf("Failed to generate pet %v", err) t.Fatalf("Failed to generate pet %v", err)
} }
if hostname, ok := pod.Annotations[api_pod.PodHostnameAnnotation]; !ok || hostname != petName { if hostname, ok := pod.Annotations[api_pod.PodHostnameAnnotation]; !ok || hostname != petName {
t.Errorf("Wrong hostname: %v", petName) t.Errorf("Wrong hostname: %v", hostname)
} }
// TODO: Check this against the governing service. // TODO: Check this against the governing service.
if subdomain, ok := pod.Annotations[api_pod.PodSubdomainAnnotation]; !ok || subdomain != petSubdomain { if subdomain, ok := pod.Annotations[api_pod.PodSubdomainAnnotation]; !ok || subdomain != petSubdomain {
t.Errorf("Wrong subdomain: %v", petName) t.Errorf("Wrong subdomain: %v", subdomain)
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment