Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=kanary.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: kanary.GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type DestinationStatus ¶
type DestinationStatus struct { ProxyName string `json:"proxyName"` ServiceName string `json:"serviceName"` ConfigName string `json:"configName"` }
//DestinationStatus for kanary
func (*DestinationStatus) DeepCopy ¶
func (in *DestinationStatus) DeepCopy() *DestinationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationStatus.
func (*DestinationStatus) DeepCopyInto ¶
func (in *DestinationStatus) DeepCopyInto(out *DestinationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Kanary ¶
type Kanary struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KanarySpec `json:"spec"` Status KanaryStatus `json:"status"` }
Kanary describes a Kanary deployment.
func (*Kanary) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kanary.
func (*Kanary) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Kanary) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Kanary) HAProxyCreationNeeded ¶
Check current status to determined if haproxy deployment need to be create
type KanaryEndpointList ¶
func (*KanaryEndpointList) DeepCopy ¶
func (in *KanaryEndpointList) DeepCopy() *KanaryEndpointList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KanaryEndpointList.
func (*KanaryEndpointList) DeepCopyInto ¶
func (in *KanaryEndpointList) DeepCopyInto(out *KanaryEndpointList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KanaryList ¶
type KanaryList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Kanary `json:"items"` }
KanaryList is a list of Kanary resources
func (*KanaryList) DeepCopy ¶
func (in *KanaryList) DeepCopy() *KanaryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KanaryList.
func (*KanaryList) DeepCopyInto ¶
func (in *KanaryList) DeepCopyInto(out *KanaryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KanaryList) DeepCopyObject ¶
func (in *KanaryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KanaryRoute ¶
type KanaryRoute struct { Backend KanaryService `json:"backend"` Weight int `json:"weight"` }
KanaryRoute route
func (*KanaryRoute) DeepCopy ¶
func (in *KanaryRoute) DeepCopy() *KanaryRoute
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KanaryRoute.
func (*KanaryRoute) DeepCopyInto ¶
func (in *KanaryRoute) DeepCopyInto(out *KanaryRoute)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KanaryService ¶
type KanaryService struct { ServiceName string `json:"servicename"` ServicePort intstr.IntOrString `json:"serviceport"` }
KanaryService basic information to build a service
func (*KanaryService) DeepCopy ¶
func (in *KanaryService) DeepCopy() *KanaryService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KanaryService.
func (*KanaryService) DeepCopyInto ¶
func (in *KanaryService) DeepCopyInto(out *KanaryService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KanarySpec ¶
type KanarySpec struct { Destination string `json:"destination"` Routes []KanaryRoute `json:"routes"` }
KanarySpec is the spec for a Kanary resource
func (*KanarySpec) DeepCopy ¶
func (in *KanarySpec) DeepCopy() *KanarySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KanarySpec.
func (*KanarySpec) DeepCopyInto ¶
func (in *KanarySpec) DeepCopyInto(out *KanarySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KanaryStatus ¶
type KanaryStatus struct { DestinationStatus DestinationStatus `json:"destinationStatus"` EndpointStatus []KanaryEndpointList `json:"endpointStatuses"` }
KanaryStatus for kanary
func (*KanaryStatus) DeepCopy ¶
func (in *KanaryStatus) DeepCopy() *KanaryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KanaryStatus.
func (*KanaryStatus) DeepCopyInto ¶
func (in *KanaryStatus) DeepCopyInto(out *KanaryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.