-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. |