Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=bms.flexibleengine.upbound.io +versionName=v1beta1
Index ¶
- Constants
- Variables
- type BlockDeviceObservation
- type BlockDeviceParameters
- type NetworkObservation
- type NetworkParameters
- type Server
- func (in *Server) DeepCopy() *Server
- func (in *Server) DeepCopyInto(out *Server)
- func (in *Server) DeepCopyObject() runtime.Object
- func (mg *Server) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Server) GetConnectionDetailsMapping() map[string]string
- func (mg *Server) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Server) GetID() string
- func (tr *Server) GetObservation() (map[string]any, error)
- func (tr *Server) GetParameters() (map[string]any, error)
- func (mg *Server) GetProviderConfigReference() *xpv1.Reference
- func (mg *Server) GetProviderReference() *xpv1.Reference
- func (mg *Server) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Server) GetTerraformResourceType() string
- func (tr *Server) GetTerraformSchemaVersion() int
- func (mg *Server) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Server) LateInitialize(attrs []byte) (bool, error)
- func (mg *Server) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *Server) SetConditions(c ...xpv1.Condition)
- func (mg *Server) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (tr *Server) SetObservation(obs map[string]any) error
- func (tr *Server) SetParameters(params map[string]any) error
- func (mg *Server) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Server) SetProviderReference(r *xpv1.Reference)
- func (mg *Server) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Server) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type ServerList
- type ServerObservation
- type ServerParameters
- type ServerSpec
- type ServerStatus
Constants ¶
const ( CRDGroup = "bms.flexibleengine.upbound.io" CRDVersion = "v1beta1" )
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 ( Server_Kind = "Server" Server_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Server_Kind}.String() Server_KindAPIVersion = Server_Kind + "." + CRDGroupVersion.String() Server_GroupVersionKind = CRDGroupVersion.WithKind(Server_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type BlockDeviceObservation ¶
type BlockDeviceObservation struct { }
func (*BlockDeviceObservation) DeepCopy ¶
func (in *BlockDeviceObservation) DeepCopy() *BlockDeviceObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlockDeviceObservation.
func (*BlockDeviceObservation) DeepCopyInto ¶
func (in *BlockDeviceObservation) DeepCopyInto(out *BlockDeviceObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BlockDeviceParameters ¶
type BlockDeviceParameters struct { // +kubebuilder:validation:Optional BootIndex *float64 `json:"bootIndex,omitempty" tf:"boot_index,omitempty"` // +kubebuilder:validation:Optional DeleteOnTermination *bool `json:"deleteOnTermination,omitempty" tf:"delete_on_termination,omitempty"` // +kubebuilder:validation:Optional DestinationType *string `json:"destinationType,omitempty" tf:"destination_type,omitempty"` // The name of the BMS. // +kubebuilder:validation:Optional DeviceName *string `json:"deviceName,omitempty" tf:"device_name,omitempty"` // +kubebuilder:validation:Optional GuestFormat *string `json:"guestFormat,omitempty" tf:"guest_format,omitempty"` // +kubebuilder:validation:Required SourceType *string `json:"sourceType" tf:"source_type,omitempty"` // The network UUID to // attach to the bms server. Changing this creates a new bms server. // +kubebuilder:validation:Optional UUID *string `json:"uuid,omitempty" tf:"uuid,omitempty"` // +kubebuilder:validation:Optional VolumeSize *float64 `json:"volumeSize,omitempty" tf:"volume_size,omitempty"` // +kubebuilder:validation:Optional VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"` }
func (*BlockDeviceParameters) DeepCopy ¶
func (in *BlockDeviceParameters) DeepCopy() *BlockDeviceParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlockDeviceParameters.
func (*BlockDeviceParameters) DeepCopyInto ¶
func (in *BlockDeviceParameters) DeepCopyInto(out *BlockDeviceParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkObservation ¶
type NetworkObservation struct {
Mac *string `json:"mac,omitempty" tf:"mac,omitempty"`
}
func (*NetworkObservation) DeepCopy ¶
func (in *NetworkObservation) DeepCopy() *NetworkObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkObservation.
func (*NetworkObservation) DeepCopyInto ¶
func (in *NetworkObservation) DeepCopyInto(out *NetworkObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkParameters ¶
type NetworkParameters struct { // Specifies if this network should be used for // provisioning access. Accepts true or false. Defaults to false. // +kubebuilder:validation:Optional AccessNetwork *bool `json:"accessNetwork,omitempty" tf:"access_network,omitempty"` // Specifies a fixed IPv4 address to be used on this // network. Changing this creates a new bms server. // +kubebuilder:validation:Optional FixedIPV4 *string `json:"fixedIpV4,omitempty" tf:"fixed_ip_v4,omitempty"` // Specifies a fixed IPv6 address to be used on this // network. Changing this creates a new bms server. // +kubebuilder:validation:Optional FixedIPV6 *string `json:"fixedIpV6,omitempty" tf:"fixed_ip_v6,omitempty"` // The human-readable // name of the network. Changing this creates a new bms server. // +kubebuilder:validation:Optional Name *string `json:"name,omitempty" tf:"name,omitempty"` // The port UUID of a // network to attach to the bms server. Changing this creates a new server. // +crossplane:generate:reference:type=github.com/FlexibleEngineCloud/provider-flexibleengine/apis/vpc/v1beta1.Port // +kubebuilder:validation:Optional Port *string `json:"port,omitempty" tf:"port,omitempty"` // Reference to a Port in vpc to populate port. // +kubebuilder:validation:Optional PortRef *v1.Reference `json:"portRef,omitempty" tf:"-"` // Selector for a Port in vpc to populate port. // +kubebuilder:validation:Optional PortSelector *v1.Selector `json:"portSelector,omitempty" tf:"-"` // The network UUID to // attach to the bms server. Changing this creates a new bms server. // +crossplane:generate:reference:type=github.com/FlexibleEngineCloud/provider-flexibleengine/apis/vpc/v1beta1.VPCSubnet // +crossplane:generate:reference:extractor=github.com/FlexibleEngineCloud/provider-flexibleengine/pkg/tools.ExtractorParamPathfunc(true, "id") // +kubebuilder:validation:Optional UUID *string `json:"uuid,omitempty" tf:"uuid,omitempty"` // Reference to a VPCSubnet in vpc to populate uuid. // +kubebuilder:validation:Optional UUIDRef *v1.Reference `json:"uuidRef,omitempty" tf:"-"` // Selector for a VPCSubnet in vpc to populate uuid. // +kubebuilder:validation:Optional UUIDSelector *v1.Selector `json:"uuidSelector,omitempty" tf:"-"` }
func (*NetworkParameters) DeepCopy ¶
func (in *NetworkParameters) DeepCopy() *NetworkParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkParameters.
func (*NetworkParameters) DeepCopyInto ¶
func (in *NetworkParameters) DeepCopyInto(out *NetworkParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Server ¶
type Server struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ServerSpec `json:"spec"` Status ServerStatus `json:"status,omitempty"` }
Server is the Schema for the Servers API. ""page_title: "flexibleengine_compute_bms_server_v2" +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,flexibleengine}
func (*Server) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Server.
func (*Server) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Server) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Server) GetCondition ¶
func (mg *Server) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Server.
func (*Server) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Server
func (*Server) GetDeletionPolicy ¶
func (mg *Server) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Server.
func (*Server) GetObservation ¶
GetObservation of this Server
func (*Server) GetParameters ¶
GetParameters of this Server
func (*Server) GetProviderConfigReference ¶
GetProviderConfigReference of this Server.
func (*Server) GetProviderReference ¶
GetProviderReference of this Server. Deprecated: Use GetProviderConfigReference.
func (*Server) GetPublishConnectionDetailsTo ¶
func (mg *Server) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Server.
func (*Server) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Server
func (*Server) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Server) GetWriteConnectionSecretToReference ¶
func (mg *Server) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Server.
func (*Server) LateInitialize ¶
LateInitialize this Server using its observed tfState. returns True if there are any spec changes for the resource.
func (*Server) ResolveReferences ¶
ResolveReferences of this Server.
func (*Server) SetConditions ¶
SetConditions of this Server.
func (*Server) SetDeletionPolicy ¶
func (mg *Server) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Server.
func (*Server) SetObservation ¶
SetObservation for this Server
func (*Server) SetParameters ¶
SetParameters for this Server
func (*Server) SetProviderConfigReference ¶
SetProviderConfigReference of this Server.
func (*Server) SetProviderReference ¶
SetProviderReference of this Server. Deprecated: Use SetProviderConfigReference.
func (*Server) SetPublishConnectionDetailsTo ¶
func (mg *Server) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Server.
func (*Server) SetWriteConnectionSecretToReference ¶
func (mg *Server) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Server.
type ServerList ¶
type ServerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Server `json:"items"` }
ServerList contains a list of Servers
func (*ServerList) DeepCopy ¶
func (in *ServerList) DeepCopy() *ServerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerList.
func (*ServerList) DeepCopyInto ¶
func (in *ServerList) DeepCopyInto(out *ServerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServerList) DeepCopyObject ¶
func (in *ServerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ServerList) GetItems ¶
func (l *ServerList) GetItems() []resource.Managed
GetItems of this ServerList.
type ServerObservation ¶
type ServerObservation struct { AccessIPV4 *string `json:"accessIpV4,omitempty" tf:"access_ip_v4,omitempty"` AccessIPV6 *string `json:"accessIpV6,omitempty" tf:"access_ip_v6,omitempty"` // Whether to use the config_drive feature to configure the instance. ConfigDrive *bool `json:"configDrive,omitempty" tf:"config_drive,omitempty"` // The id of the bms server. HostID *string `json:"hostId,omitempty" tf:"host_id,omitempty"` // The nova-compute status: UP, UNKNOWN, DOWN, MAINTENANCE and Null. HostStatus *string `json:"hostStatus,omitempty" tf:"host_status,omitempty"` // The id of the bms server. ID *string `json:"id,omitempty" tf:"id,omitempty"` // The UUID of the kernel image when the AMI image is used. KernelID *string `json:"kernelId,omitempty" tf:"kernel_id,omitempty"` // An array of one or more networks to attach to the // bms instance. Changing this creates a new bms server. // +kubebuilder:validation:Optional Network []NetworkObservation `json:"network,omitempty" tf:"network,omitempty"` // The id of the bms server. TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"` // The ID of the user to which the BMS belongs. UserID *string `json:"userId,omitempty" tf:"user_id,omitempty"` }
func (*ServerObservation) DeepCopy ¶
func (in *ServerObservation) DeepCopy() *ServerObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerObservation.
func (*ServerObservation) DeepCopyInto ¶
func (in *ServerObservation) DeepCopyInto(out *ServerObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServerParameters ¶
type ServerParameters struct { // The administrative password to assign to the bms server. // Changing this changes the root password on the existing server. // +kubebuilder:validation:Optional AdminPass *string `json:"adminPass,omitempty" tf:"admin_pass,omitempty"` // The availability zone in which to create // the bms server. // +kubebuilder:validation:Required AvailabilityZone *string `json:"availabilityZone" tf:"availability_zone,omitempty"` // +kubebuilder:validation:Optional BlockDevice []BlockDeviceParameters `json:"blockDevice,omitempty" tf:"block_device,omitempty"` // The flavor ID of // the desired flavor for the bms server. Changing this resizes the existing bms server. // +kubebuilder:validation:Optional FlavorID *string `json:"flavorId,omitempty" tf:"flavor_id,omitempty"` // The name of the // desired flavor for the bms server. Changing this resizes the existing bms server. // +kubebuilder:validation:Optional FlavorName *string `json:"flavorName,omitempty" tf:"flavor_name,omitempty"` // Changing this creates a new bms server. // +crossplane:generate:reference:type=github.com/FlexibleEngineCloud/provider-flexibleengine/apis/ims/v1beta1.Image // +kubebuilder:validation:Optional ImageID *string `json:"imageId,omitempty" tf:"image_id,omitempty"` // Reference to a Image in ims to populate imageId. // +kubebuilder:validation:Optional ImageIDRef *v1.Reference `json:"imageIdRef,omitempty" tf:"-"` // Selector for a Image in ims to populate imageId. // +kubebuilder:validation:Optional ImageIDSelector *v1.Selector `json:"imageIdSelector,omitempty" tf:"-"` // The name of the // desired image for the bms server. Changing this creates a new bms server. // +crossplane:generate:reference:type=github.com/FlexibleEngineCloud/provider-flexibleengine/apis/ims/v1beta1.Image // +crossplane:generate:reference:extractor=github.com/FlexibleEngineCloud/provider-flexibleengine/pkg/tools.ExtractorParamPathfunc(false, "image_name") // +kubebuilder:validation:Optional ImageName *string `json:"imageName,omitempty" tf:"image_name,omitempty"` // Reference to a Image in ims to populate imageName. // +kubebuilder:validation:Optional ImageNameRef *v1.Reference `json:"imageNameRef,omitempty" tf:"-"` // Selector for a Image in ims to populate imageName. // +kubebuilder:validation:Optional ImageNameSelector *v1.Selector `json:"imageNameSelector,omitempty" tf:"-"` // The name of a key pair to put on the bms server. The key // pair must already be created and associated with the tenant's account. // Changing this creates a new bms server. // +crossplane:generate:reference:type=github.com/FlexibleEngineCloud/provider-flexibleengine/apis/ecs/v1beta1.KeyPair // +kubebuilder:validation:Optional KeyPair *string `json:"keyPair,omitempty" tf:"key_pair,omitempty"` // Reference to a KeyPair in ecs to populate keyPair. // +kubebuilder:validation:Optional KeyPairRef *v1.Reference `json:"keyPairRef,omitempty" tf:"-"` // Selector for a KeyPair in ecs to populate keyPair. // +kubebuilder:validation:Optional KeyPairSelector *v1.Selector `json:"keyPairSelector,omitempty" tf:"-"` // Metadata key/value pairs to make available from // within the instance. Changing this updates the existing bms server metadata. // +kubebuilder:validation:Optional Metadata map[string]*string `json:"metadata,omitempty" tf:"metadata,omitempty"` // The name of the BMS. // +kubebuilder:validation:Required Name *string `json:"name" tf:"name,omitempty"` // An array of one or more networks to attach to the // bms instance. Changing this creates a new bms server. // +kubebuilder:validation:Optional Network []NetworkParameters `json:"network,omitempty" tf:"network,omitempty"` // The region in which to create the bms server instance. If // omitted, the region argument of the provider is used. Changing this // creates a new bms server. // +kubebuilder:validation:Optional Region *string `json:"region,omitempty" tf:"region,omitempty"` // An array of one or more security group names // to associate with the bms server. Changing this results in adding/removing // security groups from the existing bms server. // +crossplane:generate:reference:type=github.com/FlexibleEngineCloud/provider-flexibleengine/apis/vpc/v1beta1.SecurityGroup // +crossplane:generate:reference:extractor=github.com/FlexibleEngineCloud/provider-flexibleengine/pkg/tools.ExtractorParamPathfunc(false, "name") // +kubebuilder:validation:Optional SecurityGroups []*string `json:"securityGroups,omitempty" tf:"security_groups,omitempty"` // References to SecurityGroup in vpc to populate securityGroups. // +kubebuilder:validation:Optional SecurityGroupsRefs []v1.Reference `json:"securityGroupsRefs,omitempty" tf:"-"` // Selector for a list of SecurityGroup in vpc to populate securityGroups. // +kubebuilder:validation:Optional SecurityGroupsSelector *v1.Selector `json:"securityGroupsSelector,omitempty" tf:"-"` // Whether to try stop instance gracefully // before destroying it, thus giving chance for guest OS daemons to stop correctly. // If instance doesn't stop within timeout, it will be destroyed anyway. // +kubebuilder:validation:Optional StopBeforeDestroy *bool `json:"stopBeforeDestroy,omitempty" tf:"stop_before_destroy,omitempty"` // The user data to provide when launching the instance. // Changing this creates a new bms server. // +kubebuilder:validation:Optional UserData *string `json:"userData,omitempty" tf:"user_data,omitempty"` }
func (*ServerParameters) DeepCopy ¶
func (in *ServerParameters) DeepCopy() *ServerParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerParameters.
func (*ServerParameters) DeepCopyInto ¶
func (in *ServerParameters) DeepCopyInto(out *ServerParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServerSpec ¶
type ServerSpec struct { v1.ResourceSpec `json:",inline"` ForProvider ServerParameters `json:"forProvider"` }
ServerSpec defines the desired state of Server
func (*ServerSpec) DeepCopy ¶
func (in *ServerSpec) DeepCopy() *ServerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerSpec.
func (*ServerSpec) DeepCopyInto ¶
func (in *ServerSpec) DeepCopyInto(out *ServerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServerStatus ¶
type ServerStatus struct { v1.ResourceStatus `json:",inline"` AtProvider ServerObservation `json:"atProvider,omitempty"` }
ServerStatus defines the observed state of Server.
func (*ServerStatus) DeepCopy ¶
func (in *ServerStatus) DeepCopy() *ServerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerStatus.
func (*ServerStatus) DeepCopyInto ¶
func (in *ServerStatus) DeepCopyInto(out *ServerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.