mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 22:53:22 +00:00
Generate and format files
- Run hack/update-codegen.sh - Run hack/update-generated-device-plugin.sh - Run hack/update-generated-protobuf.sh - Run hack/update-generated-runtime.sh - Run hack/update-generated-swagger-docs.sh - Run hack/update-openapi-spec.sh - Run hack/update-gofmt.sh Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
@@ -40,22 +40,24 @@ import (
|
||||
testclocks "k8s.io/utils/clock/testing"
|
||||
)
|
||||
|
||||
/* fightTest configures a test of how API Priority and Fairness config
|
||||
controllers fight when they disagree on how to set FlowSchemaStatus.
|
||||
In particular, they set the condition that indicates integrity of
|
||||
the reference to the PriorityLevelConfiguration. The scenario tested is
|
||||
two teams of controllers, where the controllers in one team set the
|
||||
condition normally and the controllers in the other team set the condition
|
||||
to the opposite value.
|
||||
/*
|
||||
fightTest configures a test of how API Priority and Fairness config
|
||||
|
||||
This is a behavioral test: it instantiates these controllers and runs them
|
||||
almost normally. The test aims to run the controllers for a little under
|
||||
2 minutes. The test takes clock readings to get upper and lower bounds on
|
||||
how long each controller ran, and calculates consequent bounds on the number
|
||||
of writes that should happen to each FlowSchemaStatus. The test creates
|
||||
an informer to observe the writes. The calculated lower bound on the
|
||||
number of writes is very lax, assuming only that one write can be done
|
||||
every 10 seconds.
|
||||
controllers fight when they disagree on how to set FlowSchemaStatus.
|
||||
In particular, they set the condition that indicates integrity of
|
||||
the reference to the PriorityLevelConfiguration. The scenario tested is
|
||||
two teams of controllers, where the controllers in one team set the
|
||||
condition normally and the controllers in the other team set the condition
|
||||
to the opposite value.
|
||||
|
||||
This is a behavioral test: it instantiates these controllers and runs them
|
||||
almost normally. The test aims to run the controllers for a little under
|
||||
2 minutes. The test takes clock readings to get upper and lower bounds on
|
||||
how long each controller ran, and calculates consequent bounds on the number
|
||||
of writes that should happen to each FlowSchemaStatus. The test creates
|
||||
an informer to observe the writes. The calculated lower bound on the
|
||||
number of writes is very lax, assuming only that one write can be done
|
||||
every 10 seconds.
|
||||
*/
|
||||
type fightTest struct {
|
||||
t *testing.T
|
||||
|
Reference in New Issue
Block a user