Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSharedShutdownIntervalTracker ¶
func NewSharedShutdownIntervalTracker(delegate backendsampler.SampleCollector, descriptor backend.TestDescriptor, monitorRecorder monitorapi.RecorderWriter, eventRecorder events.EventRecorder) (backendsampler.SampleCollector, backend.WantEventRecorderAndMonitorRecorder)
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.