mocks

package
v0.0.0-e4d2405 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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