Skip to content

Commit

Permalink
document imports (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
oboukili committed Oct 13, 2020
1 parent 0b6ede0 commit c918490
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/resources/application.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,10 @@ The `plugin` block has the following attributes:
Each `plugin/env` block has the following attributes:
* `name` - (Optional) string.
* `value` - (Optional) string.

## Import

ArgoCD applications can be imported using an id consisting of `{name}`, e.g.
```
$ terraform import argocd_application.myapp myapp
```
7 changes: 7 additions & 0 deletions docs/resources/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,10 @@ Each `sync_window` block can have the following attributes:
* `manual_sync` - (Optional) Boolean, enables manual syncs when they would otherwise be blocked.
* `namespaces` - (Optional) List of namespaces that the window will apply to.
* `schedule` - (Optional) Time the window will begin, specified in cron format.

## Import

ArgoCD projects can be imported using an id consisting of `{name}`, e.g.
```
$ terraform import argocd_project.myproject myproject
```
9 changes: 9 additions & 0 deletions docs/resources/repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,12 @@ resource "argocd_repository" "private" {

* `connection_state_status` - string, repository connection state status.
* `inherited_creds` - boolean, whether credentials wre inherited fron a credential set.

## Import

ArgoCD repositories can be imported using an id consisting of `{repo}`, e.g.
```
$ terraform import argocd_repository.myrepo [email protected]:somerepo.git
```

**NOTE**: as ArgoCD API does not return any sensitive information, a subsequent _terraform apply_ should be executed to make the password, ssh_private_key and tls_client_cert_key attributes converge to their expected values defined within the plan.
9 changes: 9 additions & 0 deletions docs/resources/repository_credentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,12 @@ resource "argocd_repository" "private" {
* `ssh_private_key` - (Optional), string, SSH private key data to authenticate against the repository server. **Only for Git repositories**.
* `tls_client_cert_data` - (Optional), TLS client cert data to authenticate against the repository server.
* `tls_client_cert_key` - (Optional), TLS client cert key to authenticate against the repository server.

## Import

ArgoCD repository credentials can be imported using an id consisting of `{url}`, e.g.
```
$ terraform import argocd_repository_credentials.myrepocreds [email protected]:somerepo.git
```

**NOTE**: as ArgoCD API does not return any sensitive information, a subsequent _terraform apply_ should be executed to make the password, ssh_private_key and tls_client_cert_key attributes converge to their expected values defined within the plan.

0 comments on commit c918490

Please sign in to comment.