Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the terraform v1beta1 API group +kubebuilder:object:generate=true +groupName=terraform.core.oam.dev
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "terraform.core.oam.dev", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Backend ¶ added in v0.1.3
type Backend struct { // SecretSuffix used when creating secrets. Secrets will be named in the format: tfstate-{workspace}-{secretSuffix} SecretSuffix string `json:"secretSuffix,omitempty"` // InClusterConfig Used to authenticate to the cluster from inside a pod. Only `true` is allowed InClusterConfig bool `json:"inClusterConfig,omitempty"` }
Backend stores the state in a Kubernetes secret with locking done using a Lease resource.
func (*Backend) DeepCopy ¶ added in v0.1.3
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backend.
func (*Backend) DeepCopyInto ¶ added in v0.1.3
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Configuration ¶
type Configuration struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ConfigurationSpec `json:"spec,omitempty"` Status ConfigurationStatus `json:"status,omitempty"` }
Configuration is the Schema for the configurations API +kubebuilder:subresource:status +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".status.apply.state" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
func (*Configuration) DeepCopy ¶
func (in *Configuration) DeepCopy() *Configuration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.
func (*Configuration) DeepCopyInto ¶
func (in *Configuration) DeepCopyInto(out *Configuration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Configuration) DeepCopyObject ¶
func (in *Configuration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigurationApplyStatus ¶ added in v0.1.18
type ConfigurationApplyStatus struct { State state.ConfigurationState `json:"state,omitempty"` Message string `json:"message,omitempty"` Outputs map[string]Property `json:"outputs,omitempty"` }
ConfigurationApplyStatus is the status for Configuration apply
func (*ConfigurationApplyStatus) DeepCopy ¶ added in v0.1.18
func (in *ConfigurationApplyStatus) DeepCopy() *ConfigurationApplyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationApplyStatus.
func (*ConfigurationApplyStatus) DeepCopyInto ¶ added in v0.1.18
func (in *ConfigurationApplyStatus) DeepCopyInto(out *ConfigurationApplyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigurationDestroyStatus ¶ added in v0.1.18
type ConfigurationDestroyStatus struct { State state.ConfigurationState `json:"state,omitempty"` Message string `json:"message,omitempty"` }
ConfigurationDestroyStatus is the status for Configuration destroy
func (*ConfigurationDestroyStatus) DeepCopy ¶ added in v0.1.18
func (in *ConfigurationDestroyStatus) DeepCopy() *ConfigurationDestroyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationDestroyStatus.
func (*ConfigurationDestroyStatus) DeepCopyInto ¶ added in v0.1.18
func (in *ConfigurationDestroyStatus) DeepCopyInto(out *ConfigurationDestroyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigurationList ¶
type ConfigurationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Configuration `json:"items"` }
ConfigurationList contains a list of Configuration
func (*ConfigurationList) DeepCopy ¶
func (in *ConfigurationList) DeepCopy() *ConfigurationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationList.
func (*ConfigurationList) DeepCopyInto ¶
func (in *ConfigurationList) DeepCopyInto(out *ConfigurationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigurationList) DeepCopyObject ¶
func (in *ConfigurationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigurationSpec ¶
type ConfigurationSpec struct { // JSON is the Terraform JSON syntax configuration JSON string `json:"JSON,omitempty"` // HCL is the Terraform HCL type configuration HCL string `json:"hcl,omitempty"` // Remote is a git repo which contains hcl files. Currently, only public git repos are supported. Remote string `json:"remote,omitempty"` // +kubebuilder:pruning:PreserveUnknownFields Variable *runtime.RawExtension `json:"variable,omitempty"` // Backend stores the state in a Kubernetes secret with locking done using a Lease resource. // TODO(zzxwill) If a backend exists in HCL/JSON, this can be optional. Currently, if Backend is not set by users, it // still will set by the controller, ignoring the settings in HCL/JSON backend Backend *Backend `json:"backend,omitempty"` // WriteConnectionSecretToReference specifies the namespace and name of a // Secret to which any connection details for this managed resource should // be written. Connection details frequently include the endpoint, username, // and password required to connect to the managed resource. // +optional WriteConnectionSecretToReference *types.SecretReference `json:"writeConnectionSecretToRef,omitempty"` // ProviderReference specifies the reference to Provider ProviderReference *types.Reference `json:"providerRef,omitempty"` }
ConfigurationSpec defines the desired state of Configuration
func (*ConfigurationSpec) DeepCopy ¶
func (in *ConfigurationSpec) DeepCopy() *ConfigurationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationSpec.
func (*ConfigurationSpec) DeepCopyInto ¶
func (in *ConfigurationSpec) DeepCopyInto(out *ConfigurationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigurationStatus ¶
type ConfigurationStatus struct { Apply ConfigurationApplyStatus `json:"apply,omitempty"` Destroy ConfigurationDestroyStatus `json:"destroy,omitempty"` }
ConfigurationStatus defines the observed state of Configuration
func (*ConfigurationStatus) DeepCopy ¶
func (in *ConfigurationStatus) DeepCopy() *ConfigurationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationStatus.
func (*ConfigurationStatus) DeepCopyInto ¶
func (in *ConfigurationStatus) DeepCopyInto(out *ConfigurationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Property ¶
Property is the property for an output
func (*Property) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Property.
func (*Property) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Provider ¶
type Provider struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ProviderSpec `json:"spec,omitempty"` Status ProviderStatus `json:"status,omitempty"` }
Provider is the Schema for the providers API.
func (*Provider) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Provider.
func (*Provider) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Provider) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProviderCredentials ¶
type ProviderCredentials struct { // Source of the provider credentials. // +kubebuilder:validation:Enum=None;Secret;InjectedIdentity;Environment;Filesystem Source crossplanetypes.CredentialsSource `json:"source"` // A SecretRef is a reference to a secret key that contains the credentials // that must be used to connect to the provider. // +optional SecretRef *crossplanetypes.SecretKeySelector `json:"secretRef,omitempty"` }
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 ProviderList ¶
type ProviderList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Provider `json:"items"` }
ProviderList contains a list of Provider.
func (*ProviderList) DeepCopy ¶
func (in *ProviderList) DeepCopy() *ProviderList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderList.
func (*ProviderList) DeepCopyInto ¶
func (in *ProviderList) DeepCopyInto(out *ProviderList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderList) DeepCopyObject ¶
func (in *ProviderList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProviderSpec ¶
type ProviderSpec struct { // Provider is the cloud service provider, like `alibaba` Provider string `json:"provider"` // Region is cloud provider's region Region string `json:"region,omitempty"` // Credentials required to authenticate to this provider. Credentials ProviderCredentials `json:"credentials"` }
ProviderSpec defines the desired state of Provider.
func (*ProviderSpec) DeepCopy ¶
func (in *ProviderSpec) DeepCopy() *ProviderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderSpec.
func (*ProviderSpec) DeepCopyInto ¶
func (in *ProviderSpec) DeepCopyInto(out *ProviderSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderStatus ¶
type ProviderStatus struct { State types.ProviderState `json:"state,omitempty"` Message string `json:"message,omitempty"` }
ProviderStatus defines the observed state of Provider.
func (*ProviderStatus) DeepCopy ¶
func (in *ProviderStatus) DeepCopy() *ProviderStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderStatus.
func (*ProviderStatus) DeepCopyInto ¶
func (in *ProviderStatus) DeepCopyInto(out *ProviderStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.