trafficrouting

package
v0.3.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	client.Client
}

Manager responsible for adjusting network resources such as Service, Ingress, Gateway API, etc., to achieve traffic grayscale.

func NewTrafficRoutingManager

func NewTrafficRoutingManager(c client.Client) *Manager

func (*Manager) DoTrafficRouting

func (m *Manager) DoTrafficRouting(c *util.RolloutContext) (bool, error)

func (*Manager) FinalisingTrafficRouting

func (m *Manager) FinalisingTrafficRouting(c *util.RolloutContext, onlyRestoreStableService bool) (bool, error)

func (*Manager) InitializeTrafficRouting

func (m *Manager) InitializeTrafficRouting(c *util.RolloutContext) error

InitializeTrafficRouting determine if the network resources(service & ingress & gateway api) exist. If it is Ingress, init method will create the canary ingress resources, and set weight=0.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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