Documentation
¶
Index ¶
- Constants
- Variables
- func AddToScheme(s *runtime.Scheme) error
- type Module
- type ModuleList
- type ModuleSpec
- type ModuleStatus
- type Node
- type NodeHealthCheckStatusSpec
- type NodeList
- type NodePropertiesStatusSpec
- type NodeSpec
- type NodeStatus
- type Service
- type ServiceList
- type ServiceSpec
- type ServiceStatus
Constants ¶
const GroupName = "core.automium.io"
const GroupVersion = "v1beta1"
Variables ¶
var AddToSchemes runtime.SchemeBuilder
AddToSchemes may be used to add all resources defined in the project to a Scheme
Functions ¶
func AddToScheme ¶
AddToScheme adds all Resources to the Scheme
Types ¶
type Module ¶
type Module struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ModuleSpec `json:"spec,omitempty"` Status ModuleStatus `json:"status,omitempty"` }
Module is the Schema for the modules API +k8s:openapi-gen=true +kubebuilder:printcolumn:name="Service",type="string",JSONPath=".metadata.ownerReferences[0].name",description="the parent service.core.automium.io" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase",description="the execution phase" +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.updatedReplicas",description="Ready node replicas" +kubebuilder:printcolumn:name="Requested",type="string",JSONPath=".status.replicas",description="Requested node replicas" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status
func (*Module) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Module.
func (*Module) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Module) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ModuleList ¶
type ModuleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Module `json:"items"` }
ModuleList contains a list of Module
func (*ModuleList) DeepCopy ¶
func (in *ModuleList) DeepCopy() *ModuleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModuleList.
func (*ModuleList) DeepCopyInto ¶
func (in *ModuleList) DeepCopyInto(out *ModuleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ModuleList) DeepCopyObject ¶
func (in *ModuleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ModuleSpec ¶
type ModuleSpec struct { Source string `json:"source"` Image string `json:"image"` Replicas int `json:"replicas"` Flavor string `json:"flavor"` Env []corev1.EnvVar `json:"env,omitempty"` }
ModuleSpec defines the desired state of Module
func (*ModuleSpec) DeepCopy ¶
func (in *ModuleSpec) DeepCopy() *ModuleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModuleSpec.
func (*ModuleSpec) DeepCopyInto ¶
func (in *ModuleSpec) DeepCopyInto(out *ModuleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ModuleStatus ¶
type ModuleStatus struct { Phase string `json:"phase"` Replicas int `json:"replicas"` CurrentReplicas int `json:"currentReplicas"` UpdatedReplicas int `json:"updatedReplicas"` }
ModuleStatus defines the observed state of Module
func (*ModuleStatus) DeepCopy ¶
func (in *ModuleStatus) DeepCopy() *ModuleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModuleStatus.
func (*ModuleStatus) DeepCopyInto ¶
func (in *ModuleStatus) DeepCopyInto(out *ModuleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Node ¶
type Node struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NodeSpec `json:"spec,omitempty"` Status NodeStatus `json:"status,omitempty"` }
Node is the Schema for the nodes API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Hostname",type="string",JSONPath=".spec.hostname",description="the node hostname" +kubebuilder:printcolumn:name="Internal-IP",type="string",JSONPath=".status.nodeProperties.address",description="the node private IP" +kubebuilder:printcolumn:name="External-IP",type="string",JSONPath=".status.nodeProperties.publicAddress",description="the node public IP" +kubebuilder:printcolumn:name="Image",type="string",JSONPath=".status.nodeProperties.image",description="the image deployed on node" +kubebuilder:printcolumn:name="Flavor",type="string",JSONPath=".status.nodeProperties.flavor",description="the flavor deployed on node" +kubebuilder:printcolumn:name="Service",type="string",JSONPath=".metadata.annotations['service\.automium\.io/name']",description="Service which the node belongs to" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*Node) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node.
func (*Node) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Node) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeHealthCheckStatusSpec ¶
type NodeHealthCheckStatusSpec struct { CheckID string `json:"checkID"` Name string `json:"name"` Status string `json:"status"` Output string `json:"output"` ServiceID string `json:"serviceID"` ServiceName string `json:"serviceName"` }
NodeHealthCheckStatusSpec contains the healthchecks for the node obtained from Consul
func (*NodeHealthCheckStatusSpec) DeepCopy ¶
func (in *NodeHealthCheckStatusSpec) DeepCopy() *NodeHealthCheckStatusSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeHealthCheckStatusSpec.
func (*NodeHealthCheckStatusSpec) DeepCopyInto ¶
func (in *NodeHealthCheckStatusSpec) DeepCopyInto(out *NodeHealthCheckStatusSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeList ¶
type NodeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Node `json:"items"` }
NodeList contains a list of Node
func (*NodeList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeList.
func (*NodeList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodePropertiesStatusSpec ¶
type NodePropertiesStatusSpec struct { ID string `json:"id"` Node string `json:"node"` Address string `json:"address"` PublicAddress string `json:"publicAddress"` Flavor string `json:"flavor"` Image string `json:"image"` }
NodePropertiesStatusSpec contains the basic data of node obtained from Consul
func (*NodePropertiesStatusSpec) DeepCopy ¶
func (in *NodePropertiesStatusSpec) DeepCopy() *NodePropertiesStatusSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePropertiesStatusSpec.
func (*NodePropertiesStatusSpec) DeepCopyInto ¶
func (in *NodePropertiesStatusSpec) DeepCopyInto(out *NodePropertiesStatusSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeSpec ¶
type NodeSpec struct { Hostname string `json:"hostname"` DeletionDate string `json:"deletionDate"` }
NodeSpec defines the desired state of Node
func (*NodeSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSpec.
func (*NodeSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeStatus ¶
type NodeStatus struct { NodeProperties NodePropertiesStatusSpec `json:"nodeProperties,omitempty"` NodeHealthChecks []NodeHealthCheckStatusSpec `json:"nodeHealthChecks,omitempty"` }
NodeStatus defines the observed state of Node
func (*NodeStatus) DeepCopy ¶
func (in *NodeStatus) DeepCopy() *NodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeStatus.
func (*NodeStatus) DeepCopyInto ¶
func (in *NodeStatus) DeepCopyInto(out *NodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Service ¶
type Service struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ServiceSpec `json:"spec,omitempty"` Status ServiceStatus `json:"status,omitempty"` }
Service is the Schema for the services API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:subresource:scale:specpath=.spec.replicas,statuspath=.status.replicas +kubebuilder:printcolumn:name="Application",type="string",JSONPath=".metadata.labels['app']",description="The desired application" +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version",description="The application version" +kubebuilder:printcolumn:name="Replicas",type="string",JSONPath=".spec.replicas",description="The application replicas" +kubebuilder:printcolumn:name="Flavor",type="string",JSONPath=".spec.flavor",description="The instance flavor" +kubebuilder:printcolumn:name="Module",type="string",JSONPath=".status.moduleRef",description="module.core.automium.io reference" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase",description="The execution phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*Service) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Service) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceList ¶
type ServiceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Service `json:"items"` }
ServiceList contains a list of Service
func (*ServiceList) DeepCopy ¶
func (in *ServiceList) DeepCopy() *ServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceList.
func (*ServiceList) DeepCopyInto ¶
func (in *ServiceList) DeepCopyInto(out *ServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceList) DeepCopyObject ¶
func (in *ServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceSpec ¶
type ServiceSpec struct { // +kubebuilder:validation:Minimum=0 Replicas int `json:"replicas"` Flavor string `json:"flavor"` Version string `json:"version"` Tags []string `json:"tags,omitempty"` Env []corev1.EnvVar `json:"env,omitempty"` }
ServiceSpec defines the desired state of Service
func (*ServiceSpec) DeepCopy ¶
func (in *ServiceSpec) DeepCopy() *ServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSpec.
func (*ServiceSpec) DeepCopyInto ¶
func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceStatus ¶
ServiceStatus defines the observed state of Service
func (*ServiceStatus) DeepCopy ¶
func (in *ServiceStatus) DeepCopy() *ServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceStatus.
func (*ServiceStatus) DeepCopyInto ¶
func (in *ServiceStatus) DeepCopyInto(out *ServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.