Skip to content

Commit 8150c75

Browse files
committed
Update docs for kube_config generation when kubeconfig-generate-token=false
1 parent 8756981 commit 8150c75

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

docs/resources/cluster.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,8 @@ The following attributes are exported:
620620
* `ca_cert` - (Computed/Sensitive) K8s cluster ca cert (string)
621621
* `system_project_id` - (Computed) System project ID for the cluster (string)
622622

623+
**Note** For Rancher 2.6.0 and above: if setting `kubeconfig-generate-token=false` then the generated `kube_config` will not contain any user token. `kubectl` will generate the user token executing the [rancher cli](https://github.com/rancher/cli/releases/tag/v2.6.0), so it should be installed previously.
624+
623625
## Nested blocks
624626

625627
### `agent_env_vars`

docs/resources/cluster_sync.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ The following attributes are exported:
103103
* `nodes` - (Computed) The cluster nodes (list).
104104
* `system_project_id` - (Computed) System project ID for the cluster sync (string)
105105

106+
**Note** For Rancher 2.6.0 and above: if setting `kubeconfig-generate-token=false` then the generated `kube_config` will not contain any user token. `kubectl` will generate the user token executing the [rancher cli](https://github.com/rancher/cli/releases/tag/v2.6.0), so it should be installed previously.
107+
106108
## Nested blocks
107109

108110
### `nodes`

docs/resources/cluster_v2.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ The following attributes are exported:
234234
* `cluster_v1_id` - (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2_sync`) (string)
235235
* `resource_version` - (Computed) Cluster v2 k8s resource version (string)
236236

237+
**Note** For Rancher 2.6.0 and above: if setting `kubeconfig-generate-token=false` then the generated `kube_config` will not contain any user token. `kubectl` will generate the user token executing the [rancher cli](https://github.com/rancher/cli/releases/tag/v2.6.0), so it should be installed previously.
238+
237239
## Nested blocks
238240

239241
### `agent_env_vars`

0 commit comments

Comments
 (0)