Skip to content

Commit

Permalink
docs: updates for image, k8s_cluster, volume
Browse files Browse the repository at this point in the history
  • Loading branch information
Florin Mihalache committed May 21, 2021
1 parent 838b972 commit 1be49f6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/data-sources/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -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].

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/k8s_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/k8s_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions docs/resources/volume.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
4 changes: 2 additions & 2 deletions ionoscloud/data_source_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions ionoscloud/data_source_k8s_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1be49f6

Please sign in to comment.