-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): update documentation for tfrun
- Loading branch information
1 parent
20ca3cb
commit 4d70a9d
Showing
11 changed files
with
88 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,9 @@ Dockerfile.cross | |
*.swp | ||
*.swo | ||
*~ | ||
|
||
# Python virtual environment (for mkdocs) | ||
.env | ||
.venv | ||
env/ | ||
venv/ |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,34 @@ | ||
# Choose a remediation strategy | ||
|
||
Currently, 2 remediation strategies are handled. | ||
|
||
| Strategy | Effect | | ||
| :---------: | :-----------------------------------------------------------------: | | ||
| `dry` | The operator will only run the `plan`. This is the default strategy | | ||
| `autoApply` | If a `plan` is not up to date, it will run an `apply` | | ||
The remediation strategy is the way to tell Burrito how it should handle the remediation of drifts on your Terraform layers. | ||
|
||
As for the [runner spec override](./override-runner.md), you can specify a `spec.remediationStrategy` either on the `TerraformRepository` or the `TerraformLayer`. | ||
|
||
The configuration of the `TerraformLayer` will take precedence. | ||
|
||
## `spec.remediationStrategy` API reference | ||
|
||
| Field | Type | Default | Effect | | ||
| :------------------: | :-----: | :-------------------------------------------: | :-----------------------------------------------------------------------: | | ||
| `autoApply` | Boolean | `false` | If `true` when a `plan` shows drift, it will run an `apply`. | | ||
| `onError.maxRetries` | Integer | `5` or value defined in Burrito configuration | How many times Burrito should retry a `plan`/`apply` when a runner fails. | | ||
|
||
!!! warning | ||
This operator is still experimental. Use `spec.remediationStrategy: "autoApply"` at your own risk. | ||
This operator is still experimental. Use `spec.remediationStrategy.autoApply: true` at your own risk. | ||
|
||
## Example | ||
|
||
With this example configuration, Burrito will create `apply` runs for this layer, with a maximum of 3 retries. | ||
|
||
```yaml | ||
apiVersion: config.terraform.padok.cloud/v1alpha1 | ||
kind: TerraformLayer | ||
metadata: | ||
name: random-pets-terragrunt | ||
spec: | ||
remediationStrategy: | ||
autoApply: true | ||
onError: | ||
maxRetries: 3 | ||
# ... snipped ... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters