From 9c43e2d2e904dbdbed9831ed37d1d8f0f97b7882 Mon Sep 17 00:00:00 2001 From: MrLuje Date: Tue, 12 Apr 2022 12:52:18 +0200 Subject: [PATCH] docs: more examples for ca_data argocd_cluster.tls_client_config (#162) --- docs/resources/cluster.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/resources/cluster.md b/docs/resources/cluster.md index 6244f3a9..701c2d59 100644 --- a/docs/resources/cluster.md +++ b/docs/resources/cluster.md @@ -12,7 +12,10 @@ resource "argocd_cluster" "kubernetes" { bearer_token = "eyJhbGciOiJSUzI..." tls_client_config { - ca_data = base64encode(file("path/to/ca.pem")) + ca_data = file("path/to/ca.pem") + // ca_data = "-----BEGIN CERTIFICATE-----\nfoo\nbar\n-----END CERTIFICATE-----" + // ca_data = base64decode("LS0tLS1CRUdJTiBDRVJUSUZ...") + // insecure = true } }