Documentation ¶
Index ¶
Constants ¶
const ( // kubeshare constants ResourceNVIDIAGPU = "nvidia.com/gpu" )
Variables ¶
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: "faasshare.tum", Version: "v1"}
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Scheded ¶
func (*Scheded) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scheded.
func (*Scheded) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SharePod ¶
type SharePod struct { metav1.ObjectMeta `json:"metadata,omitempty"` Status SharePodStatus `json:"status,omitempty"` Spec SharePodSpec `json:"spec,omitempty"` }
func (*SharePod) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharePod.
func (*SharePod) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SharePod) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SharePodList ¶
TestTypeList is a top-level list type. The client methods for lists are automatically created. You are not supposed to create a separated client for this one.
func (*SharePodList) DeepCopy ¶
func (in *SharePodList) DeepCopy() *SharePodList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharePodList.
func (*SharePodList) DeepCopyInto ¶
func (in *SharePodList) DeepCopyInto(out *SharePodList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SharePodList) DeepCopyObject ¶
func (in *SharePodList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SharePodSpec ¶
type SharePodSpec struct { corev1.PodSpec `json:"podSpec,omitempty"` // This is a pointer to distinguish between explicit zero and unspecified. // Defaults to 1. // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller // +optional Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` // Label keys and values that must match in order to be controlled by this replica set. // It must match the pod template's labels. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors Selector *metav1.LabelSelector `json:"selector" protobuf:"bytes,2,opt,name=selector"` }PodSpec
func (*SharePodSpec) DeepCopy ¶
func (in *SharePodSpec) DeepCopy() *SharePodSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharePodSpec.
func (*SharePodSpec) DeepCopyInto ¶
func (in *SharePodSpec) DeepCopyInto(out *SharePodSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SharePodStatus ¶
type SharePodStatus struct { corev1.Pod `json:"prewarmPool,omitempty"` //list[*corev1.Pod] // +optional ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,4,opt,name=readyReplicas"` // +optional AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,5,opt,name=availableReplicas"` // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=replicas"` // +optional BoundDeviceIDs *map[string]string `json:"boundDeviceIDs,omitempty"` PodManagerPort *map[string]int `json:"podManagerPort,omitempty"` // +optional Usage *map[string]SharepodUsage `json:"usage,omitempty"` Pod2Node *map[string]string `json:"pod2node,omitempty"` Node2Id []Scheded `json:"node2Id,omitempty"` }PrewarmPool []*
func (*SharePodStatus) DeepCopy ¶
func (in *SharePodStatus) DeepCopy() *SharePodStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharePodStatus.
func (*SharePodStatus) DeepCopyInto ¶
func (in *SharePodStatus) DeepCopyInto(out *SharePodStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SharepodUsage ¶
type SharepodUsage struct {}
func (*SharepodUsage) DeepCopy ¶
func (in *SharepodUsage) DeepCopy() *SharepodUsage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SharepodUsage.
func (*SharepodUsage) DeepCopyInto ¶
func (in *SharepodUsage) DeepCopyInto(out *SharepodUsage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.