* Implement kubeconfig resource * Update acc test, skip get credentials * Update acc test * Add warning on Create * Add option to refresh * Fix lint * Add comment, generate docs * Update stackit/internal/services/ske/cluster/resource.go Co-authored-by: João Palet <joao.palet@outlook.com> * Update stackit/internal/services/ske/kubeconfig/resource.go Co-authored-by: João Palet <joao.palet@outlook.com> * Changes after review * Fix schema * Gen docs * Rename * Credentials handling in datasource, update acc test * Fix datasource * Update descriptions --------- Co-authored-by: João Palet <joao.palet@outlook.com>
33 lines
1.2 KiB
Markdown
33 lines
1.2 KiB
Markdown
---
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
|
page_title: "stackit_ske_kubeconfig Resource - stackit"
|
|
subcategory: ""
|
|
description: |-
|
|
SKE kubeconfig resource schema. Must have a region specified in the provider configuration.
|
|
---
|
|
|
|
# stackit_ske_kubeconfig (Resource)
|
|
|
|
SKE kubeconfig resource schema. Must have a `region` specified in the provider configuration.
|
|
|
|
|
|
|
|
<!-- schema generated by tfplugindocs -->
|
|
## Schema
|
|
|
|
### Required
|
|
|
|
- `cluster_name` (String) Name of the SKE cluster.
|
|
- `project_id` (String) STACKIT project ID to which the cluster is associated.
|
|
|
|
### Optional
|
|
|
|
- `expiration` (Number) Expiration time of the kubeconfig, in seconds.
|
|
- `refresh` (Boolean) If set to true, the provider will check if the kubeconfig has expired and will generated a new valid one in-place
|
|
|
|
### Read-Only
|
|
|
|
- `expires_at` (String) Timestamp when the kubeconfig expires
|
|
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`cluster_name`,`kube_config_id`".
|
|
- `kube_config` (String, Sensitive) Raw short-lived admin kubeconfig.
|
|
- `kube_config_id` (String) Internally generated UUID to identify a kubeconfig resource in Terraform, since the SKE API doesnt return a kubeconfig identifier
|