mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
Define pod UID version.
This commit is contained in:
parent
93d5528507
commit
741067495b
@ -29,7 +29,10 @@ import (
|
||||
. "github.com/onsi/ginkgo"
|
||||
)
|
||||
|
||||
var hostIPVersion = utilversion.MustParseSemantic("v1.8.0")
|
||||
var (
|
||||
hostIPVersion = utilversion.MustParseSemantic("v1.8.0")
|
||||
podUIDVersion = utilversion.MustParseSemantic("v1.8.0")
|
||||
)
|
||||
|
||||
var _ = framework.KubeDescribe("Downward API", func() {
|
||||
f := framework.NewDefaultFramework("downward-api")
|
||||
@ -189,7 +192,7 @@ var _ = framework.KubeDescribe("Downward API", func() {
|
||||
})
|
||||
|
||||
It("should provide pod UID as env vars [Conformance]", func() {
|
||||
framework.SkipUnlessServerVersionGTE(hostIPVersion, f.ClientSet.Discovery())
|
||||
framework.SkipUnlessServerVersionGTE(podUIDVersion, f.ClientSet.Discovery())
|
||||
podName := "downward-api-" + string(uuid.NewUUID())
|
||||
env := []v1.EnvVar{
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user