Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=tpu.gcp.jet.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type NetworkEndpointsObservation
- type NetworkEndpointsParameters
- type Node
- func (in *Node) DeepCopy() *Node
- func (in *Node) DeepCopyInto(out *Node)
- func (in *Node) DeepCopyObject() runtime.Object
- func (mg *Node) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Node) GetConnectionDetailsMapping() map[string]string
- func (mg *Node) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Node) GetID() string
- func (tr *Node) GetObservation() (map[string]interface{}, error)
- func (tr *Node) GetParameters() (map[string]interface{}, error)
- func (mg *Node) GetProviderConfigReference() *xpv1.Reference
- func (mg *Node) GetProviderReference() *xpv1.Reference
- func (mg *Node) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Node) GetTerraformResourceType() string
- func (tr *Node) GetTerraformSchemaVersion() int
- func (mg *Node) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Node) LateInitialize(attrs []byte) (bool, error)
- func (mg *Node) SetConditions(c ...xpv1.Condition)
- func (mg *Node) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (tr *Node) SetObservation(obs map[string]interface{}) error
- func (tr *Node) SetParameters(params map[string]interface{}) error
- func (mg *Node) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Node) SetProviderReference(r *xpv1.Reference)
- func (mg *Node) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Node) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type NodeList
- type NodeObservation
- type NodeParameters
- type NodeSpec
- type NodeStatus
- type SchedulingConfigObservation
- type SchedulingConfigParameters
Constants ¶
const ( CRDGroup = "tpu.gcp.jet.crossplane.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
var ( // CRDGroupVersion is the API Group Version used to register the objects CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ( Node_Kind = "Node" Node_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Node_Kind}.String() Node_KindAPIVersion = Node_Kind + "." + CRDGroupVersion.String() Node_GroupVersionKind = CRDGroupVersion.WithKind(Node_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type NetworkEndpointsObservation ¶
type NetworkEndpointsObservation struct { IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address,omitempty"` Port *float64 `json:"port,omitempty" tf:"port,omitempty"` }
func (*NetworkEndpointsObservation) DeepCopy ¶
func (in *NetworkEndpointsObservation) DeepCopy() *NetworkEndpointsObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkEndpointsObservation.
func (*NetworkEndpointsObservation) DeepCopyInto ¶
func (in *NetworkEndpointsObservation) DeepCopyInto(out *NetworkEndpointsObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkEndpointsParameters ¶
type NetworkEndpointsParameters struct { }
func (*NetworkEndpointsParameters) DeepCopy ¶
func (in *NetworkEndpointsParameters) DeepCopy() *NetworkEndpointsParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkEndpointsParameters.
func (*NetworkEndpointsParameters) DeepCopyInto ¶
func (in *NetworkEndpointsParameters) DeepCopyInto(out *NetworkEndpointsParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Node ¶
type Node struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NodeSpec `json:"spec"` Status NodeStatus `json:"status,omitempty"` }
Node is the Schema for the Nodes API +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gcpjet}
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) GetCondition ¶
func (mg *Node) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Node.
func (*Node) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Node
func (*Node) GetDeletionPolicy ¶
func (mg *Node) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Node.
func (*Node) GetObservation ¶
GetObservation of this Node
func (*Node) GetParameters ¶
GetParameters of this Node
func (*Node) GetProviderConfigReference ¶
GetProviderConfigReference of this Node.
func (*Node) GetProviderReference ¶
GetProviderReference of this Node. Deprecated: Use GetProviderConfigReference.
func (*Node) GetPublishConnectionDetailsTo ¶
func (mg *Node) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Node.
func (*Node) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Node
func (*Node) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Node) GetWriteConnectionSecretToReference ¶
func (mg *Node) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Node.
func (*Node) LateInitialize ¶
LateInitialize this Node using its observed tfState. returns True if there are any spec changes for the resource.
func (*Node) SetConditions ¶
SetConditions of this Node.
func (*Node) SetDeletionPolicy ¶
func (mg *Node) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Node.
func (*Node) SetObservation ¶
SetObservation for this Node
func (*Node) SetParameters ¶
SetParameters for this Node
func (*Node) SetProviderConfigReference ¶
SetProviderConfigReference of this Node.
func (*Node) SetProviderReference ¶
SetProviderReference of this Node. Deprecated: Use SetProviderConfigReference.
func (*Node) SetPublishConnectionDetailsTo ¶
func (mg *Node) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Node.
func (*Node) SetWriteConnectionSecretToReference ¶
func (mg *Node) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Node.
type NodeList ¶
type NodeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Node `json:"items"` }
NodeList contains 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 NodeObservation ¶
type NodeObservation struct { ID *string `json:"id,omitempty" tf:"id,omitempty"` NetworkEndpoints []NetworkEndpointsObservation `json:"networkEndpoints,omitempty" tf:"network_endpoints,omitempty"` ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account,omitempty"` }
func (*NodeObservation) DeepCopy ¶
func (in *NodeObservation) DeepCopy() *NodeObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeObservation.
func (*NodeObservation) DeepCopyInto ¶
func (in *NodeObservation) DeepCopyInto(out *NodeObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeParameters ¶
type NodeParameters struct { // The type of hardware accelerators associated with this node. // +kubebuilder:validation:Required AcceleratorType *string `json:"acceleratorType" tf:"accelerator_type,omitempty"` // 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. // +kubebuilder:validation:Optional CidrBlock *string `json:"cidrBlock,omitempty" tf:"cidr_block,omitempty"` // The user-supplied description of the TPU. Maximum of 512 characters. // +kubebuilder:validation:Optional Description *string `json:"description,omitempty" tf:"description,omitempty"` // Resource labels to represent user provided metadata. // +kubebuilder:validation:Optional Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"` // The immutable name of the TPU. // +kubebuilder:validation:Required Name *string `json:"name" tf:"name,omitempty"` // 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. // +kubebuilder:validation:Optional Network *string `json:"network,omitempty" tf:"network,omitempty"` // +kubebuilder:validation:Optional Project *string `json:"project,omitempty" tf:"project,omitempty"` // Sets the scheduling options for this TPU instance. // +kubebuilder:validation:Optional SchedulingConfig []SchedulingConfigParameters `json:"schedulingConfig,omitempty" tf:"scheduling_config,omitempty"` // The version of Tensorflow running in the Node. // +kubebuilder:validation:Required TensorflowVersion *string `json:"tensorflowVersion" tf:"tensorflow_version,omitempty"` // 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. // +kubebuilder:validation:Optional UseServiceNetworking *bool `json:"useServiceNetworking,omitempty" tf:"use_service_networking,omitempty"` // The GCP location for the TPU. If it is not provided, the provider zone is used. // +kubebuilder:validation:Optional Zone *string `json:"zone,omitempty" tf:"zone,omitempty"` }
func (*NodeParameters) DeepCopy ¶
func (in *NodeParameters) DeepCopy() *NodeParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeParameters.
func (*NodeParameters) DeepCopyInto ¶
func (in *NodeParameters) DeepCopyInto(out *NodeParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeSpec ¶
type NodeSpec struct { v1.ResourceSpec `json:",inline"` ForProvider NodeParameters `json:"forProvider"` }
NodeSpec defines the desired state of Node
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 NodeStatus ¶
type NodeStatus struct { v1.ResourceStatus `json:",inline"` AtProvider NodeObservation `json:"atProvider,omitempty"` }
NodeStatus defines the observed state of Node.
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.
type SchedulingConfigObservation ¶
type SchedulingConfigObservation struct { }
func (*SchedulingConfigObservation) DeepCopy ¶
func (in *SchedulingConfigObservation) DeepCopy() *SchedulingConfigObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulingConfigObservation.
func (*SchedulingConfigObservation) DeepCopyInto ¶
func (in *SchedulingConfigObservation) DeepCopyInto(out *SchedulingConfigObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SchedulingConfigParameters ¶
type SchedulingConfigParameters struct { // Defines whether the TPU instance is preemptible. // +kubebuilder:validation:Required Preemptible *bool `json:"preemptible" tf:"preemptible,omitempty"` }
func (*SchedulingConfigParameters) DeepCopy ¶
func (in *SchedulingConfigParameters) DeepCopy() *SchedulingConfigParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulingConfigParameters.
func (*SchedulingConfigParameters) DeepCopyInto ¶
func (in *SchedulingConfigParameters) DeepCopyInto(out *SchedulingConfigParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.