diff --git a/docs/data-sources/image.md b/docs/data-sources/image.md index 76ba3c481..41159221f 100644 --- a/docs/data-sources/image.md +++ b/docs/data-sources/image.md @@ -27,6 +27,8 @@ data "ionoscloud_image" "image_example" { * `version` - (Optional) Version of the image (see details below). * `location` - (Optional) Id of the existing image's location. * `type` - (Optional) The image type, HDD or CD-ROM. + * `image_aliases` - Image aliases + * `cloud_init` - Cloud init compatibility ("NONE" or "V1") If both "name" and "version" are provided the plugin will concatenate the two strings in this format [name]-[version]. diff --git a/docs/data-sources/k8s_cluster.md b/docs/data-sources/k8s_cluster.md index 4f1749640..7806b7051 100644 --- a/docs/data-sources/k8s_cluster.md +++ b/docs/data-sources/k8s_cluster.md @@ -22,7 +22,7 @@ data "ionoscloud_k8s_cluster" "k8s_cluster_example" { * `name` - (Optional) Name or an existing cluster that you want to search for. * `id` - (Optional) ID of the cluster you want to search for. - +k Either `name` or `id` must be provided. If none, or both are provided, the datasource will return an error. ## Attributes Reference diff --git a/docs/resources/k8s_cluster.md b/docs/resources/k8s_cluster.md index 7aa00a9eb..5b7343d72 100644 --- a/docs/resources/k8s_cluster.md +++ b/docs/resources/k8s_cluster.md @@ -30,6 +30,8 @@ The following arguments are supported: - `name` - (Required)[string] The name of the Kubernetes Cluster. - `k8s_version` - (Optional)[string] The desired Kubernetes Version. For supported values, please check the API documentation. - `maintenance_window` - (Optional) See the **maintenance_window** section in the example above +- `public` - The indicator if the cluster is public or private. Be aware that setting it to false is currently in beta phase. +- `gateway_ip` - The IP address of the gateway used by the cluster. This is mandatory when `public` is set to `false` and should not be provided otherwise. ## Import diff --git a/docs/resources/volume.md b/docs/resources/volume.md index fe0c86ef7..600f1035b 100644 --- a/docs/resources/volume.md +++ b/docs/resources/volume.md @@ -40,3 +40,5 @@ resource "ionoscloud_volume" "example" { * `licence_type` - [string] Required if `image_name` is not provided. * `name` - (Optional)[string] The name of the volume. * `availability_zone` - (Optional)[string] The storage availability zone assigned to the volume: AUTO, ZONE_1, ZONE_2, or ZONE_3. +* `user_data` - (Optional) The cloud-init configuration for the volume as base64 encoded string. The property is immutable and is only allowed to be set on a new volume creation. +This option will work only with cloud-init compatible images. diff --git a/ionoscloud/data_source_image.go b/ionoscloud/data_source_image.go index 2573f4f41..043a24b0b 100644 --- a/ionoscloud/data_source_image.go +++ b/ionoscloud/data_source_image.go @@ -87,14 +87,14 @@ func dataSourceImage() *schema.Resource { }, "image_aliases": { Type: schema.TypeList, - Optional: true, + Computed: true, Elem: &schema.Schema{ Type: schema.TypeString, }, }, "cloud_init": { Type: schema.TypeString, - Optional: true, + Computed: true, }, }, Timeouts: &resourceDefaultTimeouts, diff --git a/ionoscloud/data_source_k8s_cluster.go b/ionoscloud/data_source_k8s_cluster.go index d0a9950b2..cfe5fd79f 100644 --- a/ionoscloud/data_source_k8s_cluster.go +++ b/ionoscloud/data_source_k8s_cluster.go @@ -87,6 +87,7 @@ func dataSourceK8sCluster() *schema.Resource { Description: "The IP address of the gateway used by the cluster. This is mandatory when `public` is set " + "to `false` and should not be provided otherwise.", Optional: true, + Computed: true, }, }, Timeouts: &resourceDefaultTimeouts,