shutdown

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSharedShutdownIntervalTracker

NewSharedShutdownIntervalTracker returns a SampleCollector that does the following:

  • it goes through each sample result, and constructs shutdown interval(s) from the 'X-Openshift-Disruption' response header, and then

  • it records each shutdown interval in CI

    delegate: the next SampleCollector in the chain to be invoked monitor: Monitor API to start and end an interval in CI eventRecorder: to create events associated with the intervals locator: the CI locator assigned to this disruption test name: name of the disruption test

NOTE: NewSharedShutdownIntervalTracker allows a single shutdownIntervalTracker instance to be used by multiple backend sampler instances safely. In CI, we want a single interval for each graceful shutdown event of the kube-apiserver, and request(s) from different backend sampler(s) will potentially hit the kube-apiserver during a graceful shutdown window. This function returns an instance of WantEventRecorderAndMonitorRecorder, the test driver can use it to pass along the shared event recorder and monitor.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL