Documentation ¶
Index ¶
Constants ¶
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 ¶
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.
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.
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.
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.
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.
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.
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.
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
var SupportedTrafficTargetRouteKinds = map[ControllerVersion][]TrafficTargetRouteKind{ "v0.5": { smi.HTTPRouteGroupKind, smi.TCPRouteKind, }, "v0.6": { smi.HTTPRouteGroupKind, smi.TCPRouteKind, }, "v0.7": { smi.HTTPRouteGroupKind, smi.TCPRouteKind, }, "v0.8": { smi.HTTPRouteGroupKind, smi.TCPRouteKind, }, "v0.9": { smi.HTTPRouteGroupKind, smi.TCPRouteKind, }, }
SupportedTrafficTargetRouteKinds is a map of OSM Controller Version to supported SMI TrafficTarget Route Kinds.
Functions ¶
This section is empty.
Types ¶
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.