Skip to content

Commit

Permalink
chore: added support for annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
alekc committed Feb 5, 2024
1 parent ea1ca53 commit 9c446f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

| Name | Version |
|------|---------|
| <a name="provider_kubectl"></a> [kubectl](#provider\_kubectl) | 2.0.0 |
| <a name="provider_kubectl"></a> [kubectl](#provider\_kubectl) | >= 2.0.0 |

## Modules

Expand All @@ -26,6 +26,7 @@ No modules.

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_annotations"></a> [annotations](#input\_annotations) | Annotations for argocd Application | `map(string)` | `{}` | no |
| <a name="input_app_source"></a> [app\_source](#input\_app\_source) | Type of application source (helm, git) | `string` | `"helm"` | no |
| <a name="input_apply_out_of_sync_only"></a> [apply\_out\_of\_sync\_only](#input\_apply\_out\_of\_sync\_only) | Currently when syncing using auto sync Argo CD applies every object in the application. Turning on selective sync option which will sync only out-of-sync resources. | `bool` | `false` | no |
| <a name="input_argocd_namespace"></a> [argocd\_namespace](#input\_argocd\_namespace) | The name of the target ArgoCD Namespace | `string` | `"argocd"` | no |
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ locals {
namespace = var.argocd_namespace
labels = local.labels
finalizers = var.cascade_delete == true ? ["resources-finalizer.argocd.argoproj.io"] : []
annotations = var.annotations
}
spec = {
project = var.project
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,8 @@ variable "skip_crd" {
default = false
description = "If set to true, it will skip the deployment of crd entities from the helm chart"
}
variable "annotations" {
type = map(string)
description = "Annotations for argocd Application"
default = {}
}

0 comments on commit 9c446f1

Please sign in to comment.