Documentation ¶
Index ¶
Constants ¶
View Source
const ( RouteTableName = "mock" RouteTableNamespace = "mock" DestinationKind = "SERVICE" DestinationNamespace = "mock" StableService = "stable" CanaryService = "canary" RolloutNamespace = "mock" RolloutName = "mock" )
Variables ¶
View Source
var RouteTable = networkv2.RouteTable{ ObjectMeta: metav1.ObjectMeta{ Name: RouteTableName, Namespace: RouteTableNamespace, }, Spec: networkv2.RouteTableSpec{ Hosts: []string{"*"}, Http: []*networkv2.HTTPRoute{ { Name: RouteTableName, ActionType: &networkv2.HTTPRoute_ForwardTo{ ForwardTo: &networkv2.ForwardToAction{ Destinations: []*commonv2.DestinationReference{ { Kind: commonv2.DestinationKind_SERVICE, Port: &commonv2.PortSelector{ Specifier: &commonv2.PortSelector_Number{ Number: 8000, }, }, RefKind: &commonv2.DestinationReference_Ref{ Ref: &commonv2.ObjectReference{ Name: StableService, Namespace: DestinationNamespace, }, }, }, }, }, }, }, }, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.