Documentation ¶
Index ¶
- Variables
- type Overhead
- func (*Overhead) Descriptor() ([]byte, []int)
- func (this *Overhead) Equal(that interface{}) bool
- func (m *Overhead) GetPodFixed() map[string]*resource.Quantity
- func (this *Overhead) GoString() string
- func (m *Overhead) Marshal() (dAtA []byte, err error)
- func (m *Overhead) MarshalTo(dAtA []byte) (int, error)
- func (m *Overhead) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Overhead) ProtoMessage()
- func (m *Overhead) Reset()
- func (m *Overhead) Size() (n int)
- func (this *Overhead) String() string
- func (m *Overhead) Unmarshal(dAtA []byte) error
- func (m *Overhead) XXX_DiscardUnknown()
- func (m *Overhead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Overhead) XXX_Merge(src proto.Message)
- func (m *Overhead) XXX_Size() int
- func (m *Overhead) XXX_Unmarshal(b []byte) error
- type RuntimeClass
- func (*RuntimeClass) Descriptor() ([]byte, []int)
- func (this *RuntimeClass) Equal(that interface{}) bool
- func (m *RuntimeClass) GetHandler() string
- func (m *RuntimeClass) GetMetadata() *v1.ObjectMeta
- func (m *RuntimeClass) GetOverhead() *Overhead
- func (m *RuntimeClass) GetScheduling() *Scheduling
- func (this *RuntimeClass) GoString() string
- func (m *RuntimeClass) Marshal() (dAtA []byte, err error)
- func (m *RuntimeClass) MarshalTo(dAtA []byte) (int, error)
- func (m *RuntimeClass) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RuntimeClass) ProtoMessage()
- func (m *RuntimeClass) Reset()
- func (m *RuntimeClass) Size() (n int)
- func (this *RuntimeClass) String() string
- func (m *RuntimeClass) Unmarshal(dAtA []byte) error
- func (m *RuntimeClass) XXX_DiscardUnknown()
- func (m *RuntimeClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RuntimeClass) XXX_Merge(src proto.Message)
- func (m *RuntimeClass) XXX_Size() int
- func (m *RuntimeClass) XXX_Unmarshal(b []byte) error
- type RuntimeClassList
- func (*RuntimeClassList) Descriptor() ([]byte, []int)
- func (this *RuntimeClassList) Equal(that interface{}) bool
- func (m *RuntimeClassList) GetItems() []*RuntimeClass
- func (m *RuntimeClassList) GetMetadata() *v1.ListMeta
- func (this *RuntimeClassList) GoString() string
- func (m *RuntimeClassList) Marshal() (dAtA []byte, err error)
- func (m *RuntimeClassList) MarshalTo(dAtA []byte) (int, error)
- func (m *RuntimeClassList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RuntimeClassList) ProtoMessage()
- func (m *RuntimeClassList) Reset()
- func (m *RuntimeClassList) Size() (n int)
- func (this *RuntimeClassList) String() string
- func (m *RuntimeClassList) Unmarshal(dAtA []byte) error
- func (m *RuntimeClassList) XXX_DiscardUnknown()
- func (m *RuntimeClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RuntimeClassList) XXX_Merge(src proto.Message)
- func (m *RuntimeClassList) XXX_Size() int
- func (m *RuntimeClassList) XXX_Unmarshal(b []byte) error
- type Scheduling
- func (*Scheduling) Descriptor() ([]byte, []int)
- func (this *Scheduling) Equal(that interface{}) bool
- func (m *Scheduling) GetNodeSelector() map[string]string
- func (m *Scheduling) GetTolerations() []*v11.Toleration
- func (this *Scheduling) GoString() string
- func (m *Scheduling) Marshal() (dAtA []byte, err error)
- func (m *Scheduling) MarshalTo(dAtA []byte) (int, error)
- func (m *Scheduling) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Scheduling) ProtoMessage()
- func (m *Scheduling) Reset()
- func (m *Scheduling) Size() (n int)
- func (this *Scheduling) String() string
- func (m *Scheduling) Unmarshal(dAtA []byte) error
- func (m *Scheduling) XXX_DiscardUnknown()
- func (m *Scheduling) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Scheduling) XXX_Merge(src proto.Message)
- func (m *Scheduling) XXX_Size() int
- func (m *Scheduling) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Overhead ¶
type Overhead struct { // PodFixed represents the fixed resource overhead associated with running a pod. // +optional PodFixed map[string]*resource.Quantity `` /* 136-byte string literal not displayed */ }
Overhead structure represents the resource overhead associated with running a pod.
func (*Overhead) Descriptor ¶
func (*Overhead) MarshalToSizedBuffer ¶
func (*Overhead) ProtoMessage ¶
func (*Overhead) ProtoMessage()
func (*Overhead) XXX_DiscardUnknown ¶
func (m *Overhead) XXX_DiscardUnknown()
func (*Overhead) XXX_Marshal ¶
func (*Overhead) XXX_Unmarshal ¶
type RuntimeClass ¶
type RuntimeClass struct { // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Handler specifies the underlying runtime and configuration that the CRI // implementation will use to handle pods of this class. The possible values // are specific to the node & CRI configuration. It is assumed that all // handlers are available on every node, and handlers of the same name are // equivalent on every node. // For example, a handler called "runc" might specify that the runc OCI // runtime (using native Linux containers) will be used to run the containers // in a pod. // The Handler must conform to the DNS Label (RFC 1123) requirements, and is // immutable. Handler string `protobuf:"bytes,2,opt,name=handler" json:"handler"` // Overhead represents the resource overhead associated with running a pod for a // given RuntimeClass. For more details, see // https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md // This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. // +optional Overhead *Overhead `protobuf:"bytes,3,opt,name=overhead" json:"overhead,omitempty"` // Scheduling holds the scheduling constraints to ensure that pods running // with this RuntimeClass are scheduled to nodes that support it. // If scheduling is nil, this RuntimeClass is assumed to be supported by all // nodes. // +optional Scheduling *Scheduling `protobuf:"bytes,4,opt,name=scheduling" json:"scheduling,omitempty"` }
RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md
func (*RuntimeClass) Descriptor ¶
func (*RuntimeClass) Descriptor() ([]byte, []int)
func (*RuntimeClass) Equal ¶
func (this *RuntimeClass) Equal(that interface{}) bool
func (*RuntimeClass) GetHandler ¶
func (m *RuntimeClass) GetHandler() string
func (*RuntimeClass) GetMetadata ¶
func (m *RuntimeClass) GetMetadata() *v1.ObjectMeta
func (*RuntimeClass) GetOverhead ¶
func (m *RuntimeClass) GetOverhead() *Overhead
func (*RuntimeClass) GetScheduling ¶
func (m *RuntimeClass) GetScheduling() *Scheduling
func (*RuntimeClass) GoString ¶
func (this *RuntimeClass) GoString() string
func (*RuntimeClass) Marshal ¶
func (m *RuntimeClass) Marshal() (dAtA []byte, err error)
func (*RuntimeClass) MarshalToSizedBuffer ¶
func (m *RuntimeClass) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RuntimeClass) ProtoMessage ¶
func (*RuntimeClass) ProtoMessage()
func (*RuntimeClass) Reset ¶
func (m *RuntimeClass) Reset()
func (*RuntimeClass) Size ¶
func (m *RuntimeClass) Size() (n int)
func (*RuntimeClass) String ¶
func (this *RuntimeClass) String() string
func (*RuntimeClass) Unmarshal ¶
func (m *RuntimeClass) Unmarshal(dAtA []byte) error
func (*RuntimeClass) XXX_DiscardUnknown ¶
func (m *RuntimeClass) XXX_DiscardUnknown()
func (*RuntimeClass) XXX_Marshal ¶
func (m *RuntimeClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RuntimeClass) XXX_Merge ¶
func (m *RuntimeClass) XXX_Merge(src proto.Message)
func (*RuntimeClass) XXX_Size ¶
func (m *RuntimeClass) XXX_Size() int
func (*RuntimeClass) XXX_Unmarshal ¶
func (m *RuntimeClass) XXX_Unmarshal(b []byte) error
type RuntimeClassList ¶
type RuntimeClassList struct { // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional Metadata *v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Items is a list of schema objects. Items []*RuntimeClass `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` }
RuntimeClassList is a list of RuntimeClass objects.
func (*RuntimeClassList) Descriptor ¶
func (*RuntimeClassList) Descriptor() ([]byte, []int)
func (*RuntimeClassList) Equal ¶
func (this *RuntimeClassList) Equal(that interface{}) bool
func (*RuntimeClassList) GetItems ¶
func (m *RuntimeClassList) GetItems() []*RuntimeClass
func (*RuntimeClassList) GetMetadata ¶
func (m *RuntimeClassList) GetMetadata() *v1.ListMeta
func (*RuntimeClassList) GoString ¶
func (this *RuntimeClassList) GoString() string
func (*RuntimeClassList) Marshal ¶
func (m *RuntimeClassList) Marshal() (dAtA []byte, err error)
func (*RuntimeClassList) MarshalToSizedBuffer ¶
func (m *RuntimeClassList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RuntimeClassList) ProtoMessage ¶
func (*RuntimeClassList) ProtoMessage()
func (*RuntimeClassList) Reset ¶
func (m *RuntimeClassList) Reset()
func (*RuntimeClassList) Size ¶
func (m *RuntimeClassList) Size() (n int)
func (*RuntimeClassList) String ¶
func (this *RuntimeClassList) String() string
func (*RuntimeClassList) Unmarshal ¶
func (m *RuntimeClassList) Unmarshal(dAtA []byte) error
func (*RuntimeClassList) XXX_DiscardUnknown ¶
func (m *RuntimeClassList) XXX_DiscardUnknown()
func (*RuntimeClassList) XXX_Marshal ¶
func (m *RuntimeClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RuntimeClassList) XXX_Merge ¶
func (m *RuntimeClassList) XXX_Merge(src proto.Message)
func (*RuntimeClassList) XXX_Size ¶
func (m *RuntimeClassList) XXX_Size() int
func (*RuntimeClassList) XXX_Unmarshal ¶
func (m *RuntimeClassList) XXX_Unmarshal(b []byte) error
type Scheduling ¶
type Scheduling struct { // nodeSelector lists labels that must be present on nodes that support this // RuntimeClass. Pods using this RuntimeClass can only be scheduled to a // node matched by this selector. The RuntimeClass nodeSelector is merged // with a pod's existing nodeSelector. Any conflicts will cause the pod to // be rejected in admission. // +optional NodeSelector map[string]string `` /* 144-byte string literal not displayed */ // tolerations are appended (excluding duplicates) to pods running with this // RuntimeClass during admission, effectively unioning the set of nodes // tolerated by the pod and the RuntimeClass. // +optional // +listType=atomic Tolerations []*v11.Toleration `protobuf:"bytes,2,rep,name=tolerations" json:"tolerations,omitempty"` }
Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
func (*Scheduling) Descriptor ¶
func (*Scheduling) Descriptor() ([]byte, []int)
func (*Scheduling) Equal ¶
func (this *Scheduling) Equal(that interface{}) bool
func (*Scheduling) GetNodeSelector ¶
func (m *Scheduling) GetNodeSelector() map[string]string
func (*Scheduling) GetTolerations ¶
func (m *Scheduling) GetTolerations() []*v11.Toleration
func (*Scheduling) GoString ¶
func (this *Scheduling) GoString() string
func (*Scheduling) Marshal ¶
func (m *Scheduling) Marshal() (dAtA []byte, err error)
func (*Scheduling) MarshalToSizedBuffer ¶
func (m *Scheduling) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Scheduling) ProtoMessage ¶
func (*Scheduling) ProtoMessage()
func (*Scheduling) Reset ¶
func (m *Scheduling) Reset()
func (*Scheduling) Size ¶
func (m *Scheduling) Size() (n int)
func (*Scheduling) String ¶
func (this *Scheduling) String() string
func (*Scheduling) Unmarshal ¶
func (m *Scheduling) Unmarshal(dAtA []byte) error
func (*Scheduling) XXX_DiscardUnknown ¶
func (m *Scheduling) XXX_DiscardUnknown()
func (*Scheduling) XXX_Marshal ¶
func (m *Scheduling) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Scheduling) XXX_Merge ¶
func (m *Scheduling) XXX_Merge(src proto.Message)
func (*Scheduling) XXX_Size ¶
func (m *Scheduling) XXX_Size() int
func (*Scheduling) XXX_Unmarshal ¶
func (m *Scheduling) XXX_Unmarshal(b []byte) error