Skip to content

Commit

Permalink
Merge pull request #110287 from neolit123/1.25-add-url-scheme-e2e-tes…
Browse files Browse the repository at this point in the history
…t-for-cri-socket

test/e2e_kubeadm: add URL scheme test for node CRI annotations
  • Loading branch information
k8s-ci-robot committed May 31, 2022
2 parents 7e3c98f + 2a18a2d commit aae07c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e_kubeadm/nodes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package kubeadm

import (
"context"

rbacv1 "k8s.io/api/rbac/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/kubernetes/test/e2e/framework"
Expand Down Expand Up @@ -51,9 +52,11 @@ var _ = Describe("nodes", func() {
List(context.TODO(), metav1.ListOptions{})
framework.ExpectNoError(err, "error reading nodes")

// checks that the nodes have the CRI annotation
// Checks that the nodes have the CRI socket annotation
// and that it is prefixed with a URL scheme
for _, node := range nodes.Items {
gomega.Expect(node.Annotations).To(gomega.HaveKey(nodesCRISocketAnnotation))
gomega.Expect(node.Annotations[nodesCRISocketAnnotation]).To(gomega.HavePrefix("unix://"))
}
})

Expand Down

0 comments on commit aae07c6

Please sign in to comment.