Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: apps.GroupName, Version: "v1alpha1"}
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 SelectiveDeployment ¶
type SelectiveDeployment struct { // TypeMeta is the metadata for the resource, like kind and apiversion metav1.TypeMeta `json:",inline"` // ObjectMeta contains the metadata for the particular object, including metav1.ObjectMeta `json:"metadata,omitempty"` // Spec is the selectivedeployment resource spec Spec SelectiveDeploymentSpec `json:"spec"` // Status is the selectivedeployment resource status Status SelectiveDeploymentStatus `json:"status,omitempty"` }
SelectiveDeployment describes a SelectiveDeployment resource
func (*SelectiveDeployment) DeepCopy ¶
func (in *SelectiveDeployment) DeepCopy() *SelectiveDeployment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelectiveDeployment.
func (*SelectiveDeployment) DeepCopyInto ¶
func (in *SelectiveDeployment) DeepCopyInto(out *SelectiveDeployment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SelectiveDeployment) DeepCopyObject ¶
func (in *SelectiveDeployment) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SelectiveDeploymentList ¶
type SelectiveDeploymentList struct { // TypeMeta is the metadata for the resource, like kind and apiversion metav1.TypeMeta `json:",inline"` // ObjectMeta contains the metadata for the particular object, including metav1.ListMeta `json:"metadata"` // SelectiveDeploymentList is a list of SelectiveDeployment resources thus, // SelectiveDeployments are contained here. Items []SelectiveDeployment `json:"items"` }
SelectiveDeploymentList is a list of SelectiveDeployment resources
func (*SelectiveDeploymentList) DeepCopy ¶
func (in *SelectiveDeploymentList) DeepCopy() *SelectiveDeploymentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelectiveDeploymentList.
func (*SelectiveDeploymentList) DeepCopyInto ¶
func (in *SelectiveDeploymentList) DeepCopyInto(out *SelectiveDeploymentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SelectiveDeploymentList) DeepCopyObject ¶
func (in *SelectiveDeploymentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SelectiveDeploymentSpec ¶
type SelectiveDeploymentSpec struct { // Workload can be Deployment, Deamonset, StatefulSet, Job, or CronJob. Workloads Workloads `json:"workloads"` // List of Selector resources. Each selector filters the nodes with the // requested method. Selector []Selector `json:"selector"` // If true, selective deployment tries to find another suitable // node to run the workload in case of a node goes down. Recovery bool `json:"recovery"` }
SelectiveDeploymentSpec is the spec for a SelectiveDeployment resource. Selectors filter the nodes to be used for specified workloads.
func (*SelectiveDeploymentSpec) DeepCopy ¶
func (in *SelectiveDeploymentSpec) DeepCopy() *SelectiveDeploymentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelectiveDeploymentSpec.
func (*SelectiveDeploymentSpec) DeepCopyInto ¶
func (in *SelectiveDeploymentSpec) DeepCopyInto(out *SelectiveDeploymentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SelectiveDeploymentStatus ¶
type SelectiveDeploymentStatus struct { // Ready string denotes number of workloads running filtered by the SelectiveDeployments. // The string is 'x/y' if x instances are running and y instances are requested. Ready string `json:"ready"` // Represents state of the selective deployment. This can be 'Failure' if none // of the workloads are deployed. 'Partial' if some of the the workloads // are deployed. 'Success' if all of the workloads are deployed. State string `json:"state"` // There can be multiple display messages for state description. Message string `json:"message"` }
SelectiveDeploymentStatus is the status for a SelectiveDeployment resource
func (*SelectiveDeploymentStatus) DeepCopy ¶
func (in *SelectiveDeploymentStatus) DeepCopy() *SelectiveDeploymentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelectiveDeploymentStatus.
func (*SelectiveDeploymentStatus) DeepCopyInto ¶
func (in *SelectiveDeploymentStatus) DeepCopyInto(out *SelectiveDeploymentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Selector ¶
type Selector struct { // Name of the selector. This can be City, State, Country, Continent, or Polygon Name string `json:"name"` // Value of the selector. For example; if the name of the selector is 'City' // then the value can be the city name. For example; if the name of // the selector is 'Polygon' then the value can be the GeoJSON representation of the polygon. Value []string `json:"value"` // Operator means basic mathematical operators such as 'In', 'NotIn', 'Exists', 'NotExsists' etc... Operator corev1.NodeSelectorOperator `json:"operator"` // Quantity represents number of nodes on which the workloads will be running. Quantity int `json:"quantity"` }
Selector to define desired node filtering parameters
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 Workloads ¶
type Workloads struct { // Workload can have a list of Deployments. Deployment []appsv1.Deployment `json:"deployment"` // Workload can have a list of DaemonSets. DaemonSet []appsv1.DaemonSet `json:"daemonset"` // Workload can have a list of StatefulSets. StatefulSet []appsv1.StatefulSet `json:"statefulset"` // Workload can have a list of Jobs. Job []batchv1.Job `json:"job"` // Workload can have a list of CronJobs. CronJob []batchv1beta.CronJob `json:"cronjob"` }
Workloads indicates deployments, daemonsets, statefulsets, jobs, or cronjobs.
func (*Workloads) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workloads.
func (*Workloads) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.