mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +00:00
s/testDuringUpgrade/testDuringDisruption
This commit is contained in:
parent
c4479c5b74
commit
9ecbb0ae05
@ -265,11 +265,11 @@ func testServiceRemainsUp(f *framework.Framework, sem *chaosmonkey.Semaphore) {
|
|||||||
testService(f, sem, true)
|
testService(f, sem, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
// testService is a helper for testServiceUpBeforeAndAfter and testServiceRemainsUp with a flag for testDuringUpgrade
|
// testService is a helper for testServiceUpBeforeAndAfter and testServiceRemainsUp with a flag for testDuringDisruption
|
||||||
//
|
//
|
||||||
// TODO(ihmccreery) remove this abstraction once testServiceUpBeforeAndAfter is no longer needed, because node upgrades
|
// TODO(ihmccreery) remove this abstraction once testServiceUpBeforeAndAfter is no longer needed, because node upgrades
|
||||||
// maintain a responsive service.
|
// maintain a responsive service.
|
||||||
func testService(f *framework.Framework, sem *chaosmonkey.Semaphore, testDuringUpgrade bool) {
|
func testService(f *framework.Framework, sem *chaosmonkey.Semaphore, testDuringDisruption bool) {
|
||||||
// Setup
|
// Setup
|
||||||
serviceName := "service-test"
|
serviceName := "service-test"
|
||||||
|
|
||||||
@ -300,7 +300,7 @@ func testService(f *framework.Framework, sem *chaosmonkey.Semaphore, testDuringU
|
|||||||
|
|
||||||
sem.Ready()
|
sem.Ready()
|
||||||
|
|
||||||
if testDuringUpgrade {
|
if testDuringDisruption {
|
||||||
// Continuous validation
|
// Continuous validation
|
||||||
wait.Until(func() {
|
wait.Until(func() {
|
||||||
By("hitting the pod through the service's LoadBalancer")
|
By("hitting the pod through the service's LoadBalancer")
|
||||||
|
Loading…
Reference in New Issue
Block a user