Skip to content

Commit

Permalink
Merge pull request #15 from leancodepl/argocd-recurse-config
Browse files Browse the repository at this point in the history
Allow config for directory recurse
  • Loading branch information
konowrockis authored Jan 12, 2024
2 parents 20e0ea3 + 24012ad commit 83f63cb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions argocd_app/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ resource "argocd_application" "app" {
repo_url = var.repository.url
target_revision = var.repository.revision
path = var.repository.path

directory {
recurse = var.directory_recurse
}
}

destination {
Expand Down
3 changes: 2 additions & 1 deletion argocd_app/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

| Name | Version |
|------|---------|
| <a name="provider_argocd"></a> [argocd](#provider\_argocd) | 5.5.0 |
| <a name="provider_argocd"></a> [argocd](#provider\_argocd) | ~> 5.5 |

## Resources

Expand All @@ -25,6 +25,7 @@
| <a name="input_app_name"></a> [app\_name](#input\_app\_name) | n/a | `string` | n/a | yes |
| <a name="input_argocd_namespace"></a> [argocd\_namespace](#input\_argocd\_namespace) | n/a | `string` | `"argocd"` | no |
| <a name="input_cluster"></a> [cluster](#input\_cluster) | n/a | <pre>object({<br> url = string<br> namespace = string<br> })</pre> | n/a | yes |
| <a name="input_directory_recurse"></a> [directory\_recurse](#input\_directory\_recurse) | n/a | `bool` | `false` | no |
| <a name="input_enable_auto_sync"></a> [enable\_auto\_sync](#input\_enable\_auto\_sync) | n/a | `bool` | n/a | yes |
| <a name="input_project_name"></a> [project\_name](#input\_project\_name) | n/a | `string` | n/a | yes |
| <a name="input_repository"></a> [repository](#input\_repository) | n/a | <pre>object({<br> url = string,<br> revision = string,<br> path = string,<br> })</pre> | n/a | yes |
Expand Down
5 changes: 5 additions & 0 deletions argocd_app/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ variable "cluster" {
namespace = string
})
}

variable "directory_recurse" {
type = bool
default = false
}

0 comments on commit 83f63cb

Please sign in to comment.