Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data-source/alicloud_cs_managed_kubernetes_clusters: deprecated kubeconfig attribute; data-source/alicloud_cs_kubernetes_clusters: deprecated kubeconfig attribute; data-source/alicloud_cs_serverless_kubernetes_clusters: deprecated kubeconfig attribute; docs: deprecated kubeconfig attribute #8350

Merged
merged 1 commit into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions alicloud/data_source_alicloud_cs_kubernetes_clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func dataSourceAlicloudCSKubernetesClusters() *schema.Resource {
"kube_config_file_prefix": {
Type: schema.TypeString,
Optional: true,
Deprecated: "Field 'kube_config_file_prefix' has been deprecated from provider version 1.243.0. From version 1.243.0, please use the attribute 'output_file' of new DataSource 'alicloud_cs_cluster_credential' to replace it.",
},
// Computed values
"names": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func dataSourceAlicloudCSManagerKubernetesClusters() *schema.Resource {
"kube_config_file_prefix": {
Type: schema.TypeString,
Optional: true,
Deprecated: "Field 'kube_config_file_prefix' has been deprecated from provider version 1.243.0. From version 1.243.0, please use the attribute 'output_file' of new DataSource 'alicloud_cs_cluster_credential' to replace it.",
},
// Computed values
"names": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func dataSourceAlicloudCSServerlessKubernetesClusters() *schema.Resource {
"kube_config_file_prefix": {
Type: schema.TypeString,
Optional: true,
Deprecated: "Field 'kube_config_file_prefix' has been deprecated from provider version 1.243.0. From version 1.243.0, please use the attribute 'output_file' of new DataSource 'alicloud_cs_cluster_credential' to replace it.",
},
// Computed values
"names": {
Expand Down
4 changes: 2 additions & 2 deletions website/docs/d/cs_kubernetes_clusters.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: |-

This data source provides a list Container Service Kubernetes Clusters on Alibaba Cloud.

-> **NOTE:** Available since v1.34.0+.
-> **NOTE:** Available since v1.34.0.

-> **NOTE:** From version 1.177.0+, We supported batch export of clusters' kube config information by `kube_config_file_prefix`.

Expand All @@ -38,7 +38,7 @@ The following arguments are supported:
* `name_regex` - (Optional) A regex string to filter results by cluster name.
* `output_file` - (Optional) File name where to save data source results (after running `terraform plan`).
* `enable_details` - (Optional) Boolean, false by default, only `id` and `name` are exported. Set to true if more details are needed, e.g., `master_disk_category`, `slb_internet_enabled`, `connections`. See full list in attributes.
* `kube_config_file_prefix` - (Optional, Available in 1.177.0+) The path prefix of kube config. You could store kube config in a specified directory by specifying this field, like `~/.kube/k8s`, then it will be named with `~/.kube/k8s-clusterID-kubeconfig`. From version 1.187.0+, kube_config will not export kube_config if this field is not set.
* `kube_config_file_prefix` - (Optional, Deprecated from v1.243.0) The path prefix of kube config. You could store kube config in a specified directory by specifying this field, like `~/.kube/k8s`, then it will be named with `~/.kube/k8s-clusterID-kubeconfig`. From version 1.243.0, kube_config will not export kube_config if this field is not set. Please use the attribute [output_file](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/data-sources/cs_cluster_credential#output_file) of new DataSource `alicloud_cs_cluster_credential` to replace it.

## Attributes Reference

Expand Down
6 changes: 3 additions & 3 deletions website/docs/d/cs_managed_kubernetes_clusters.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ description: |-

This data source provides a list Container Service Managed Kubernetes Clusters on Alibaba Cloud.

-> **NOTE:** Available in v1.35.0+
-> **NOTE:** Available since v1.35.0

-> **NOTE:** From version 1.177.0+, We supported batch export of clusters' kube config information by `kube_config_file_prefix`.

## Example Usage

```
```terraform
# Declare the data source
data "alicloud_cs_managed_kubernetes_clusters" "k8s_clusters" {
name_regex = "my-first-k8s"
Expand All @@ -38,7 +38,7 @@ The following arguments are supported:
* `name_regex` - (Optional) A regex string to filter results by cluster name.
* `output_file` - (Optional) File name where to save data source results (after running `terraform plan`).
* `enable_details` - (Optional) Boolean, false by default, only `id` and `name` are exported. Set to true if more details are needed, e.g., `master_disk_category`, `slb_internet_enabled`, `connections`. See full list in attributes.
* `kube_config_file_prefix` - (Optional, Available in 1.177.0+) The path prefix of kube config. You could store kube config in a specified directory by specifying this field, like `~/.kube/managed`, then it will be named with `~/.kube/managed-clusterID-kubeconfig`. From version 1.187.0+, kube_config will not export kube_config if this field is not set.
* `kube_config_file_prefix` - (Optional, Deprecated from v1.243.0) The path prefix of kube config. You could store kube config in a specified directory by specifying this field, like `~/.kube/managed`, then it will be named with `~/.kube/managed-clusterID-kubeconfig`. From version 1.243.0, kube_config will not export kube_config if this field is not set. Please use the attribute [output_file](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/data-sources/cs_cluster_credential#output_file) of new DataSource `alicloud_cs_cluster_credential` to replace it

## Attributes Reference

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ description: |-

This data source provides a list Container Service Serverless Kubernetes Clusters on Alibaba Cloud.

-> **NOTE:** Available in 1.58.0+
-> **NOTE:** Available since 1.58.0

-> **NOTE:** From version 1.177.0+, We supported batch export of clusters' kube config information by `kube_config_file_prefix`.

## Example Usage

```
```terraform
# Declare the data source
data "alicloud_cs_serverless_kubernetes_clusters" "k8s_clusters" {
name_regex = "my-first-k8s"
Expand All @@ -38,8 +38,7 @@ The following arguments are supported:
* `name_regex` - (Optional) A regex string to filter results by cluster name.
* `output_file` - (Optional) File name where to save data source results (after running `terraform plan`).
* `enable_details` - (Optional) Boolean, false by default, only `id` and `name` are exported. Set to true if more details are needed, e.g., `deletion_protection`, `connections`. See full list in attributes.
* `kube_config_file_prefix` - (Optional, Available in 1.177.0+) The path prefix of kube config. You could store kube config in a specified directory by specifying this field, like `~/.kube/serverless`, then it will be named with `~/.kube/serverless-clusterID-kubeconfig`. From version 1.187.0+, kube_config will not export kube_config if this field is not set.

* `kube_config_file_prefix` - (Optional, Deprecated from v1.243.0) The path prefix of kube config. You could store kube config in a specified directory by specifying this field, like `~/.kube/serverless`, then it will be named with `~/.kube/serverless-clusterID-kubeconfig`. From version 1.243.0, kube_config will not export kube_config if this field is not set. Please use the attribute [output_file](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/data-sources/cs_cluster_credential#output_file) of new DataSource `alicloud_cs_cluster_credential` to replace it
## Attributes Reference

The following attributes are exported in addition to the arguments listed above:
Expand Down
Loading