Documentation ¶
Overview ¶
+kubebuilder:validation:Optional
Index ¶
Constants ¶
const ( TaskInitializedConditionType = "Initialized" TaskStartedConditionType = "Started" TaskSucceededConditionType = "Succeeded" TaskFailedConditionType = "Failed" )
Variables ¶
var (
AddToScheme = schemeBuilder.AddToScheme
)
create a SchemeBuilder which uses functions to add types to the scheme
var SchemeGroupVersion = schema.GroupVersion{ Group: eirini.GroupName, Version: "v1", }
GroupVersion is the identifier for the API which includes the name of the group and the version of the API
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Types ¶
type Healthcheck ¶
type Healthcheck struct { Type string `json:"type"` Port int32 `json:"port"` Endpoint string `json:"endpoint"` // +kubebuilder:validation:Format:=uint8 TimeoutMs uint `json:"timeoutMs"` }
func (*Healthcheck) DeepCopy ¶
func (in *Healthcheck) DeepCopy() *Healthcheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Healthcheck.
func (*Healthcheck) DeepCopyInto ¶
func (in *Healthcheck) DeepCopyInto(out *Healthcheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LRP ¶
type LRP struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ObjectMeta `json:"metadata,omitempty"` Spec LRPSpec `json:"spec"` Status LRPStatus `json:"status"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:shortName=lrp +kubebuilder:subresource:status +kubebuilder:printcolumn:JSONPath=.spec.instances,type=integer,name=Replicas +kubebuilder:printcolumn:JSONPath=.status.replicas,type=integer,name=Ready +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*LRP) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LRP.
func (*LRP) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LRP) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LRPList ¶
type LRPList struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ListMeta `json:"metadata"` Items []LRP `json:"items"` }
func (*LRPList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LRPList.
func (*LRPList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LRPList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LRPSpec ¶
type LRPSpec struct { // +kubebuilder:validation:Required GUID string `json:"GUID"` Version string `json:"version"` ProcessType string `json:"processType"` AppName string `json:"appName"` AppGUID string `json:"appGUID"` OrgName string `json:"orgName"` OrgGUID string `json:"orgGUID"` SpaceName string `json:"spaceName"` SpaceGUID string `json:"spaceGUID"` // +kubebuilder:validation:Required Image string `json:"image"` Command []string `json:"command,omitempty"` Sidecars []Sidecar `json:"sidecars,omitempty"` PrivateRegistry *PrivateRegistry `json:"privateRegistry,omitempty"` // deprecated: Env is deprecated. Use Environment instead Env map[string]string `json:"env,omitempty"` Environment []corev1.EnvVar `json:"environment,omitempty"` Health Healthcheck `json:"health"` Ports []int32 `json:"ports,omitempty"` // +kubebuilder:default:=1 Instances int `json:"instances"` MemoryMB int64 `json:"memoryMB"` // +kubebuilder:validation:Minimum:=1 // +kubebuilder:validation:Required DiskMB int64 `json:"diskMB"` // +kubebuilder:validation:Format:=uint8 CPUWeight uint8 `json:"cpuWeight"` VolumeMounts []VolumeMount `json:"volumeMounts,omitempty"` UserDefinedAnnotations map[string]string `json:"userDefinedAnnotations,omitempty"` }
func (*LRPSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LRPSpec.
func (*LRPSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LRPStatus ¶
type LRPStatus struct {
Replicas int32 `json:"replicas"`
}
func (*LRPStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LRPStatus.
func (*LRPStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrivateRegistry ¶
func (*PrivateRegistry) DeepCopy ¶
func (in *PrivateRegistry) DeepCopy() *PrivateRegistry
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateRegistry.
func (*PrivateRegistry) DeepCopyInto ¶
func (in *PrivateRegistry) DeepCopyInto(out *PrivateRegistry)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Route ¶
func (*Route) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route.
func (*Route) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Sidecar ¶
type Sidecar struct { // +kubebuilder:validation:Required Name string `json:"name"` // +kubebuilder:validation:Required Command []string `json:"command"` MemoryMB int64 `json:"memoryMB"` Env map[string]string `json:"env,omitempty"` }
func (*Sidecar) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sidecar.
func (*Sidecar) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Task ¶
type Task struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TaskSpec `json:"spec"` Status TaskStatus `json:"status"` }
Task describes a short-lived job running alongside an LRP
func (*Task) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Task.
func (*Task) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Task) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TaskList ¶
type TaskList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Task `json:"items"` }
func (*TaskList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskList.
func (*TaskList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TaskList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TaskSpec ¶
type TaskSpec struct { // +kubebuilder:validation:Required GUID string `json:"GUID"` Name string `json:"name"` // +kubebuilder:validation:Required Image string `json:"image"` ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` // deprecated: Env is deprecated. Use Environment instead Env map[string]string `json:"env,omitempty"` Environment []corev1.EnvVar `json:"environment,omitempty"` // +kubebuilder:validation:Required Command []string `json:"command,omitempty"` AppName string `json:"appName"` AppGUID string `json:"appGUID"` OrgName string `json:"orgName"` OrgGUID string `json:"orgGUID"` SpaceName string `json:"spaceName"` SpaceGUID string `json:"spaceGUID"` MemoryMB int64 `json:"memoryMB"` DiskMB int64 `json:"diskMB"` CPUMillis int64 `json:"cpuMillis"` }
func (*TaskSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskSpec.
func (*TaskSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TaskStatus ¶
func (*TaskStatus) DeepCopy ¶
func (in *TaskStatus) DeepCopy() *TaskStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskStatus.
func (*TaskStatus) DeepCopyInto ¶
func (in *TaskStatus) DeepCopyInto(out *TaskStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeMount ¶
func (*VolumeMount) DeepCopy ¶
func (in *VolumeMount) DeepCopy() *VolumeMount
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeMount.
func (*VolumeMount) DeepCopyInto ¶
func (in *VolumeMount) DeepCopyInto(out *VolumeMount)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.