v1alpha1

package
v0.18.6 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Overview

+k8s:deepcopy-gen=package,register +k8s:openapi-gen=true +k8s:defaulter-gen=TypeMeta +groupName=node.k8s.appscode.com

Index

Constants

View Source
const (
	ResourceKindNodeTopology = "NodeTopology"
	ResourceNodeTopology     = "nodetopology"
	ResourceNodeTopologies   = "nodetopologies"
)

Variables

View Source
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
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: node.GroupName, Version: "v1alpha1"}

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type NodeGroup

type NodeGroup struct {
	TopologyValue string `json:"topologyValue"`
	// Allocatable represents the total resources of a node.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
	Allocatable core.ResourceList `json:"allocatable"`
}

func (*NodeGroup) DeepCopy

func (in *NodeGroup) DeepCopy() *NodeGroup

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

func (*NodeGroup) DeepCopyInto

func (in *NodeGroup) DeepCopyInto(out *NodeGroup)

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

type NodeSelectionPolicy

type NodeSelectionPolicy string

+kubebuilder:validation:Enum=LabelSelector;Taint

const (
	NodeSelectionPolicyLabelSelector NodeSelectionPolicy = "LabelSelector"
	NodeSelectionPolicyTaint         NodeSelectionPolicy = "Taint"
)

type NodeTopology

type NodeTopology struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              NodeTopologySpec `json:"spec,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=nodetopologies,singular=nodetopology,scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (NodeTopology) CustomResourceDefinition

func (v NodeTopology) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*NodeTopology) DeepCopy

func (in *NodeTopology) DeepCopy() *NodeTopology

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

func (*NodeTopology) DeepCopyInto

func (in *NodeTopology) DeepCopyInto(out *NodeTopology)

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

func (*NodeTopology) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NodeTopologyList

type NodeTopologyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NodeTopology `json:"items,omitempty"`
}

func (*NodeTopologyList) DeepCopy

func (in *NodeTopologyList) DeepCopy() *NodeTopologyList

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

func (*NodeTopologyList) DeepCopyInto

func (in *NodeTopologyList) DeepCopyInto(out *NodeTopologyList)

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

func (*NodeTopologyList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NodeTopologySpec

type NodeTopologySpec struct {
	NodeSelectionPolicy NodeSelectionPolicy `json:"nodeSelectionPolicy"`
	TopologyKey         string              `json:"topologyKey"`
	NodeGroups          []NodeGroup         `json:"nodeGroups,omitempty"`
}

func (*NodeTopologySpec) DeepCopy

func (in *NodeTopologySpec) DeepCopy() *NodeTopologySpec

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

func (*NodeTopologySpec) DeepCopyInto

func (in *NodeTopologySpec) DeepCopyInto(out *NodeTopologySpec)

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