Terraform API reference
Packages:
infra.contrib.fluxcd.io/v1alpha1
Resource Types:
BackendConfigSpec
(Appears on: TerraformSpec)
BackendConfigSpec is for specifying configuration for Terraform’s Kubernetes backend
| Field | Description |
|---|---|
disablebool |
(Optional)
Disable is to completely disable the backend configuration. |
secretSuffixstring |
(Optional) |
inClusterConfigbool |
(Optional) |
configPathstring |
(Optional) |
labelsmap[string]string |
(Optional) |
CrossNamespaceSourceReference
(Appears on: TerraformSpec)
CrossNamespaceSourceReference contains enough information to let you locate the typed Kubernetes resource object at cluster level.
| Field | Description |
|---|---|
apiVersionstring |
(Optional)
API version of the referent. |
kindstring |
Kind of the referent. |
namestring |
Name of the referent. |
namespacestring |
(Optional)
Namespace of the referent, defaults to the namespace of the Kubernetes resource object that contains the reference. |
HealthCheck
(Appears on: TerraformSpec)
HealthCheck contains configuration needed to perform a health check after terraform is applied.
| Field | Description |
|---|---|
namestring |
Name of the health check. |
typestring |
Type of the health check, valid values are (‘tcp’, ‘http’). If tcp is specified, address is required. If http is specified, url is required. |
urlstring |
(Optional)
URL to perform http health check on. Required when http type is specified. Go template can be used to reference values from the terraform output (e.g. https://example.org, {{.output_url}}). |
addressstring |
(Optional)
Address to perform tcp health check on. Required when tcp type is specified. Go template can be used to reference values from the terraform output (e.g. 127.0.0.1:8080, {{.address}}:{{.port}}). |
timeoutKubernetes meta/v1.Duration |
(Optional)
The timeout period at which the connection should timeout if unable to complete the request. When not specified, default 20s timeout is used. |
PlanStatus
(Appears on: TerraformStatus)
| Field | Description |
|---|---|
lastAppliedstring |
(Optional) |
pendingstring |
(Optional) |
isDestroyPlanbool |
(Optional) |
isDriftDetectionPlanbool |
(Optional) |
Terraform
Terraform is the Schema for the terraforms API
| Field | Description | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
metadataKubernetes meta/v1.ObjectMeta |
Refer to the Kubernetes API documentation for the fields of the
metadata field.
|
||||||||||||||||||||||||||||||||||||||
specTerraformSpec |
|
||||||||||||||||||||||||||||||||||||||
statusTerraformStatus |
TerraformSpec
(Appears on: Terraform)
TerraformSpec defines the desired state of Terraform
| Field | Description |
|---|---|
approvePlanstring |
(Optional)
ApprovePlan specifies name of a plan wanted to approve. If its value is “auto”, the controller will automatically approve every plan. |
destroybool |
(Optional)
Destroy produces a destroy plan. Applying the plan will destroy all resources. |
backendConfigBackendConfigSpec |
(Optional) |
vars[]Variable |
(Optional)
List of input variables to set for the Terraform program. |
varsFrom[]VarsReference |
(Optional)
List of references to a Secret or a ConfigMap to generate variables for Terraform resources based on its data, selectively by varsKey. Values of the later Secret / ConfigMap with the samek keys will override those of the former. |
intervalKubernetes meta/v1.Duration |
The interval at which to reconcile the Terraform. |
retryIntervalKubernetes meta/v1.Duration |
(Optional)
The interval at which to retry a previously failed reconciliation. When not specified, the controller uses the TerraformSpec.Interval value to retry failures. |
pathstring |
(Optional)
Path to the directory containing Terraform (.tf) files. Defaults to ‘None’, which translates to the root path of the SourceRef. |
sourceRefCrossNamespaceSourceReference |
SourceRef is the reference of the source where the Terraform files are stored. |
suspendbool |
(Optional)
Suspend is to tell the controller to suspend subsequent TF executions, it does not apply to already started executions. Defaults to false. |
forcebool |
(Optional)
Force instructs the controller to unconditionally re-plan and re-apply TF resources. Defaults to false. |
writeOutputsToSecretWriteOutputsToSecretSpec |
(Optional)
A list of target secrets for the outputs to be written as. |
disableDriftDetectionbool |
(Optional)
Disable automatic drift detection. Drift detection may be resource intensive in the context of a large cluster or complex Terraform statefile. Defaults to false. |
cliConfigSecretRefKubernetes core/v1.SecretReference |
(Optional) |
healthChecks[]HealthCheck |
(Optional)
List of health checks to be performed. |
destroyResourcesOnDeletionbool |
(Optional)
Create destroy plan and apply it to destroy terraform resources upon deletion of this object. Defaults to false. |
serviceAccountNamestring |
(Optional)
Name of a ServiceAccount for the runner Pod to provision Terraform resources. Default to tf-runner. |
alwaysCleanupRunnerPodbool |
(Optional)
Clean the runner pod up after each reconciliation cycle |
runnerTerminationGracePeriodSecondsint64 |
(Optional)
Configure the termination grace period for the runner pod. Use this parameter to allow the Terraform process to gracefully shutdown. Consider increasing for large, complex or slow-moving Terraform managed resources. |
TerraformStatus
(Appears on: Terraform)
TerraformStatus defines the observed state of Terraform
| Field | Description |
|---|---|
ReconcileRequestStatusgithub.com/fluxcd/pkg/apis/meta.ReconcileRequestStatus |
(Members of |
observedGenerationint64 |
(Optional)
ObservedGeneration is the last reconciled generation. |
conditions[]Kubernetes meta/v1.Condition |
(Optional) |
lastAppliedRevisionstring |
(Optional)
The last successfully applied revision.
The revision format for Git sources is |
lastAttemptedRevisionstring |
(Optional)
LastAttemptedRevision is the revision of the last reconciliation attempt. |
lastPlannedRevisionstring |
(Optional)
LastPlannedRevision is the revision used by the last planning process. The result could be either no plan change or a new plan generated. |
lastDriftDetectedAtKubernetes meta/v1.Time |
(Optional)
LastDriftDetectedAt is the time when the last drift was detected |
lastAppliedByDriftDetectionAtKubernetes meta/v1.Time |
(Optional)
LastAppliedByDriftDetectionAt is the time when the last drift was detected and terraform apply was performed as a result |
availableOutputs[]string |
(Optional) |
planPlanStatus |
(Optional) |
Variable
(Appears on: TerraformSpec)
| Field | Description |
|---|---|
namestring |
Name is the name of the variable |
valueKubernetes pkg/apis/apiextensions/v1.JSON |
(Optional) |
valueFromKubernetes core/v1.EnvVarSource |
(Optional) |
VarsReference
(Appears on: TerraformSpec)
VarsReference contain a reference of a Secret or a ConfigMap to generate variables for Terraform resources based on its data, selectively by varsKey.
| Field | Description |
|---|---|
kindstring |
Kind of the values referent, valid values are (‘Secret’, ‘ConfigMap’). |
namestring |
Name of the values referent. Should reside in the same namespace as the referring resource. |
varsKeys[]string |
(Optional)
VarsKeys is the data key where the values.yaml or a specific value can be found at. Defaults to all keys. |
optionalbool |
(Optional)
Optional marks this VarsReference as optional. When set, a not found error for the values reference is ignored, but any VarsKey or transient error will still result in a reconciliation failure. |
WriteOutputsToSecretSpec
(Appears on: TerraformSpec)
WriteOutputsToSecretSpec defines where to store outputs, and which outputs to be stored.
| Field | Description |
|---|---|
namestring |
Name is the name of the Secret to be written |
outputs[]string |
(Optional)
Outputs contain the selected names of outputs to be written to the secret. Empty array means writing all outputs, which is default. |
This page was automatically generated with gen-crd-api-reference-docs