Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the rings v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=rings.microsoft.com
Package v1alpha1 contains API Schema definitions for the rings v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=rings.microsoft.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "rings.microsoft.com", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
Types ¶
type Ring ¶
type Ring struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RingSpec `json:"spec,omitempty"` Status RingStatus `json:"status,omitempty"` }
Ring is the Schema for the rings API +k8s:openapi-gen=true +kubebuilder:subresource:status
func (*Ring) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ring.
func (*Ring) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Ring) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RingGroup ¶
type RingGroup struct { // The name of the group to be included in the ring Name string `json:"name"` // The initial users to be included in the group // +optional InitialUsers []string `json:"initialUsers,omitempty"` }
func (*RingGroup) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RingGroup.
func (*RingGroup) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RingList ¶
type RingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Ring `json:"items"` }
RingList contains a list of Ring
func (*RingList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RingList.
func (*RingList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RingList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RingPort ¶
type RingPort struct { // The name of this port within the service. This must be a DNS_LABEL. // All ports within a ServiceSpec must have unique names. This maps to // the 'Name' field in EndpointPort objects. // Optional if only one ServicePort is defined on this service. // +optional Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` // The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". // Default is TCP. // +optional Protocol corev1.Protocol `json:"protocol,omitempty" protobuf:"bytes,2,opt,name=protocol,casttype=Protocol"` // The port that will be exposed by this service. Port int32 `json:"port" protobuf:"varint,3,opt,name=port"` // Number or name of the port to access on the pods targeted by the service. // Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. // If this is a string, it will be looked up as a named port in the // target Pod's container ports. If this is not specified, the value // of the 'port' field is used (an identity map). // This field is ignored for services with clusterIP=None, and should be // omitted or set equal to the 'port' field. // More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service // +optional TargetPort intstr.IntOrString `json:"targetPort,omitempty" protobuf:"bytes,4,opt,name=targetPort"` }
func (*RingPort) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RingPort.
func (*RingPort) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RingRouting ¶
type RingRouting struct { // The target group of the ring Group RingGroup `json:"group"` // Service will target the deployments with this service tag Service string `json:"service"` // Version will target the deployments with this major version tag Version string `json:"version"` // Branch will target the deployments with this branch tag Branch string `json:"branch"` // Ports will expose these ports on the services and verified against the Deployment found Ports []RingPort `json:"ports"` }
func (*RingRouting) DeepCopy ¶
func (in *RingRouting) DeepCopy() *RingRouting
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RingRouting.
func (*RingRouting) DeepCopyInto ¶
func (in *RingRouting) DeepCopyInto(out *RingRouting)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RingSpec ¶
type RingSpec struct { // Deploy marks whether this ring will be deployed to the live environment Deploy bool `json:"deploy"` // Routing describes the service, group and users to be included in the ring Routing RingRouting `json:"routing"` }
RingSpec defines the desired state of Ring +k8s:openapi-gen=true
func (*RingSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RingSpec.
func (*RingSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RingStatus ¶
type RingStatus struct { }
RingStatus defines the observed state of Ring +k8s:openapi-gen=true
func (*RingStatus) DeepCopy ¶
func (in *RingStatus) DeepCopy() *RingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RingStatus.
func (*RingStatus) DeepCopyInto ¶
func (in *RingStatus) DeepCopyInto(out *RingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.