Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=kuma.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: kuma.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is the GroupVersion for the Kuma API
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource gets a Kuma GroupResource for a specified resource
Types ¶
type Selector ¶
type Selector struct { // Tags to match, can be used for both source and destinations Match map[string]string `json:"match,omitempty"` }
Selector defines the configuration for which Kuma services should be targeted.
func (*Selector) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Selector.
func (*Selector) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TrafficRoute ¶
type TrafficRoute struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Mesh string `json:"mesh,omitempty"` Spec TrafficRouteSpec `json:"spec,omitempty"` }
TrafficRoute is the Schema for the Traffic Routes API. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*TrafficRoute) DeepCopy ¶
func (in *TrafficRoute) DeepCopy() *TrafficRoute
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficRoute.
func (*TrafficRoute) DeepCopyInto ¶
func (in *TrafficRoute) DeepCopyInto(out *TrafficRoute)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TrafficRoute) DeepCopyObject ¶
func (in *TrafficRoute) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TrafficRouteConf ¶
type TrafficRouteConf struct { // List of destinations with weights assigned to them. // When used, "destination" is not allowed. Split []*TrafficRouteSplit `json:"split,omitempty"` }
TrafficRouteConf defines the destination configuration.
func (*TrafficRouteConf) DeepCopy ¶
func (in *TrafficRouteConf) DeepCopy() *TrafficRouteConf
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficRouteConf.
func (*TrafficRouteConf) DeepCopyInto ¶
func (in *TrafficRouteConf) DeepCopyInto(out *TrafficRouteConf)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TrafficRouteList ¶
type TrafficRouteList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TrafficRoute `json:"items"` }
TrafficRouteList defines a list of TrafficRoute objects. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*TrafficRouteList) DeepCopy ¶
func (in *TrafficRouteList) DeepCopy() *TrafficRouteList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficRouteList.
func (*TrafficRouteList) DeepCopyInto ¶
func (in *TrafficRouteList) DeepCopyInto(out *TrafficRouteList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TrafficRouteList) DeepCopyObject ¶
func (in *TrafficRouteList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TrafficRouteSpec ¶
type TrafficRouteSpec struct { // List of selectors to match data plane proxies that are sources of traffic. Sources []*Selector `json:"sources,omitempty"` // List of selectors to match services that are destinations of traffic. // // Notice the difference between sources and destinations. // While the source of traffic is always a data plane proxy within a mesh, // the destination is a service that could be either within or outside // of a mesh. Destinations []*Selector `json:"destinations,omitempty"` // Configuration for the route. Conf *TrafficRouteConf `json:"conf,omitempty"` }
TrafficRouteSpec defines the spec for a TrafficRoute.
func (*TrafficRouteSpec) DeepCopy ¶
func (in *TrafficRouteSpec) DeepCopy() *TrafficRouteSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficRouteSpec.
func (*TrafficRouteSpec) DeepCopyInto ¶
func (in *TrafficRouteSpec) DeepCopyInto(out *TrafficRouteSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TrafficRouteSplit ¶
type TrafficRouteSplit struct { // Weight assigned to that destination. // Weights are not percentages. For example two destinations with // weights the same weight "1" will receive both same amount of the traffic. // 0 means that the destination will be ignored. Weight uint32 `json:"weight"` // Selector to match individual endpoints that comprise that destination. // // Notice that an endpoint can be either inside or outside the mesh. // In the former case an endpoint corresponds to a data plane proxy, // in the latter case an endpoint is an External Service. Destination map[string]string `json:"destination,omitempty"` }
TrafficRouteSplit defines a destination with a weight assigned to it.
func (*TrafficRouteSplit) DeepCopy ¶
func (in *TrafficRouteSplit) DeepCopy() *TrafficRouteSplit
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficRouteSplit.
func (*TrafficRouteSplit) DeepCopyInto ¶
func (in *TrafficRouteSplit) DeepCopyInto(out *TrafficRouteSplit)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.