mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
Merge pull request #33165 from zefciu/b29633
Automatic merge from submit-queue Corrected timeout on Downward API volume The tests for Downward API volume were apparently created before the default sync-frequency was set to 1 minute. As the current implementation of Pod gives us no guarantee that the changes will be seen in Downward API before `sync-frequency` we need the tests to reflect this. Fixes: #29633
This commit is contained in:
commit
d728afc59e
@ -31,7 +31,7 @@ import (
|
|||||||
|
|
||||||
var _ = framework.KubeDescribe("Downward API volume", func() {
|
var _ = framework.KubeDescribe("Downward API volume", func() {
|
||||||
// How long to wait for a log pod to be displayed
|
// How long to wait for a log pod to be displayed
|
||||||
const podLogTimeout = 45 * time.Second
|
const podLogTimeout = 65 * time.Second
|
||||||
f := framework.NewDefaultFramework("downward-api")
|
f := framework.NewDefaultFramework("downward-api")
|
||||||
var podClient *framework.PodClient
|
var podClient *framework.PodClient
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
@ -81,9 +81,7 @@ var _ = framework.KubeDescribe("Downward API volume", func() {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
// Mark the following 2 tests as [Flaky] because of https://github.com/kubernetes/kubernetes/issues/29633,
|
It("should update labels on modification [Conformance]", func() {
|
||||||
// we should re-enable these tests when the issue is fixed.
|
|
||||||
It("should update labels on modification [Conformance] [Flaky]", func() {
|
|
||||||
labels := map[string]string{}
|
labels := map[string]string{}
|
||||||
labels["key1"] = "value1"
|
labels["key1"] = "value1"
|
||||||
labels["key2"] = "value2"
|
labels["key2"] = "value2"
|
||||||
@ -114,7 +112,7 @@ var _ = framework.KubeDescribe("Downward API volume", func() {
|
|||||||
podLogTimeout, framework.Poll).Should(ContainSubstring("key3=\"value3\"\n"))
|
podLogTimeout, framework.Poll).Should(ContainSubstring("key3=\"value3\"\n"))
|
||||||
})
|
})
|
||||||
|
|
||||||
It("should update annotations on modification [Conformance] [Flaky]", func() {
|
It("should update annotations on modification [Conformance]", func() {
|
||||||
annotations := map[string]string{}
|
annotations := map[string]string{}
|
||||||
annotations["builder"] = "bar"
|
annotations["builder"] = "bar"
|
||||||
podName := "annotationupdate" + string(uuid.NewUUID())
|
podName := "annotationupdate" + string(uuid.NewUUID())
|
||||||
|
Loading…
Reference in New Issue
Block a user