Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the labs v1alpha1 API group +kubebuilder:object:generate=true +groupName=labs.ishankhare.dev
Index ¶
Constants ¶
const ( PhasePending = "PENDING" PhaseCreated = "CREATED" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "labs.ishankhare.dev", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type DeploymentTarget ¶
type DeploymentTarget struct { Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` TrafficSplit TrafficSplit `json:"trafficSplit,omitempty"` }
func (*DeploymentTarget) DeepCopy ¶
func (in *DeploymentTarget) DeepCopy() *DeploymentTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentTarget.
func (*DeploymentTarget) DeepCopyInto ¶
func (in *DeploymentTarget) DeepCopyInto(out *DeploymentTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TrafficSplit ¶
type TrafficSplit struct { Hosts []string `json:"hosts,omitempty"` SubsetName string `json:"subsetName,omitempty"` SubsetLabels map[string]string `json:"subsetLabels,omitempty"` DestinationHost string `json:"destinationHost,omitempty"` Weight int `json:"weight,omitempty"` }
func (*TrafficSplit) DeepCopy ¶
func (in *TrafficSplit) DeepCopy() *TrafficSplit
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficSplit.
func (*TrafficSplit) DeepCopyInto ¶
func (in *TrafficSplit) DeepCopyInto(out *TrafficSplit)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Workload ¶
type Workload struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WorkloadSpec `json:"spec,omitempty"` Status WorkloadStatus `json:"status,omitempty"` }
Workload is the Schema for the workloads API
func (*Workload) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workload.
func (*Workload) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Workload) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Workload) GetIstioResourceName ¶
type WorkloadList ¶
type WorkloadList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Workload `json:"items"` }
WorkloadList contains a list of Workload
func (*WorkloadList) DeepCopy ¶
func (in *WorkloadList) DeepCopy() *WorkloadList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadList.
func (*WorkloadList) DeepCopyInto ¶
func (in *WorkloadList) DeepCopyInto(out *WorkloadList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkloadList) DeepCopyObject ¶
func (in *WorkloadList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WorkloadSpec ¶
type WorkloadSpec struct { // Host is the name of the service from the service registry Host string `json:"host,omitempty"` Targets []DeploymentTarget `json:"targets,omitempty"` }
WorkloadSpec defines the desired state of Workload
func (*WorkloadSpec) DeepCopy ¶
func (in *WorkloadSpec) DeepCopy() *WorkloadSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSpec.
func (*WorkloadSpec) DeepCopyInto ¶
func (in *WorkloadSpec) DeepCopyInto(out *WorkloadSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadStatus ¶
type WorkloadStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file VirtualServiceState string `json:"virtualServiceState,omitempty"` DestinationRuleState string `json:"destinationRuleState,omitempty"` }
WorkloadStatus defines the observed state of Workload
func (*WorkloadStatus) DeepCopy ¶
func (in *WorkloadStatus) DeepCopy() *WorkloadStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadStatus.
func (*WorkloadStatus) DeepCopyInto ¶
func (in *WorkloadStatus) DeepCopyInto(out *WorkloadStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.