Documentation
¶
Overview ¶
+kubebuilder:object:generate=true +groupName=awxinventory.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Inventory
- func (in *Inventory) DeepCopy() *Inventory
- func (in *Inventory) DeepCopyInto(out *Inventory)
- func (in *Inventory) DeepCopyObject() runtime.Object
- func (mg *Inventory) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Inventory) GetConnectionDetailsMapping() map[string]string
- func (mg *Inventory) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Inventory) GetID() string
- func (tr *Inventory) GetInitParameters() (map[string]any, error)
- func (mg *Inventory) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Inventory) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Inventory) GetObservation() (map[string]any, error)
- func (tr *Inventory) GetParameters() (map[string]any, error)
- func (mg *Inventory) GetProviderConfigReference() *xpv1.Reference
- func (mg *Inventory) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Inventory) GetTerraformResourceType() string
- func (tr *Inventory) GetTerraformSchemaVersion() int
- func (mg *Inventory) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Inventory) Hub()
- func (tr *Inventory) LateInitialize(attrs []byte) (bool, error)
- func (mg *Inventory) SetConditions(c ...xpv1.Condition)
- func (mg *Inventory) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Inventory) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Inventory) SetObservation(obs map[string]any) error
- func (tr *Inventory) SetParameters(params map[string]any) error
- func (mg *Inventory) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Inventory) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Inventory) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type InventoryInitParameters
- type InventoryList
- type InventoryObservation
- type InventoryParameters
- type InventorySpec
- type InventoryStatus
Constants ¶
const ( CRDGroup = "awxinventory.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 ( Inventory_Kind = "Inventory" Inventory_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Inventory_Kind}.String() Inventory_KindAPIVersion = Inventory_Kind + "." + CRDGroupVersion.String() Inventory_GroupVersionKind = CRDGroupVersion.WithKind(Inventory_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Inventory ¶
type Inventory struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.organization) || (has(self.initProvider) && has(self.initProvider.organization))",message="spec.forProvider.organization is a required parameter"
Spec InventorySpec `json:"spec"`
Status InventoryStatus `json:"status,omitempty"`
}
Inventory is the Schema for the Inventorys API. <no value> +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].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:resource:scope=Cluster,categories={crossplane,managed,awx-ilijamt}
func (*Inventory) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Inventory.
func (*Inventory) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Inventory) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Inventory) GetCondition ¶
func (mg *Inventory) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Inventory.
func (*Inventory) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Inventory
func (*Inventory) GetDeletionPolicy ¶
func (mg *Inventory) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Inventory.
func (*Inventory) GetInitParameters ¶
GetInitParameters of this Inventory
func (*Inventory) GetManagementPolicies ¶
func (mg *Inventory) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Inventory.
func (*Inventory) GetMergedParameters ¶
GetInitParameters of this Inventory
func (*Inventory) GetObservation ¶
GetObservation of this Inventory
func (*Inventory) GetParameters ¶
GetParameters of this Inventory
func (*Inventory) GetProviderConfigReference ¶
GetProviderConfigReference of this Inventory.
func (*Inventory) GetPublishConnectionDetailsTo ¶
func (mg *Inventory) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Inventory.
func (*Inventory) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Inventory
func (*Inventory) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Inventory) GetWriteConnectionSecretToReference ¶
func (mg *Inventory) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Inventory.
func (*Inventory) LateInitialize ¶
LateInitialize this Inventory using its observed tfState. returns True if there are any spec changes for the resource.
func (*Inventory) SetConditions ¶
SetConditions of this Inventory.
func (*Inventory) SetDeletionPolicy ¶
func (mg *Inventory) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Inventory.
func (*Inventory) SetManagementPolicies ¶
func (mg *Inventory) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Inventory.
func (*Inventory) SetObservation ¶
SetObservation for this Inventory
func (*Inventory) SetParameters ¶
SetParameters for this Inventory
func (*Inventory) SetProviderConfigReference ¶
SetProviderConfigReference of this Inventory.
func (*Inventory) SetPublishConnectionDetailsTo ¶
func (mg *Inventory) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Inventory.
func (*Inventory) SetWriteConnectionSecretToReference ¶
func (mg *Inventory) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Inventory.
type InventoryInitParameters ¶
type InventoryInitParameters struct {
// Optional description of this inventory.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Filter that will be applied to the hosts of this inventory.
HostFilter *string `json:"hostFilter,omitempty" tf:"host_filter,omitempty"`
// Kind of inventory being represented.
Kind *string `json:"kind,omitempty" tf:"kind,omitempty"`
// Name of this inventory.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Organization containing this inventory.
Organization *float64 `json:"organization,omitempty" tf:"organization,omitempty"`
// If enabled, the inventory will prevent adding any organization instance groups to the list of preferred instances groups to run associated job templates on.If this setting is enabled and you provided an empty list, the global instance groups will be applied.
PreventInstanceGroupFallback *bool `json:"preventInstanceGroupFallback,omitempty" tf:"prevent_instance_group_fallback,omitempty"`
// Inventory variables in JSON format
Variables *string `json:"variables,omitempty" tf:"variables,omitempty"`
}
func (*InventoryInitParameters) DeepCopy ¶
func (in *InventoryInitParameters) DeepCopy() *InventoryInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InventoryInitParameters.
func (*InventoryInitParameters) DeepCopyInto ¶
func (in *InventoryInitParameters) DeepCopyInto(out *InventoryInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InventoryList ¶
type InventoryList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Inventory `json:"items"`
}
InventoryList contains a list of Inventorys
func (*InventoryList) DeepCopy ¶
func (in *InventoryList) DeepCopy() *InventoryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InventoryList.
func (*InventoryList) DeepCopyInto ¶
func (in *InventoryList) DeepCopyInto(out *InventoryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InventoryList) DeepCopyObject ¶
func (in *InventoryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*InventoryList) GetItems ¶
func (l *InventoryList) GetItems() []resource.Managed
GetItems of this InventoryList.
type InventoryObservation ¶
type InventoryObservation struct {
// Optional description of this inventory.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Flag indicating whether any hosts in this inventory have failed.
HasActiveFailures *bool `json:"hasActiveFailures,omitempty" tf:"has_active_failures,omitempty"`
// Flag indicating whether this inventory has any external inventory sources.
HasInventorySources *bool `json:"hasInventorySources,omitempty" tf:"has_inventory_sources,omitempty"`
// Filter that will be applied to the hosts of this inventory.
HostFilter *string `json:"hostFilter,omitempty" tf:"host_filter,omitempty"`
// Number of hosts in this inventory with active failures.
HostsWithActiveFailures *float64 `json:"hostsWithActiveFailures,omitempty" tf:"hosts_with_active_failures,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Number of external inventory sources in this inventory with failures.
InventorySourcesWithFailures *float64 `json:"inventorySourcesWithFailures,omitempty" tf:"inventory_sources_with_failures,omitempty"`
// Kind of inventory being represented.
Kind *string `json:"kind,omitempty" tf:"kind,omitempty"`
// Name of this inventory.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Organization containing this inventory.
Organization *float64 `json:"organization,omitempty" tf:"organization,omitempty"`
// Flag indicating the inventory is being deleted.
PendingDeletion *bool `json:"pendingDeletion,omitempty" tf:"pending_deletion,omitempty"`
// If enabled, the inventory will prevent adding any organization instance groups to the list of preferred instances groups to run associated job templates on.If this setting is enabled and you provided an empty list, the global instance groups will be applied.
PreventInstanceGroupFallback *bool `json:"preventInstanceGroupFallback,omitempty" tf:"prevent_instance_group_fallback,omitempty"`
// Total number of groups in this inventory.
TotalGroups *float64 `json:"totalGroups,omitempty" tf:"total_groups,omitempty"`
// Total number of hosts in this inventory.
TotalHosts *float64 `json:"totalHosts,omitempty" tf:"total_hosts,omitempty"`
// Total number of external inventory sources configured within this inventory.
TotalInventorySources *float64 `json:"totalInventorySources,omitempty" tf:"total_inventory_sources,omitempty"`
// Inventory variables in JSON format
Variables *string `json:"variables,omitempty" tf:"variables,omitempty"`
}
func (*InventoryObservation) DeepCopy ¶
func (in *InventoryObservation) DeepCopy() *InventoryObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InventoryObservation.
func (*InventoryObservation) DeepCopyInto ¶
func (in *InventoryObservation) DeepCopyInto(out *InventoryObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InventoryParameters ¶
type InventoryParameters struct {
// Optional description of this inventory.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Filter that will be applied to the hosts of this inventory.
// +kubebuilder:validation:Optional
HostFilter *string `json:"hostFilter,omitempty" tf:"host_filter,omitempty"`
// Kind of inventory being represented.
// +kubebuilder:validation:Optional
Kind *string `json:"kind,omitempty" tf:"kind,omitempty"`
// Name of this inventory.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Organization containing this inventory.
// +kubebuilder:validation:Optional
Organization *float64 `json:"organization,omitempty" tf:"organization,omitempty"`
// If enabled, the inventory will prevent adding any organization instance groups to the list of preferred instances groups to run associated job templates on.If this setting is enabled and you provided an empty list, the global instance groups will be applied.
// +kubebuilder:validation:Optional
PreventInstanceGroupFallback *bool `json:"preventInstanceGroupFallback,omitempty" tf:"prevent_instance_group_fallback,omitempty"`
// Inventory variables in JSON format
// +kubebuilder:validation:Optional
Variables *string `json:"variables,omitempty" tf:"variables,omitempty"`
}
func (*InventoryParameters) DeepCopy ¶
func (in *InventoryParameters) DeepCopy() *InventoryParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InventoryParameters.
func (*InventoryParameters) DeepCopyInto ¶
func (in *InventoryParameters) DeepCopyInto(out *InventoryParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InventorySpec ¶
type InventorySpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider InventoryParameters `json:"forProvider"`
// THIS IS A BETA FIELD. It will be honored
// unless the Management Policies feature flag is disabled.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider InventoryInitParameters `json:"initProvider,omitempty"`
}
InventorySpec defines the desired state of Inventory
func (*InventorySpec) DeepCopy ¶
func (in *InventorySpec) DeepCopy() *InventorySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InventorySpec.
func (*InventorySpec) DeepCopyInto ¶
func (in *InventorySpec) DeepCopyInto(out *InventorySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InventoryStatus ¶
type InventoryStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider InventoryObservation `json:"atProvider,omitempty"`
}
InventoryStatus defines the observed state of Inventory.
func (*InventoryStatus) DeepCopy ¶
func (in *InventoryStatus) DeepCopy() *InventoryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InventoryStatus.
func (*InventoryStatus) DeepCopyInto ¶
func (in *InventoryStatus) DeepCopyInto(out *InventoryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.