GroupName is the group name use in this package
const GroupName = "node.k8s.io"
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") )
var ( // SchemeBuilder is the scheme builder with scheme init functions to run for this API package SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme AddToScheme = SchemeBuilder.AddToScheme )
SchemeGroupVersion is group version used to register these objects
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Overhead structure represents the resource overhead associated with running a pod.
type Overhead struct { // podFixed represents the fixed resource overhead associated with running a pod. // +optional PodFixed corev1.ResourceList `json:"podFixed,omitempty" protobuf:"bytes,1,opt,name=podFixed,casttype=k8s.io/api/core/v1.ResourceList,castkey=k8s.io/api/core/v1.ResourceName,castvalue=k8s.io/apimachinery/pkg/api/resource.Quantity"` }
func (in *Overhead) DeepCopy() *Overhead
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Overhead.
func (in *Overhead) DeepCopyInto(out *Overhead)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Overhead) Descriptor() ([]byte, []int)
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 (Overhead) SwaggerDoc() map[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
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/585-runtime-class
type RuntimeClass struct { metav1.TypeMeta `json:",inline"` // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // 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 be lowercase, conform to the DNS Label (RFC 1123) requirements, // and is immutable. Handler string `json:"handler" protobuf:"bytes,2,opt,name=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/688-pod-overhead/README.md // +optional Overhead *Overhead `json:"overhead,omitempty" protobuf:"bytes,3,opt,name=overhead"` // 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 `json:"scheduling,omitempty" protobuf:"bytes,4,opt,name=scheduling"` }
func (in *RuntimeClass) APILifecycleDeprecated() (major, minor int)
APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
func (in *RuntimeClass) APILifecycleIntroduced() (major, minor int)
APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
func (in *RuntimeClass) APILifecycleRemoved() (major, minor int)
APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
func (in *RuntimeClass) DeepCopy() *RuntimeClass
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClass.
func (in *RuntimeClass) DeepCopyInto(out *RuntimeClass)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *RuntimeClass) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RuntimeClass) Descriptor() ([]byte, []int)
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 (RuntimeClass) SwaggerDoc() map[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
RuntimeClassList is a list of RuntimeClass objects.
type RuntimeClassList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // items is a list of schema objects. Items []RuntimeClass `json:"items" protobuf:"bytes,2,rep,name=items"` }
func (in *RuntimeClassList) APILifecycleDeprecated() (major, minor int)
APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.
func (in *RuntimeClassList) APILifecycleIntroduced() (major, minor int)
APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
func (in *RuntimeClassList) APILifecycleRemoved() (major, minor int)
APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.
func (in *RuntimeClassList) DeepCopy() *RuntimeClassList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClassList.
func (in *RuntimeClassList) DeepCopyInto(out *RuntimeClassList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *RuntimeClassList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RuntimeClassList) Descriptor() ([]byte, []int)
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 (RuntimeClassList) SwaggerDoc() map[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
Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
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 // +mapType=atomic NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,1,opt,name=nodeSelector"` // 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 []corev1.Toleration `json:"tolerations,omitempty" protobuf:"bytes,2,rep,name=tolerations"` }
func (in *Scheduling) DeepCopy() *Scheduling
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scheduling.
func (in *Scheduling) DeepCopyInto(out *Scheduling)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Scheduling) Descriptor() ([]byte, []int)
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 (Scheduling) SwaggerDoc() map[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