You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,13 @@ Check out these related projects.
29
29
## Examples
30
30
31
31
See [Basic example](examples/basic/README.md) for further information.
32
+
33
+
## Potential issues with running terraform plan
34
+
35
+
When deploying with ArgoCD application, Kubernetes terraform provider requires access to Kubernetes cluster API during plan time. This introduces potential issue when you want to deploy the cluster with this addon at the same time, during the same Terraform run.
36
+
37
+
To overcome this issue, the module deploys the ArgoCD application object using the Helm provider, which does not require API access during plan. If you want to deploy the application using this workaround, you can set the `argo_application_use_helm` variable to `true`.
38
+
32
39
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
|[aws_iam_policy_document.cluster_autoscaler](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
56
64
|[aws_iam_policy_document.cluster_autoscaler_assume](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document)| data source |
57
65
|[aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region)| data source |
66
+
|[utils_deep_merge_yaml.argo_application_values](https://registry.terraform.io/providers/cloudposse/utils/latest/docs/data-sources/deep_merge_yaml)| data source |
58
67
|[utils_deep_merge_yaml.values](https://registry.terraform.io/providers/cloudposse/utils/latest/docs/data-sources/deep_merge_yaml)| data source |
59
68
60
69
## Inputs
@@ -65,6 +74,8 @@ No modules.
65
74
| <aname="input_cluster_identity_oidc_issuer_arn"></a> [cluster\_identity\_oidc\_issuer\_arn](#input\_cluster\_identity\_oidc\_issuer\_arn)| The OIDC Identity issuer ARN for the cluster that can be used to associate IAM roles with a service account |`string`| n/a | yes |
66
75
| <aname="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name)| The name of the cluster |`string`| n/a | yes |
67
76
| <aname="input_argo_application_enabled"></a> [argo\_application\_enabled](#input\_argo\_application\_enabled)| If set to true, the module will be deployed as ArgoCD application, otherwise it will be deployed as a Helm release |`bool`|`false`| no |
77
+
| <aname="input_argo_application_use_helm"></a> [argo\_application\_use\_helm](#input\_argo\_application\_use\_helm)| If set to true, the ArgoCD Application manifest will be deployed using Kubernetes provider as a Helm release. Otherwise it'll be deployed as a Kubernetes manifest. See Readme for more info |`bool`|`false`| no |
78
+
| <aname="input_argo_application_values"></a> [argo\_application\_values](#input\_argo\_application\_values)| Value overrides to use when deploying argo application object with helm |`string`|`""`| no |
68
79
| <aname="input_argo_destionation_server"></a> [argo\_destionation\_server](#input\_argo\_destionation\_server)| Destination server for ArgoCD Application |`string`|`"https://kubernetes.default.svc"`| no |
69
80
| <aname="input_argo_info"></a> [argo\_info](#input\_argo\_info)| ArgoCD info manifest parameter |`list`| <pre>[<br> {<br> "name": "terraform",<br> "value": "true"<br> }<br>]</pre> | no |
70
81
| <aname="input_argo_namespace"></a> [argo\_namespace](#input\_argo\_namespace)| Namespace to deploy ArgoCD application CRD to |`string`|`"argo"`| no |
Copy file name to clipboardExpand all lines: variables.tf
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -95,13 +95,23 @@ variable "argo_namespace" {
95
95
description="Namespace to deploy ArgoCD application CRD to"
96
96
}
97
97
98
-
99
98
variable"argo_application_enabled" {
100
99
type=bool
101
100
default=false
102
101
description="If set to true, the module will be deployed as ArgoCD application, otherwise it will be deployed as a Helm release"
103
102
}
104
103
104
+
variable"argo_application_use_helm" {
105
+
type=bool
106
+
default=false
107
+
description="If set to true, the ArgoCD Application manifest will be deployed using Kubernetes provider as a Helm release. Otherwise it'll be deployed as a Kubernetes manifest. See Readme for more info"
108
+
}
109
+
110
+
variable"argo_application_values" {
111
+
default=""
112
+
description="Value overrides to use when deploying argo application object with helm"
0 commit comments