v1

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

+kubebuilder:validation:Optional

Index

Constants

View Source
const (
	TaskInitializedConditionType = "Initialized"
	TaskStartedConditionType     = "Started"
	TaskSucceededConditionType   = "Succeeded"
	TaskFailedConditionType      = "Failed"
)

Variables

View Source
var (
	AddToScheme = schemeBuilder.AddToScheme
)

create a SchemeBuilder which uses functions to add types to the scheme

View Source
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

func (in *LRP) DeepCopy() *LRP

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LRP.

func (*LRP) DeepCopyInto

func (in *LRP) DeepCopyInto(out *LRP)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LRP) DeepCopyObject

func (in *LRP) DeepCopyObject() runtime.Object

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

func (in *LRPList) DeepCopy() *LRPList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LRPList.

func (*LRPList) DeepCopyInto

func (in *LRPList) DeepCopyInto(out *LRPList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LRPList) DeepCopyObject

func (in *LRPList) DeepCopyObject() runtime.Object

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

func (in *LRPSpec) DeepCopy() *LRPSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LRPSpec.

func (*LRPSpec) DeepCopyInto

func (in *LRPSpec) DeepCopyInto(out *LRPSpec)

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

func (in *LRPStatus) DeepCopy() *LRPStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LRPStatus.

func (*LRPStatus) DeepCopyInto

func (in *LRPStatus) DeepCopyInto(out *LRPStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PrivateRegistry

type PrivateRegistry struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

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

type Route struct {
	Hostname string `json:"hostname"`
	Port     int32  `json:"port"`
}

func (*Route) DeepCopy

func (in *Route) DeepCopy() *Route

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route.

func (*Route) DeepCopyInto

func (in *Route) DeepCopyInto(out *Route)

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

func (in *Sidecar) DeepCopy() *Sidecar

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sidecar.

func (*Sidecar) DeepCopyInto

func (in *Sidecar) DeepCopyInto(out *Sidecar)

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

func (in *Task) DeepCopy() *Task

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Task.

func (*Task) DeepCopyInto

func (in *Task) DeepCopyInto(out *Task)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Task) DeepCopyObject

func (in *Task) DeepCopyObject() runtime.Object

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

func (in *TaskList) DeepCopy() *TaskList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskList.

func (*TaskList) DeepCopyInto

func (in *TaskList) DeepCopyInto(out *TaskList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TaskList) DeepCopyObject

func (in *TaskList) DeepCopyObject() runtime.Object

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

func (in *TaskSpec) DeepCopy() *TaskSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskSpec.

func (*TaskSpec) DeepCopyInto

func (in *TaskSpec) DeepCopyInto(out *TaskSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskStatus

type TaskStatus struct {
	Conditions []metav1.Condition `json:"conditions"`
}

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

type VolumeMount struct {
	MountPath string `json:"mountPath"`
	ClaimName string `json:"claimName"`
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL