Skip to content

Commit 8b09ce7

Browse files
committed
feat: update the documentation example with the new simplest way to output a kubeconfig file
1 parent 48bb88f commit 8b09ce7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/docs/r/cloud_project_kube.html.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ resource "ovh_cloud_project_kube" "mycluster" {
2727
region = "GRA7"
2828
}
2929
30-
resource "local_file" "kubeconfig" {
31-
content = ovh_cloud_project_kube.mycluster.kubeconfig
32-
filename = "mycluster.yml"
30+
output "kubeconfig_file" {
31+
value = ovh_cloud_project_kube.mycluster.kubeconfig
32+
sensitive = true
3333
}
3434
```
3535

0 commit comments

Comments
 (0)