Documentation ¶
Overview ¶
Package v1alpha1 contains the core resources of the Ansible provider. +kubebuilder:object:generate=true +groupName=ansible.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type AnsibleRun
- func (in *AnsibleRun) DeepCopy() *AnsibleRun
- func (in *AnsibleRun) DeepCopyInto(out *AnsibleRun)
- func (in *AnsibleRun) DeepCopyObject() runtime.Object
- func (mg *AnsibleRun) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (mg *AnsibleRun) GetDeletionPolicy() xpv1.DeletionPolicy
- func (mg *AnsibleRun) GetManagementPolicies() xpv1.ManagementPolicies
- func (mg *AnsibleRun) GetProviderConfigReference() *xpv1.Reference
- func (mg *AnsibleRun) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *AnsibleRun) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (mg *AnsibleRun) SetConditions(c ...xpv1.Condition)
- func (mg *AnsibleRun) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *AnsibleRun) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (mg *AnsibleRun) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *AnsibleRun) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *AnsibleRun) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type AnsibleRunList
- type AnsibleRunObservation
- type AnsibleRunParameters
- type AnsibleRunSpec
- type AnsibleRunStatus
- type Inventory
- type ProviderConfig
- func (in *ProviderConfig) DeepCopy() *ProviderConfig
- func (in *ProviderConfig) DeepCopyInto(out *ProviderConfig)
- func (in *ProviderConfig) DeepCopyObject() runtime.Object
- func (p *ProviderConfig) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (p *ProviderConfig) GetUsers() int64
- func (p *ProviderConfig) SetConditions(c ...xpv1.Condition)
- func (p *ProviderConfig) SetUsers(i int64)
- type ProviderConfigList
- type ProviderConfigSpec
- type ProviderConfigStatus
- type ProviderConfigUsage
- func (in *ProviderConfigUsage) DeepCopy() *ProviderConfigUsage
- func (in *ProviderConfigUsage) DeepCopyInto(out *ProviderConfigUsage)
- func (in *ProviderConfigUsage) DeepCopyObject() runtime.Object
- func (p *ProviderConfigUsage) GetProviderConfigReference() xpv1.Reference
- func (p *ProviderConfigUsage) GetResourceReference() xpv1.TypedReference
- func (p *ProviderConfigUsage) SetProviderConfigReference(r xpv1.Reference)
- func (p *ProviderConfigUsage) SetResourceReference(r xpv1.TypedReference)
- type ProviderConfigUsageList
- type ProviderCredentials
- type Role
- type Var
Constants ¶
const ( Group = "ansible.crossplane.io" Version = "v1alpha1" )
Package type metadata.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
var ( AnsibleRunKind = reflect.TypeOf(AnsibleRun{}).Name() AnsibleRunGroupKind = schema.GroupKind{Group: Group, Kind: AnsibleRunKind}.String() AnsibleRunKindAPIVersion = AnsibleRunKind + "." + SchemeGroupVersion.String() AnsibleRunGroupVersionKind = SchemeGroupVersion.WithKind(AnsibleRunKind) )
AnsibleRun type metadata.
var ( ProviderConfigKind = reflect.TypeOf(ProviderConfig{}).Name() ProviderConfigGroupKind = schema.GroupKind{Group: Group, Kind: ProviderConfigKind}.String() ProviderConfigKindAPIVersion = ProviderConfigKind + "." + SchemeGroupVersion.String() ProviderConfigGroupVersionKind = SchemeGroupVersion.WithKind(ProviderConfigKind) )
ProviderConfig type metadata.
var ( ProviderConfigUsageKind = reflect.TypeOf(ProviderConfigUsage{}).Name() ProviderConfigUsageGroupKind = schema.GroupKind{Group: Group, Kind: ProviderConfigUsageKind}.String() ProviderConfigUsageKindAPIVersion = ProviderConfigUsageKind + "." + SchemeGroupVersion.String() ProviderConfigUsageGroupVersionKind = SchemeGroupVersion.WithKind(ProviderConfigUsageKind) ProviderConfigUsageListKind = reflect.TypeOf(ProviderConfigUsageList{}).Name() ProviderConfigUsageListGroupKind = schema.GroupKind{Group: Group, Kind: ProviderConfigUsageListKind}.String() ProviderConfigUsageListKindAPIVersion = ProviderConfigUsageListKind + "." + SchemeGroupVersion.String() ProviderConfigUsageListGroupVersionKind = SchemeGroupVersion.WithKind(ProviderConfigUsageListKind) )
ProviderConfigUsage type metadata.
Functions ¶
This section is empty.
Types ¶
type AnsibleRun ¶
type AnsibleRun struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AnsibleRunSpec `json:"spec"` Status AnsibleRunStatus `json:"status,omitempty"` }
AnsibleRun represents a set of Ansible Playbooks. +kubebuilder:subresource:status +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster
func (*AnsibleRun) DeepCopy ¶
func (in *AnsibleRun) DeepCopy() *AnsibleRun
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnsibleRun.
func (*AnsibleRun) DeepCopyInto ¶
func (in *AnsibleRun) DeepCopyInto(out *AnsibleRun)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AnsibleRun) DeepCopyObject ¶
func (in *AnsibleRun) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AnsibleRun) GetCondition ¶
func (mg *AnsibleRun) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this AnsibleRun.
func (*AnsibleRun) GetDeletionPolicy ¶
func (mg *AnsibleRun) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this AnsibleRun.
func (*AnsibleRun) GetManagementPolicies ¶ added in v0.6.0
func (mg *AnsibleRun) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this AnsibleRun.
func (*AnsibleRun) GetProviderConfigReference ¶
func (mg *AnsibleRun) GetProviderConfigReference() *xpv1.Reference
GetProviderConfigReference of this AnsibleRun.
func (*AnsibleRun) GetPublishConnectionDetailsTo ¶ added in v0.4.0
func (mg *AnsibleRun) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this AnsibleRun.
func (*AnsibleRun) GetWriteConnectionSecretToReference ¶
func (mg *AnsibleRun) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this AnsibleRun.
func (*AnsibleRun) SetConditions ¶
func (mg *AnsibleRun) SetConditions(c ...xpv1.Condition)
SetConditions of this AnsibleRun.
func (*AnsibleRun) SetDeletionPolicy ¶
func (mg *AnsibleRun) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this AnsibleRun.
func (*AnsibleRun) SetManagementPolicies ¶ added in v0.6.0
func (mg *AnsibleRun) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this AnsibleRun.
func (*AnsibleRun) SetProviderConfigReference ¶
func (mg *AnsibleRun) SetProviderConfigReference(r *xpv1.Reference)
SetProviderConfigReference of this AnsibleRun.
func (*AnsibleRun) SetPublishConnectionDetailsTo ¶ added in v0.4.0
func (mg *AnsibleRun) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this AnsibleRun.
func (*AnsibleRun) SetWriteConnectionSecretToReference ¶
func (mg *AnsibleRun) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this AnsibleRun.
type AnsibleRunList ¶
type AnsibleRunList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AnsibleRun `json:"items"` }
AnsibleRunList is a collection of AnsibleRun.
func (*AnsibleRunList) DeepCopy ¶
func (in *AnsibleRunList) DeepCopy() *AnsibleRunList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnsibleRunList.
func (*AnsibleRunList) DeepCopyInto ¶
func (in *AnsibleRunList) DeepCopyInto(out *AnsibleRunList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AnsibleRunList) DeepCopyObject ¶
func (in *AnsibleRunList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AnsibleRunList) GetItems ¶
func (l *AnsibleRunList) GetItems() []resource.Managed
GetItems of this AnsibleRunList.
type AnsibleRunObservation ¶
type AnsibleRunObservation struct { }
AnsibleRunObservation are the observable fields of a AnsibleRun.
func (*AnsibleRunObservation) DeepCopy ¶
func (in *AnsibleRunObservation) DeepCopy() *AnsibleRunObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnsibleRunObservation.
func (*AnsibleRunObservation) DeepCopyInto ¶
func (in *AnsibleRunObservation) DeepCopyInto(out *AnsibleRunObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AnsibleRunParameters ¶
type AnsibleRunParameters struct { // The inline inventory of this AnsibleRun; the content of inventory file may be written inline. // +optional InventoryInline *string `json:"inventoryInline"` // The Inventories of this AnsibleRun. // +optional Inventories []Inventory `json:"inventories"` // This sets the Inventory to executable for use by ansible.builtin.script plugin // +kubebuilder:default=false // +optional ExecutableInventory bool `json:"executableInventory"` // The inline configuration of this AnsibleRun; the content of a simple playbook.yml file may be written inline. // This field is mutually exclusive with the “roles” field. // +optional PlaybookInline *string `json:"playbookInline"` // The remote configuration of this AnsibleRun; the content can be retrieved from Ansible Galaxy as community contents // This field is mutually exclusive with the “Playbooks” and/or "PlaybookInline" fields. // +optional Roles []Role `json:"roles"` // Configuration variables. // +kubebuilder:pruning:PreserveUnknownFields // +optional Vars runtime.RawExtension `json:"vars,omitempty"` }
AnsibleRunParameters are the configurable fields of a AnsibleRun.
func (*AnsibleRunParameters) DeepCopy ¶
func (in *AnsibleRunParameters) DeepCopy() *AnsibleRunParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnsibleRunParameters.
func (*AnsibleRunParameters) DeepCopyInto ¶
func (in *AnsibleRunParameters) DeepCopyInto(out *AnsibleRunParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AnsibleRunSpec ¶
type AnsibleRunSpec struct { xpv1.ResourceSpec `json:",inline"` ForProvider AnsibleRunParameters `json:"forProvider"` }
A AnsibleRunSpec defines the desired state of a AnsibleRun.
func (*AnsibleRunSpec) DeepCopy ¶
func (in *AnsibleRunSpec) DeepCopy() *AnsibleRunSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnsibleRunSpec.
func (*AnsibleRunSpec) DeepCopyInto ¶
func (in *AnsibleRunSpec) DeepCopyInto(out *AnsibleRunSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AnsibleRunStatus ¶
type AnsibleRunStatus struct { xpv1.ResourceStatus `json:",inline"` AtProvider AnsibleRunObservation `json:"atProvider,omitempty"` }
A AnsibleRunStatus represents the observed state of a AnsibleRun.
func (*AnsibleRunStatus) DeepCopy ¶
func (in *AnsibleRunStatus) DeepCopy() *AnsibleRunStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnsibleRunStatus.
func (*AnsibleRunStatus) DeepCopyInto ¶
func (in *AnsibleRunStatus) DeepCopyInto(out *AnsibleRunStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Inventory ¶ added in v0.4.0
type Inventory struct { // Source of the inventory. // +kubebuilder:validation:Enum=None;Secret;InjectedIdentity;Environment;Filesystem Source xpv1.CredentialsSource `json:"source"` xpv1.CommonCredentialSelectors `json:",inline"` }
Inventory required to configure ansible inventory.
func (*Inventory) DeepCopy ¶ added in v0.4.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Inventory.
func (*Inventory) DeepCopyInto ¶ added in v0.4.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderConfig ¶
type ProviderConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ProviderConfigSpec `json:"spec"` Status ProviderConfigStatus `json:"status,omitempty"` }
A ProviderConfig configures an Asnible provider. +kubebuilder:subresource:status +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:printcolumn:name="SECRET-NAME",type="string",JSONPath=".spec.credentials.secretRef.name",priority=1 +kubebuilder:resource:scope=Cluster
func (*ProviderConfig) DeepCopy ¶
func (in *ProviderConfig) DeepCopy() *ProviderConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderConfig.
func (*ProviderConfig) DeepCopyInto ¶
func (in *ProviderConfig) DeepCopyInto(out *ProviderConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderConfig) DeepCopyObject ¶
func (in *ProviderConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ProviderConfig) GetCondition ¶
func (p *ProviderConfig) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this ProviderConfig.
func (*ProviderConfig) GetUsers ¶
func (p *ProviderConfig) GetUsers() int64
GetUsers of this ProviderConfig.
func (*ProviderConfig) SetConditions ¶
func (p *ProviderConfig) SetConditions(c ...xpv1.Condition)
SetConditions of this ProviderConfig.
func (*ProviderConfig) SetUsers ¶
func (p *ProviderConfig) SetUsers(i int64)
SetUsers of this ProviderConfig.
type ProviderConfigList ¶
type ProviderConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ProviderConfig `json:"items"` }
ProviderConfigList contains a list of ProviderConfig.
func (*ProviderConfigList) DeepCopy ¶
func (in *ProviderConfigList) DeepCopy() *ProviderConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderConfigList.
func (*ProviderConfigList) DeepCopyInto ¶
func (in *ProviderConfigList) DeepCopyInto(out *ProviderConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderConfigList) DeepCopyObject ¶
func (in *ProviderConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProviderConfigSpec ¶
type ProviderConfigSpec struct { // Credentials are required to authenticate to private remote(s). // +optional Credentials []ProviderCredentials `json:"credentials"` // Requirements manage the necessary dependencies to run ansible collection. // It is expressed as inline yaml. // TODO support fetching Roles // +optional Requirements *string `json:"requirements,omitempty"` // Vars are used to customize the provider default behavior. // +optional Vars []Var `json:"vars,omitempty"` }
A ProviderConfigSpec defines the desired state of a ProviderConfig.
func (*ProviderConfigSpec) DeepCopy ¶
func (in *ProviderConfigSpec) DeepCopy() *ProviderConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderConfigSpec.
func (*ProviderConfigSpec) DeepCopyInto ¶
func (in *ProviderConfigSpec) DeepCopyInto(out *ProviderConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderConfigStatus ¶
type ProviderConfigStatus struct {
xpv1.ProviderConfigStatus `json:",inline"`
}
A ProviderConfigStatus reflects the observed state of a ProviderConfig.
func (*ProviderConfigStatus) DeepCopy ¶
func (in *ProviderConfigStatus) DeepCopy() *ProviderConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderConfigStatus.
func (*ProviderConfigStatus) DeepCopyInto ¶
func (in *ProviderConfigStatus) DeepCopyInto(out *ProviderConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderConfigUsage ¶
type ProviderConfigUsage struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` xpv1.ProviderConfigUsage `json:",inline"` }
A ProviderConfigUsage indicates that a resource is using a ProviderConfig. +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:printcolumn:name="CONFIG-NAME",type="string",JSONPath=".providerConfigRef.name" +kubebuilder:printcolumn:name="RESOURCE-KIND",type="string",JSONPath=".resourceRef.kind" +kubebuilder:printcolumn:name="RESOURCE-NAME",type="string",JSONPath=".resourceRef.name" +kubebuilder:resource:scope=Cluster
func (*ProviderConfigUsage) DeepCopy ¶
func (in *ProviderConfigUsage) DeepCopy() *ProviderConfigUsage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderConfigUsage.
func (*ProviderConfigUsage) DeepCopyInto ¶
func (in *ProviderConfigUsage) DeepCopyInto(out *ProviderConfigUsage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderConfigUsage) DeepCopyObject ¶
func (in *ProviderConfigUsage) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ProviderConfigUsage) GetProviderConfigReference ¶
func (p *ProviderConfigUsage) GetProviderConfigReference() xpv1.Reference
GetProviderConfigReference of this ProviderConfigUsage.
func (*ProviderConfigUsage) GetResourceReference ¶
func (p *ProviderConfigUsage) GetResourceReference() xpv1.TypedReference
GetResourceReference of this ProviderConfigUsage.
func (*ProviderConfigUsage) SetProviderConfigReference ¶
func (p *ProviderConfigUsage) SetProviderConfigReference(r xpv1.Reference)
SetProviderConfigReference of this ProviderConfigUsage.
func (*ProviderConfigUsage) SetResourceReference ¶
func (p *ProviderConfigUsage) SetResourceReference(r xpv1.TypedReference)
SetResourceReference of this ProviderConfigUsage.
type ProviderConfigUsageList ¶
type ProviderConfigUsageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ProviderConfigUsage `json:"items"` }
ProviderConfigUsageList contains a list of ProviderConfigUsage
func (*ProviderConfigUsageList) DeepCopy ¶
func (in *ProviderConfigUsageList) DeepCopy() *ProviderConfigUsageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderConfigUsageList.
func (*ProviderConfigUsageList) DeepCopyInto ¶
func (in *ProviderConfigUsageList) DeepCopyInto(out *ProviderConfigUsageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderConfigUsageList) DeepCopyObject ¶
func (in *ProviderConfigUsageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ProviderConfigUsageList) GetItems ¶
func (p *ProviderConfigUsageList) GetItems() []resource.ProviderConfigUsage
GetItems of this ProviderConfigUsageList.
type ProviderCredentials ¶
type ProviderCredentials struct { // Filename to which these provider credentials // should be written. Filename string `json:"filename"` // Source of the provider credentials. // +kubebuilder:validation:Enum=None;Secret;InjectedIdentity;Environment;Filesystem Source xpv1.CredentialsSource `json:"source"` xpv1.CommonCredentialSelectors `json:",inline"` }
ProviderCredentials required to authenticate.
func (*ProviderCredentials) DeepCopy ¶
func (in *ProviderCredentials) DeepCopy() *ProviderCredentials
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderCredentials.
func (*ProviderCredentials) DeepCopyInto ¶
func (in *ProviderCredentials) DeepCopyInto(out *ProviderCredentials)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Role ¶
type Role struct { Name string `json:"name"` Src string `json:"src"` // +optional Version string `json:"version,omitempty"` }
Role is definition of Ansible content role
func (*Role) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Role.
func (*Role) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.