Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=vmstoragepolicy.vsphere.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type StoragePolicy
- func (in *StoragePolicy) DeepCopy() *StoragePolicy
- func (in *StoragePolicy) DeepCopyInto(out *StoragePolicy)
- func (in *StoragePolicy) DeepCopyObject() runtime.Object
- func (mg *StoragePolicy) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *StoragePolicy) GetConnectionDetailsMapping() map[string]string
- func (mg *StoragePolicy) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *StoragePolicy) GetID() string
- func (tr *StoragePolicy) GetObservation() (map[string]any, error)
- func (tr *StoragePolicy) GetParameters() (map[string]any, error)
- func (mg *StoragePolicy) GetProviderConfigReference() *xpv1.Reference
- func (mg *StoragePolicy) GetProviderReference() *xpv1.Reference
- func (mg *StoragePolicy) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *StoragePolicy) GetTerraformResourceType() string
- func (tr *StoragePolicy) GetTerraformSchemaVersion() int
- func (mg *StoragePolicy) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *StoragePolicy) LateInitialize(attrs []byte) (bool, error)
- func (mg *StoragePolicy) SetConditions(c ...xpv1.Condition)
- func (mg *StoragePolicy) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (tr *StoragePolicy) SetObservation(obs map[string]any) error
- func (tr *StoragePolicy) SetParameters(params map[string]any) error
- func (mg *StoragePolicy) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *StoragePolicy) SetProviderReference(r *xpv1.Reference)
- func (mg *StoragePolicy) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *StoragePolicy) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type StoragePolicyList
- type StoragePolicyObservation
- type StoragePolicyParameters
- type StoragePolicySpec
- type StoragePolicyStatus
- type TagRulesObservation
- type TagRulesParameters
Constants ¶
const ( CRDGroup = "vmstoragepolicy.vsphere.upbound.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 ( StoragePolicy_Kind = "StoragePolicy" StoragePolicy_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: StoragePolicy_Kind}.String() StoragePolicy_KindAPIVersion = StoragePolicy_Kind + "." + CRDGroupVersion.String() StoragePolicy_GroupVersionKind = CRDGroupVersion.WithKind(StoragePolicy_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type StoragePolicy ¶
type StoragePolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec StoragePolicySpec `json:"spec"` Status StoragePolicyStatus `json:"status,omitempty"` }
StoragePolicy is the Schema for the StoragePolicys API. Storage policies can select the most appropriate datastore for the virtual machine and enforce the required level of service. +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,vsphere}
func (*StoragePolicy) DeepCopy ¶
func (in *StoragePolicy) DeepCopy() *StoragePolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoragePolicy.
func (*StoragePolicy) DeepCopyInto ¶
func (in *StoragePolicy) DeepCopyInto(out *StoragePolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StoragePolicy) DeepCopyObject ¶
func (in *StoragePolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*StoragePolicy) GetCondition ¶
func (mg *StoragePolicy) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this StoragePolicy.
func (*StoragePolicy) GetConnectionDetailsMapping ¶
func (tr *StoragePolicy) GetConnectionDetailsMapping() map[string]string
GetConnectionDetailsMapping for this StoragePolicy
func (*StoragePolicy) GetDeletionPolicy ¶
func (mg *StoragePolicy) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this StoragePolicy.
func (*StoragePolicy) GetID ¶
func (tr *StoragePolicy) GetID() string
GetID returns ID of underlying Terraform resource of this StoragePolicy
func (*StoragePolicy) GetObservation ¶
func (tr *StoragePolicy) GetObservation() (map[string]any, error)
GetObservation of this StoragePolicy
func (*StoragePolicy) GetParameters ¶
func (tr *StoragePolicy) GetParameters() (map[string]any, error)
GetParameters of this StoragePolicy
func (*StoragePolicy) GetProviderConfigReference ¶
func (mg *StoragePolicy) GetProviderConfigReference() *xpv1.Reference
GetProviderConfigReference of this StoragePolicy.
func (*StoragePolicy) GetProviderReference ¶
func (mg *StoragePolicy) GetProviderReference() *xpv1.Reference
GetProviderReference of this StoragePolicy. Deprecated: Use GetProviderConfigReference.
func (*StoragePolicy) GetPublishConnectionDetailsTo ¶
func (mg *StoragePolicy) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this StoragePolicy.
func (*StoragePolicy) GetTerraformResourceType ¶
func (mg *StoragePolicy) GetTerraformResourceType() string
GetTerraformResourceType returns Terraform resource type for this StoragePolicy
func (*StoragePolicy) GetTerraformSchemaVersion ¶
func (tr *StoragePolicy) GetTerraformSchemaVersion() int
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*StoragePolicy) GetWriteConnectionSecretToReference ¶
func (mg *StoragePolicy) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this StoragePolicy.
func (*StoragePolicy) LateInitialize ¶
func (tr *StoragePolicy) LateInitialize(attrs []byte) (bool, error)
LateInitialize this StoragePolicy using its observed tfState. returns True if there are any spec changes for the resource.
func (*StoragePolicy) SetConditions ¶
func (mg *StoragePolicy) SetConditions(c ...xpv1.Condition)
SetConditions of this StoragePolicy.
func (*StoragePolicy) SetDeletionPolicy ¶
func (mg *StoragePolicy) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this StoragePolicy.
func (*StoragePolicy) SetObservation ¶
func (tr *StoragePolicy) SetObservation(obs map[string]any) error
SetObservation for this StoragePolicy
func (*StoragePolicy) SetParameters ¶
func (tr *StoragePolicy) SetParameters(params map[string]any) error
SetParameters for this StoragePolicy
func (*StoragePolicy) SetProviderConfigReference ¶
func (mg *StoragePolicy) SetProviderConfigReference(r *xpv1.Reference)
SetProviderConfigReference of this StoragePolicy.
func (*StoragePolicy) SetProviderReference ¶
func (mg *StoragePolicy) SetProviderReference(r *xpv1.Reference)
SetProviderReference of this StoragePolicy. Deprecated: Use SetProviderConfigReference.
func (*StoragePolicy) SetPublishConnectionDetailsTo ¶
func (mg *StoragePolicy) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this StoragePolicy.
func (*StoragePolicy) SetWriteConnectionSecretToReference ¶
func (mg *StoragePolicy) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this StoragePolicy.
type StoragePolicyList ¶
type StoragePolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []StoragePolicy `json:"items"` }
StoragePolicyList contains a list of StoragePolicys
func (*StoragePolicyList) DeepCopy ¶
func (in *StoragePolicyList) DeepCopy() *StoragePolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoragePolicyList.
func (*StoragePolicyList) DeepCopyInto ¶
func (in *StoragePolicyList) DeepCopyInto(out *StoragePolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StoragePolicyList) DeepCopyObject ¶
func (in *StoragePolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*StoragePolicyList) GetItems ¶
func (l *StoragePolicyList) GetItems() []resource.Managed
GetItems of this StoragePolicyList.
type StoragePolicyObservation ¶
type StoragePolicyObservation struct {
ID *string `json:"id,omitempty" tf:"id,omitempty"`
}
func (*StoragePolicyObservation) DeepCopy ¶
func (in *StoragePolicyObservation) DeepCopy() *StoragePolicyObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoragePolicyObservation.
func (*StoragePolicyObservation) DeepCopyInto ¶
func (in *StoragePolicyObservation) DeepCopyInto(out *StoragePolicyObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StoragePolicyParameters ¶
type StoragePolicyParameters struct { // Description of the storage policy. // Description of the storage policy. // +kubebuilder:validation:Optional Description *string `json:"description,omitempty" tf:"description,omitempty"` // The name of the storage policy. // Name of the storage policy. // +kubebuilder:validation:Required Name *string `json:"name" tf:"name,omitempty"` // List of tag rules. The tag category and tags to be associated to this storage policy. // Tag rules to filter datastores to be used for placement of VMs. // +kubebuilder:validation:Required TagRules []TagRulesParameters `json:"tagRules" tf:"tag_rules,omitempty"` }
func (*StoragePolicyParameters) DeepCopy ¶
func (in *StoragePolicyParameters) DeepCopy() *StoragePolicyParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoragePolicyParameters.
func (*StoragePolicyParameters) DeepCopyInto ¶
func (in *StoragePolicyParameters) DeepCopyInto(out *StoragePolicyParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StoragePolicySpec ¶
type StoragePolicySpec struct { v1.ResourceSpec `json:",inline"` ForProvider StoragePolicyParameters `json:"forProvider"` }
StoragePolicySpec defines the desired state of StoragePolicy
func (*StoragePolicySpec) DeepCopy ¶
func (in *StoragePolicySpec) DeepCopy() *StoragePolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoragePolicySpec.
func (*StoragePolicySpec) DeepCopyInto ¶
func (in *StoragePolicySpec) DeepCopyInto(out *StoragePolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StoragePolicyStatus ¶
type StoragePolicyStatus struct { v1.ResourceStatus `json:",inline"` AtProvider StoragePolicyObservation `json:"atProvider,omitempty"` }
StoragePolicyStatus defines the observed state of StoragePolicy.
func (*StoragePolicyStatus) DeepCopy ¶
func (in *StoragePolicyStatus) DeepCopy() *StoragePolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoragePolicyStatus.
func (*StoragePolicyStatus) DeepCopyInto ¶
func (in *StoragePolicyStatus) DeepCopyInto(out *StoragePolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TagRulesObservation ¶
type TagRulesObservation struct { }
func (*TagRulesObservation) DeepCopy ¶
func (in *TagRulesObservation) DeepCopy() *TagRulesObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TagRulesObservation.
func (*TagRulesObservation) DeepCopyInto ¶
func (in *TagRulesObservation) DeepCopyInto(out *TagRulesObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TagRulesParameters ¶
type TagRulesParameters struct { // Include datastores with the given tags or exclude. Default true. // Whether to include or exclude datastores tagged with the provided tags // +kubebuilder:validation:Optional IncludeDatastoresWithTags *bool `json:"includeDatastoresWithTags,omitempty" tf:"include_datastores_with_tags,omitempty"` // Name of the tag category. // The tag category to select the tags from. // +kubebuilder:validation:Required TagCategory *string `json:"tagCategory" tf:"tag_category,omitempty"` // List of Name of tags to select from the given category. // The tags to use for creating a tag-based vm placement rule. // +kubebuilder:validation:Required Tags []*string `json:"tags" tf:"tags,omitempty"` }
func (*TagRulesParameters) DeepCopy ¶
func (in *TagRulesParameters) DeepCopy() *TagRulesParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TagRulesParameters.
func (*TagRulesParameters) DeepCopyInto ¶
func (in *TagRulesParameters) DeepCopyInto(out *TagRulesParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.