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: docs/data-sources/application.md
+30-27Lines changed: 30 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ data "argocd_application" "foo" {
22
22
```
23
23
24
24
<!-- schema generated by tfplugindocs -->
25
+
25
26
## Schema
26
27
27
28
### Required
@@ -35,6 +36,7 @@ data "argocd_application" "foo" {
35
36
-`status` (Attributes) Status information for the application. (see [below for nested schema](#nestedatt--status))
36
37
37
38
<aid="nestedatt--metadata"></a>
39
+
38
40
### Nested Schema for `metadata`
39
41
40
42
Required:
@@ -53,8 +55,8 @@ Read-Only:
53
55
-`resource_version` (String) An opaque value that represents the internal version of this applications.argoproj.io that can be used by clients to determine when applications.argoproj.io has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
54
56
-`uid` (String) The unique in time and space value for this applications.argoproj.io. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
55
57
56
-
57
58
<aid="nestedatt--spec"></a>
59
+
58
60
### Nested Schema for `spec`
59
61
60
62
Read-Only:
@@ -68,6 +70,7 @@ Read-Only:
68
70
-`sync_policy` (Attributes) Controls when and how a sync will be performed. (see [below for nested schema](#nestedatt--spec--sync_policy))
69
71
70
72
<aid="nestedatt--spec--destination"></a>
73
+
71
74
### Nested Schema for `spec.destination`
72
75
73
76
Read-Only:
@@ -76,8 +79,8 @@ Read-Only:
76
79
-`namespace` (String) Target namespace for the application's resources. The namespace will only be set for namespace-scoped resources that have not set a value for .metadata.namespace.
77
80
-`server` (String) URL of the target cluster and must be set to the Kubernetes control plane API.
78
81
79
-
80
82
<aid="nestedatt--spec--ignore_differences"></a>
83
+
81
84
### Nested Schema for `spec.ignore_differences`
82
85
83
86
Read-Only:
@@ -89,17 +92,17 @@ Read-Only:
89
92
-`name` (String) The Kubernetes resource Name to match for.
90
93
-`namespace` (String) The Kubernetes resource Namespace to match for.
91
94
92
-
93
95
<aid="nestedatt--spec--infos"></a>
96
+
94
97
### Nested Schema for `spec.infos`
95
98
96
99
Read-Only:
97
100
98
101
-`name` (String) Name of the information.
99
102
-`value` (String) Value of the information.
100
103
101
-
102
104
<aid="nestedatt--spec--sources"></a>
105
+
103
106
### Nested Schema for `spec.sources`
104
107
105
108
Read-Only:
@@ -115,6 +118,7 @@ Read-Only:
115
118
-`target_revision` (String) Revision of the source to sync the application to. In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version.
116
119
117
120
<aid="nestedatt--spec--sources--directory"></a>
121
+
118
122
### Nested Schema for `spec.sources.directory`
119
123
120
124
Read-Only:
@@ -125,6 +129,7 @@ Read-Only:
125
129
-`recurse` (Boolean) Whether to scan a directory recursively for manifests.
### Nested Schema for `spec.sources.helm.parameters`
183
188
184
189
Read-Only:
@@ -187,9 +192,8 @@ Read-Only:
187
192
-`name` (String) Name of the Helm parameters.
188
193
-`value` (String) Value of the Helm parameters.
189
194
190
-
191
-
192
195
<aid="nestedatt--spec--sources--kustomize"></a>
196
+
193
197
### Nested Schema for `spec.sources.kustomize`
194
198
195
199
Read-Only:
@@ -201,8 +205,8 @@ Read-Only:
201
205
-`name_suffix` (String) Suffix appended to resources for Kustomize apps.
202
206
-`version` (String) Version of Kustomize to use for rendering manifests.
203
207
204
-
205
208
<aid="nestedatt--spec--sources--plugin"></a>
209
+
206
210
### Nested Schema for `spec.sources.plugin`
207
211
208
212
Read-Only:
@@ -212,15 +216,16 @@ Read-Only:
212
216
-`parameters` (Attributes List) Parameters to supply to config management plugin. (see [below for nested schema](#nestedatt--spec--sources--plugin--parameters))
213
217
214
218
<aid="nestedatt--spec--sources--plugin--env"></a>
219
+
215
220
### Nested Schema for `spec.sources.plugin.env`
216
221
217
222
Read-Only:
218
223
219
224
-`name` (String) Name of the environment variable.
220
225
-`value` (String) Value of the environment variable.
### Nested Schema for `spec.sync_policy.retry.backoff`
265
270
266
271
Read-Only:
@@ -269,11 +274,8 @@ Read-Only:
269
274
-`factor` (Number) Factor to multiply the base duration after each failed retry.
270
275
-`max_duration` (String) Maximum amount of time allowed for the backoff strategy. Default unit is seconds, but could also be a duration (e.g. `2m`, `1h`), as a string.
271
276
272
-
273
-
274
-
275
-
276
277
<aid="nestedatt--status"></a>
278
+
277
279
### Nested Schema for `status`
278
280
279
281
Read-Only:
@@ -287,6 +289,7 @@ Read-Only:
287
289
-`sync` (Attributes) Application's current sync status (see [below for nested schema](#nestedatt--status--sync))
288
290
289
291
<aid="nestedatt--status--conditions"></a>
292
+
290
293
### Nested Schema for `status.conditions`
291
294
292
295
Read-Only:
@@ -295,17 +298,17 @@ Read-Only:
295
298
-`message` (String) Human-readable message indicating details about condition.
296
299
-`type` (String) Application condition type.
297
300
298
-
299
301
<aid="nestedatt--status--health"></a>
302
+
300
303
### Nested Schema for `status.health`
301
304
302
305
Read-Only:
303
306
304
307
-`message` (String) Human-readable informational message describing the health status.
305
308
-`status` (String) Status code of the application or resource.
306
309
307
-
308
310
<aid="nestedatt--status--operation_state"></a>
311
+
309
312
### Nested Schema for `status.operation_state`
310
313
311
314
Read-Only:
@@ -316,8 +319,8 @@ Read-Only:
316
319
-`retry_count` (Number) Count of operation retries.
317
320
-`started_at` (String) Time of operation start.
318
321
319
-
320
322
<aid="nestedatt--status--resources"></a>
323
+
321
324
### Nested Schema for `status.resources`
322
325
323
326
Read-Only:
@@ -334,25 +337,25 @@ Read-Only:
334
337
-`version` (String) The Kubernetes resource Version.
335
338
336
339
<aid="nestedatt--status--resources--health"></a>
340
+
337
341
### Nested Schema for `status.resources.health`
338
342
339
343
Read-Only:
340
344
341
345
-`message` (String) Human-readable informational message describing the health status.
342
346
-`status` (String) Status code of the application or resource.
343
347
344
-
345
-
346
348
<aid="nestedatt--status--summary"></a>
349
+
347
350
### Nested Schema for `status.summary`
348
351
349
352
Read-Only:
350
353
351
354
-`external_urls` (List of String) All external URLs of application child resources.
352
355
-`images` (List of String) All images of application child resources.
The ArgoCD Provider provides lifecycle management of [ArgoCD](https://argo-cd.readthedocs.io/en/stable/) resources.
11
10
12
-
**NB**: The provider is not concerned with the installation/configuration of
13
-
ArgoCD itself. To make use of the provider, you will need to have an existing
14
-
ArgoCD installation.
11
+
**NB**: The provider is not concerned with the installation/configuration of ArgoCD itself. To make use of the provider, you will need to have an existing ArgoCD installation.
15
12
16
-
The correct provider configuration largely depends on whether or not your
17
-
ArgoCD API server is exposed or not.
13
+
The correct provider configuration largely depends on whether or not your ArgoCD API server is exposed or not.
18
14
19
15
If your ArgoCD API server is exposed, then:
20
-
- use `server_addr` along with a `username`/`password` or `auth_token`.
21
-
- use `use_local_config` if you have (pre)authenticated via the ArgoCD CLI (E.g.
22
-
via SSO using `argocd login --sso`.
23
-
24
-
If you have not exposed your ArgoCD API server or have not deployed the API
see below for options. **Note**: in both these cases, you need sufficient access
28
-
to the Kubernetes API to perform any actions.
29
-
- use `port_forward_with_namespace` and optionally `kubernetes` configuration
30
-
(to temporarily expose the ArgoCD API server using port forwarding) along with
31
-
a `username`/`password` or `auth_token`.
32
-
- if you use port-forwarding and your argo-cd-server is running on plain HTTP you need to add the flag `plain_text = true` to the provider configuration as well
33
-
- use `core` to run a local ArgoCD API server that communicates directly with
34
-
the Kubernetes API. **NB**: When using `core`, take note of the warning in
35
-
the docs below.
36
-
37
-
If you are struggling to determine the correct configuration for the provider or
38
-
the provider is behaving strangely and failing to connect for whatever reason,
39
-
then we would suggest that you first figure out what combination of parameters
40
-
work to log in using the ArgoCD CLI (`argocd login`) and then set the provider
41
-
configuration to match what you used in the CLI. See also the ArgoCD [Getting
- use `server_addr` along with a `username`/`password` or `auth_token`.
17
+
- use `use_local_config` if you have (pre)authenticated via the ArgoCD CLI (E.g. via SSO using `argocd login --sso`.
18
+
19
+
If you have not exposed your ArgoCD API server or have not deployed the API server ([ArgoCD core](https://argo-cd.readthedocs.io/en/stable/operator-manual/installation/#core)), see below for options. **Note**: in both these cases, you need sufficient access to the Kubernetes API to perform any actions.
20
+
- use `port_forward_with_namespace` and optionally `kubernetes` configuration (to temporarily expose the ArgoCD API server using port forwarding) along with a `username`/`password` or `auth_token`.
21
+
- if you use port-forwarding and your argo-cd-server is running on plain HTTP you need to add the flag `plain_text = true` to the provider configuration as well
22
+
- use `core` to run a local ArgoCD API server that communicates directly with the Kubernetes API. **NB**: When using `core`, take note of the warning in the docs below.
23
+
24
+
If you are struggling to determine the correct configuration for the provider or the provider is behaving strangely and failing to connect for whatever reason, then we would suggest that you first figure out what combination of parameters work to log in using the ArgoCD CLI (`argocd login`) and then set the provider configuration to match what you used in the CLI. See also the ArgoCD [Getting Started](https://argo-cd.readthedocs.io/en/stable/getting_started/#3-access-the-argo-cd-api-server) docs.
44
25
45
26
## Example Usage
46
27
@@ -91,6 +72,7 @@ provider "argocd" {
91
72
```
92
73
93
74
<!-- schema generated by tfplugindocs -->
75
+
94
76
## Schema
95
77
96
78
### Optional
@@ -106,14 +88,15 @@ provider "argocd" {
106
88
**Warning**: this feature works by starting a local ArgoCD API server that talks directly to the Kubernetes API using the **current context in the default kubeconfig** (`~/.kube/config`). This behavior cannot be overridden using either environment variables or the `kubernetes` block in the provider configuration at present).
107
89
108
90
If the server fails to start (e.g. your kubeconfig is misconfigured) then the provider will fail as a result of the `argocd` module forcing it to exit and no logs will be available to help you debug this. The error message will be similar to
91
+
109
92
> `The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.`
110
93
111
94
To debug this, you will need to login via the ArgoCD CLI using `argocd login --core` and then running an operation. E.g. `argocd app list`.
112
95
-`grpc_web` (Boolean) Whether to use gRPC web proxy client. Useful if Argo CD server is behind proxy which does not support HTTP2.
113
96
-`grpc_web_root_path` (String) Use the gRPC web proxy client and set the web root, e.g. `argo-cd`. Useful if the Argo CD server is behind a proxy at a non-root path.
114
97
-`headers` (Set of String) Additional headers to add to each request to the ArgoCD server.
115
98
-`insecure` (Boolean) Whether to skip TLS server certificate. Can be set through the `ARGOCD_INSECURE` environment variable.
116
-
-`kubernetes` (Block List, Max: 1) Kubernetes configuration overrides. Only relevant when `port_forward = true` or `port_forward_with_namespace = "foo"`. The kubeconfig file that is used can be overridden using the [`KUBECONFIG` environment variable](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#the-kubeconfig-environment-variable)). (see [below for nested schema](#nestedblock--kubernetes))
99
+
-`kubernetes` (Block List, Max: 1) Kubernetes configuration overrides. Only relevant when `port_forward = true` or `port_forward_with_namespace = "foo"`. The kubeconfig file that is used can be overridden using the [`KUBECONFIG` environment variable](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#the-kubeconfig-environment-variable)). (see [below for nested schema](#nestedblock--kubernetes))
117
100
-`password` (String, Sensitive) Authentication password. Can be set through the `ARGOCD_AUTH_PASSWORD` environment variable.
118
101
-`plain_text` (Boolean) Whether to initiate an unencrypted connection to ArgoCD server.
119
102
-`port_forward` (Boolean) Connect to a random argocd-server port using port forwarding.
@@ -124,6 +107,7 @@ provider "argocd" {
124
107
-`username` (String) Authentication username. Can be set through the `ARGOCD_AUTH_USERNAME` environment variable.
125
108
126
109
<aid="nestedblock--kubernetes"></a>
110
+
127
111
### Nested Schema for `kubernetes`
128
112
129
113
Optional:
@@ -142,6 +126,7 @@ Optional:
142
126
-`username` (String) The username to use for HTTP basic authentication when accessing the Kubernetes API. Can be sourced from `KUBE_USER`.
143
127
144
128
<aid="nestedblock--kubernetes--exec"></a>
129
+
145
130
### Nested Schema for `kubernetes.exec`
146
131
147
132
Required:
@@ -152,4 +137,4 @@ Required:
152
137
Optional:
153
138
154
139
-`args` (List of String) Map of environment variables to set when executing the plugin.
155
-
-`env` (Map of String) List of arguments to pass when executing the plugin.
140
+
-`env` (Map of String) List of arguments to pass when executing the plugin.
0 commit comments