Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface {
// Initialize will validate the traffic routing resource
Initialize(ctx context.Context) error
// EnsureRoutes check and set canary desired weight. desiredWeight[0,100]
// 1. check if canary has been set desired weight.
// 2. If not, set canary desired weight
// When the first set weight is returned false, mainly to give the provider some time to process, only when again ensure, will return true
// When desiredWeight=0, it means that rollout has been completed and the final traffic switching process is in progress,
// and the canary weight should be set to 0 at this time.
EnsureRoutes(ctx context.Context, desiredWeight int32) (bool, error)
// Finalise will do some cleanup work after the canary rollout complete, such as delete canary ingress.
// Finalise is called with a 3-second delay after completing the canary.
Finalise(ctx context.Context) error
}
Controller common function across all TrafficRouting implementation
Click to show internal directories.
Click to hide internal directories.