version

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// V1Alpha2 is a string constant used to identify SMI resources of version v1alpha2
	V1Alpha2 = "v1alpha2"

	// V1Alpha3 is a string constant used to identify SMI resources of version v1alpha3
	V1Alpha3 = "v1alpha3"
)

Variables

View Source
var EnvoyAdminPort = map[ControllerVersion]uint16{
	"v0.5": 15000,
	"v0.6": 15000,
	"v0.7": 15000,
	"v0.8": 15000,
	"v0.9": 15000,
}

EnvoyAdminPort is the admin port number of Envoys configured by the given version of the OSM Controller.

View Source
var InboundListenerNames = map[ControllerVersion]string{
	"v0.5": "inbound-listener",
	"v0.6": "inbound-listener",
	"v0.7": "inbound-listener",
	"v0.8": "inbound-listener",
	"v0.9": "inbound-listener",
}

InboundListenerNames is the name of the Envoy listener expected to be created by a certain version of the OSM Controller.

View Source
var OutboundListenerNames = map[ControllerVersion]string{
	"v0.5": "outbound-listener",
	"v0.6": "outbound-listener",
	"v0.7": "outbound-listener",
	"v0.8": "outbound-listener",
	"v0.9": "outbound-listener",
}

OutboundListenerNames is the name of the Envoy listener expected to be created by a certain version of the OSM Controller.

View Source
var SupportedAnnotations = map[ControllerVersion][]Annotation{
	"v0.5": {
		"openservicemesh.io/monitored-by",
		"openservicemesh.io/sidecar-injection",
		"openservicemesh.io/metrics",
	},
	"v0.6": {
		"openservicemesh.io/monitored-by",
		"openservicemesh.io/sidecar-injection",
		"openservicemesh.io/metrics",
	},
	"v0.7": {
		"openservicemesh.io/monitored-by",
		"openservicemesh.io/sidecar-injection",
		"openservicemesh.io/metrics",
	},
	"v0.8": {
		"openservicemesh.io/monitored-by",
		"openservicemesh.io/sidecar-injection",
		"openservicemesh.io/metrics",
	},
	"v0.9": {
		"openservicemesh.io/monitored-by",
		"openservicemesh.io/sidecar-injection",
		"openservicemesh.io/metrics",
		"openservicemesh.io/outbound-port-exclusion-list",
		"openservicemesh.io/inbound-port-exclusion-list",
	},
}

SupportedAnnotations maintains a mapping of OSM version to supported annotations.

View Source
var SupportedHTTPRouteVersion = map[ControllerVersion][]HTTPRouteVersion{
	"v0.5": {
		"v1alpha3",
	},
	"v0.6": {
		"v1alpha3",
	},
	"v0.7": {
		"v1alpha4",
	},
	"v0.8": {
		"v1alpha4",
	},
	"v0.9": {
		"v1alpha4",
	},
}

SupportedHTTPRouteVersion is a mapping of OSM Controller version to supported HTTP Route Group version.

View Source
var SupportedIngress = map[ControllerVersion][]IngressVersion{
	"v0.5": {

		"extensions/v1beta1",
	},
	"v0.6": {

		"extensions/v1beta1",
	},
	"v0.7": {

		"extensions/v1beta1",
	},
	"v0.8": {

		"networking/v1beta1",
	},
	"v0.9": {

		"networking/v1",
		"networking/v1beta1",
	},
}

SupportedIngress maintains a mapping of OSM version to supported Ingress resource versions.

View Source
var SupportedTrafficSplit = map[ControllerVersion]TrafficSplitVersion{
	"v0.5": "v1alpha2",
	"v0.6": "v1alpha2",
	"v0.7": "v1alpha2",
	"v0.8": "v1alpha2",
	"v0.9": "v1alpha2",
}

SupportedTrafficSplit is the mapping of OSM Controller version to supported SMI TrafficSplit version.

View Source
var SupportedTrafficTarget = map[ControllerVersion]TrafficTargetVersion{

	"v0.5": "v1alpha2",

	"v0.6": "v1alpha2",

	"v0.7": "v1alpha3",

	"v0.8": "v1alpha3",

	"v0.9": "v1alpha3",
}

SupportedTrafficTarget is a map of OSM Controller Version to supported

SupportedTrafficTargetRouteKinds is a map of OSM Controller Version to supported SMI TrafficTarget Route Kinds.

Functions

This section is empty.

Types

type Annotation

type Annotation string

Annotation is a string type alias for the osm annotation.

type ControllerVersion

type ControllerVersion string

ControllerVersion is a string type alias for the OSM version.

func (ControllerVersion) String

func (v ControllerVersion) String() string

String() implements the stringer for ControllerVersion.

type HTTPRouteVersion

type HTTPRouteVersion string

HTTPRouteVersion is a string type alias for the SMI HTTPRoute version supported.

type IngressVersion

type IngressVersion string

IngressVersion is a string type alias for the Ingress version supported.

type TrafficSplitVersion

type TrafficSplitVersion string

TrafficSplitVersion is a string type alias for the SMI TrafficSplit version supported.

type TrafficTargetRouteKind

type TrafficTargetRouteKind string

TrafficTargetRouteKind is a string type alias for the SMI TrafficTarget route kind supported.

type TrafficTargetVersion

type TrafficTargetVersion string

TrafficTargetVersion is a string type alias for the SMI TrafficTarget version supported.

Jump to

Keyboard shortcuts

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