Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrojnm committed Jun 16, 2021
2 parents 077e3d7 + 740b968 commit e41d0b0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion civo/resource_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ func resourceKubernetesCluster() *schema.Resource {
Optional: true,
Description: "a comma separated list of applications to install." +
"Spaces within application names are fine, but shouldn't be either side of the comma." +
"If you want to remove a default installed application, prefix it with a '-', e.g. -traefik.",
"Application names are case-sensitive; the available applications can be listed with the civo CLI:" +
"'civo kubernetes applications ls'." +
"If you want to remove a default installed application, prefix it with a '-', e.g. -Traefik.",
},
// Computed resource
"instances": instanceSchema(),
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ The following attributes are exported:
* `cpu_cores` - Total cpu of the inatance.
* `ram_mb` - Total ram of the instance.
* `disk_gb` - The size of the disk.
* `public_ip_requiered` - This should be either false, true or `move_ip_from:intances_id`.
* `public_ip_requiered` - This should be either `create`, `none` or `move_ip_from:intances_id`.
* `network_id` - This will be the ID of the network.
* `template` - The ID for the template to used to build the instance.
* `initial_user` - The name of the initial user created on the server.
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/instances.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ data "civo_instances" "small-with-backups" {
* `cpu_cores` - Total cpu of the inatance.
* `ram_mb` - Total ram of the instance.
* `disk_gb` - The size of the disk.
* `public_ip_requiered` - This should be either false, true or `move_ip_from:intances_id`.
* `public_ip_requiered` - This should be either `create`, `none` or `move_ip_from:intances_id`.
* `network_id` - This will be the ID of the network.
* `template` - The ID for the template to used to build the instance.
* `initial_user` - The name of the initial user created on the server.
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The following arguments are supported:
* `hostname` - (Required) The Instance hostname.
* `reverse_dns` - (Optional) A fully qualified domain name that should be used as the instance's IP's reverse DNS (optional, uses the hostname if unspecified).
* `size` - (Optional) The name of the size, from the current list, e.g. g3.k3s.small (required).
* `public_ip_required` - (Optional) This should be either false, true or `move_ip_from:intances_id`.
* `public_ip_required` - (Optional) This should be either `create`, `none` or `move_ip_from:intances_id`.
* `network_id` - (Optional) This must be the ID of the network from the network listing (optional; default network used when not specified).
* `template` - (Optional) The ID for the template to use to build the instance.
* `initial_user` - (Optional) The name of the initial user created on the server (optional; this will default to the template's default_username and fallback to civo).
Expand All @@ -63,7 +63,7 @@ The following attributes are exported:
* `cpu_cores` - Total cpu of the inatance.
* `ram_mb` - Total ram of the instance.
* `disk_gb` - The size of the disk.
* `public_ip_requiered` - This should be either false, true or `move_ip_from:intances_id`.
* `public_ip_requiered` - This should be either `create`, `none` or `move_ip_from:intances_id`.
* `network_id` - This will be the ID of the network.
* `template` - The ID for the template to used to build the instance.
* `initial_user` - The name of the initial user created on the server.
Expand Down
6 changes: 3 additions & 3 deletions docs/resources/kubernetes_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Provides a Civo Kubernetes cluster resource. This can be used to create, delete,
resource "civo_kubernetes_cluster" "my-cluster" {
name = "my-cluster"
applications = "Portainer, Traefik"
applications = "Portainer,Traefik"
num_target_nodes = 4
target_nodes_size = element(data.civo_instances_size.small.sizes, 0).name
}
Expand All @@ -31,7 +31,7 @@ The cluster's kubeconfig is exported as an attribute allowing you to use it with
resource "civo_kubernetes_cluster" "my-cluster" {
name = "my-cluster"
region = "NYC1"
applications = "Portainer, Traefik"
applications = "Portainer,Traefik"
num_target_nodes = 4
target_nodes_size = element(data.civo_instances_size.small.sizes, 0).name
}
Expand All @@ -57,7 +57,7 @@ The following arguments are supported:
* `target_nodes_size` - (Optional) The size of each node (The default is currently g3.k3s.small)
* `kubernetes_version` - (Optional) The version of k3s to install (The default is currently the latest available).
* `tags` - (Optional) A space separated list of tags, to be used freely as required.
* `applications` - (Optional) A comma separated list of applications to install. Spaces within application names are fine, but shouldn't be either side of the comma. If you want to remove a default installed application, prefix it with a '-', e.g. -traefik
* `applications` - (Optional) A comma separated list of applications to install. Spaces within application names are fine, but shouldn't be either side of the comma. Application names are case-sensitive; the available applications can be listed with the civo CLI: 'civo kubernetes applications ls'. If you want to remove a default installed application, prefix it with a '-', e.g. -Traefik

## Attributes Reference

Expand Down

0 comments on commit e41d0b0

Please sign in to comment.