Documentation ¶
Overview ¶
+groupName=tpu.google.kubeform.com
Index ¶
- Variables
- func GetDecoder() map[string]jsoniter.ValDecoder
- func GetEncoder() map[string]jsoniter.ValEncoder
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Node
- func (in *Node) DeepCopy() *Node
- func (in *Node) DeepCopyInto(out *Node)
- func (in *Node) DeepCopyObject() runtime.Object
- func (r *Node) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Node) ValidateCreate() error
- func (r *Node) ValidateDelete() error
- func (r *Node) ValidateUpdate(old runtime.Object) error
- type NodeList
- type NodeSpec
- type NodeSpecNetworkEndpoints
- type NodeSpecResource
- type NodeSpecSchedulingConfig
- type NodeSpecSchedulingConfigCodec
- type NodeStatus
Constants ¶
This section is empty.
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: tpu.GroupName, Version: "v1alpha1"}
Functions ¶
func GetDecoder ¶
func GetDecoder() map[string]jsoniter.ValDecoder
func GetEncoder ¶
func GetEncoder() map[string]jsoniter.ValEncoder
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Node ¶
type Node struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NodeSpec `json:"spec,omitempty"` Status NodeStatus `json:"status,omitempty"` }
func (*Node) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node.
func (*Node) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Node) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Node) SetupWebhookWithManager ¶
func (*Node) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Node) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type NodeList ¶
type NodeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Node CRD objects Items []Node `json:"items,omitempty"` }
NodeList is a list of Nodes
func (*NodeList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeList.
func (*NodeList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeSpec ¶
type NodeSpec struct { State *NodeSpecResource `json:"state,omitempty" tf:"-"` Resource NodeSpecResource `json:"resource" tf:"resource"` UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"` TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"` ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"` }
func (*NodeSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSpec.
func (*NodeSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeSpecNetworkEndpoints ¶
type NodeSpecNetworkEndpoints struct { // The IP address of this network endpoint. // +optional IpAddress *string `json:"ipAddress,omitempty" tf:"ip_address"` // The port of this network endpoint. // +optional Port *int64 `json:"port,omitempty" tf:"port"` }
func (*NodeSpecNetworkEndpoints) DeepCopy ¶
func (in *NodeSpecNetworkEndpoints) DeepCopy() *NodeSpecNetworkEndpoints
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSpecNetworkEndpoints.
func (*NodeSpecNetworkEndpoints) DeepCopyInto ¶
func (in *NodeSpecNetworkEndpoints) DeepCopyInto(out *NodeSpecNetworkEndpoints)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeSpecResource ¶
type NodeSpecResource struct { Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"` ID string `json:"id,omitempty" tf:"id,omitempty"` // The type of hardware accelerators associated with this node. AcceleratorType *string `json:"acceleratorType" tf:"accelerator_type"` // The CIDR block that the TPU node will use when selecting an IP // address. This CIDR block must be a /29 block; the Compute Engine // networks API forbids a smaller block, and using a larger block would // be wasteful (a node can only consume one IP address). // // Errors will occur if the CIDR block has already been used for a // currently existing TPU node, the CIDR block conflicts with any // subnetworks in the user's provided network, or the provided network // is peered with another network that is using that CIDR block. // +optional CidrBlock *string `json:"cidrBlock,omitempty" tf:"cidr_block"` // The user-supplied description of the TPU. Maximum of 512 characters. // +optional Description *string `json:"description,omitempty" tf:"description"` // Resource labels to represent user provided metadata. // +optional Labels *map[string]string `json:"labels,omitempty" tf:"labels"` // The immutable name of the TPU. Name *string `json:"name" tf:"name"` // The name of a network to peer the TPU node to. It must be a // preexisting Compute Engine network inside of the project on which // this API has been activated. If none is provided, "default" will be // used. // +optional Network *string `json:"network,omitempty" tf:"network"` // The network endpoints where TPU workers can be accessed and sent work. // It is recommended that Tensorflow clients of the node first reach out // to the first (index 0) entry. // +optional NetworkEndpoints []NodeSpecNetworkEndpoints `json:"networkEndpoints,omitempty" tf:"network_endpoints"` // +optional Project *string `json:"project,omitempty" tf:"project"` // Sets the scheduling options for this TPU instance. // +optional SchedulingConfig *NodeSpecSchedulingConfig `json:"schedulingConfig,omitempty" tf:"scheduling_config"` // The service account used to run the tensor flow services within the // node. To share resources, including Google Cloud Storage data, with // the Tensorflow job running in the Node, this account must have // permissions to that data. // +optional ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account"` // The version of Tensorflow running in the Node. TensorflowVersion *string `json:"tensorflowVersion" tf:"tensorflow_version"` // Whether the VPC peering for the node is set up through Service Networking API. // The VPC Peering should be set up before provisioning the node. If this field is set, // cidr_block field should not be specified. If the network that you want to peer the // TPU Node to is a Shared VPC network, the node must be created with this this field enabled. // +optional UseServiceNetworking *bool `json:"useServiceNetworking,omitempty" tf:"use_service_networking"` // The GCP location for the TPU. If it is not provided, the provider zone is used. // +optional Zone *string `json:"zone,omitempty" tf:"zone"` }
func (*NodeSpecResource) DeepCopy ¶
func (in *NodeSpecResource) DeepCopy() *NodeSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSpecResource.
func (*NodeSpecResource) DeepCopyInto ¶
func (in *NodeSpecResource) DeepCopyInto(out *NodeSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeSpecSchedulingConfig ¶
type NodeSpecSchedulingConfig struct { // Defines whether the TPU instance is preemptible. Preemptible *bool `json:"preemptible" tf:"preemptible"` }
func (*NodeSpecSchedulingConfig) DeepCopy ¶
func (in *NodeSpecSchedulingConfig) DeepCopy() *NodeSpecSchedulingConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSpecSchedulingConfig.
func (*NodeSpecSchedulingConfig) DeepCopyInto ¶
func (in *NodeSpecSchedulingConfig) DeepCopyInto(out *NodeSpecSchedulingConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeSpecSchedulingConfigCodec ¶
type NodeSpecSchedulingConfigCodec struct { }
+k8s:deepcopy-gen=false
func (NodeSpecSchedulingConfigCodec) Decode ¶
func (NodeSpecSchedulingConfigCodec) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)
type NodeStatus ¶
type NodeStatus struct { // Resource generation, which is updated on mutation by the API Server. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // +optional Phase status.Status `json:"phase,omitempty"` // +optional Conditions []kmapi.Condition `json:"conditions,omitempty"` }
func (*NodeStatus) DeepCopy ¶
func (in *NodeStatus) DeepCopy() *NodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeStatus.
func (*NodeStatus) DeepCopyInto ¶
func (in *NodeStatus) DeepCopyInto(out *NodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.