-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(provider): improve overview and add examples for common provider…
… configuration
- Loading branch information
1 parent
da6b1d6
commit b3f5340
Showing
3 changed files
with
134 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,42 @@ | ||
# Exposed ArgoCD API - authenticated using authentication token. | ||
provider "argocd" { | ||
server_addr = "argocd.local:443" | ||
auth_token = "1234..." | ||
} | ||
|
||
# Exposed ArgoCD API - authenticated using `username`/`password` | ||
provider "argocd" { | ||
server_addr = "argocd.local:443" | ||
username = "foo" | ||
password = local.password | ||
} | ||
|
||
# Exposed ArgoCD API - (pre)authenticated using local ArgoCD config (e.g. when | ||
# you have previously logged in using SSO). | ||
provider "argocd" { | ||
use_local_config = true | ||
# context = "foo" # Use explicit context from ArgoCD config instead of `current-context`. | ||
} | ||
|
||
# Unexposed ArgoCD API - using port-forwarding to temporarily expose ArgoCD API | ||
# and authenticating using `auth_token`. | ||
provider "argocd" { | ||
auth_token = "1234..." | ||
port_forward = true | ||
} | ||
|
||
# Unexposed ArgoCD API - using port-forwarding to temporarily expose ArgoCD API | ||
# whilst overriding the current context in kubeconfig. | ||
provider "argocd" { | ||
auth_token = "1234..." | ||
port_forward_with_namespace = "custom-argocd-namespace" | ||
kubernetes { | ||
config_context = "kind-argocd" | ||
} | ||
} | ||
|
||
# Unexposed ArgoCD API - using `core` to run ArgoCD server locally and | ||
# communicate directly with the Kubernetes API. | ||
provider "argocd" { | ||
core = true | ||
} |
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