Skip to content

Commit

Permalink
PLT-682: Added Description for pack (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
SivaanandM authored Oct 11, 2023
1 parent 7c3ca4f commit b4b6eca
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docs/resources/addon_deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Required:

Optional:

- `pack` (Block List) (see [below for nested schema](#nestedblock--cluster_profile--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--cluster_profile--pack))

<a id="nestedblock--cluster_profile--pack"></a>
### Nested Schema for `cluster_profile.pack`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cluster_aks.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ Required:

Optional:

- `pack` (Block List) (see [below for nested schema](#nestedblock--cluster_profile--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--cluster_profile--pack))

<a id="nestedblock--cluster_profile--pack"></a>
### Nested Schema for `cluster_profile.pack`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cluster_aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ Required:

Optional:

- `pack` (Block List) (see [below for nested schema](#nestedblock--cluster_profile--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--cluster_profile--pack))

<a id="nestedblock--cluster_profile--pack"></a>
### Nested Schema for `cluster_profile.pack`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cluster_azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ Required:

Optional:

- `pack` (Block List) (see [below for nested schema](#nestedblock--cluster_profile--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--cluster_profile--pack))

<a id="nestedblock--cluster_profile--pack"></a>
### Nested Schema for `cluster_profile.pack`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cluster_coxedge.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Required:

Optional:

- `pack` (Block List) (see [below for nested schema](#nestedblock--cluster_profile--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--cluster_profile--pack))

<a id="nestedblock--cluster_profile--pack"></a>
### Nested Schema for `cluster_profile.pack`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cluster_edge_native.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Required:

Optional:

- `pack` (Block List) (see [below for nested schema](#nestedblock--cluster_profile--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--cluster_profile--pack))

<a id="nestedblock--cluster_profile--pack"></a>
### Nested Schema for `cluster_profile.pack`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cluster_edge_vsphere.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Required:

Optional:

- `pack` (Block List) (see [below for nested schema](#nestedblock--cluster_profile--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--cluster_profile--pack))

<a id="nestedblock--cluster_profile--pack"></a>
### Nested Schema for `cluster_profile.pack`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cluster_eks.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Required:

Optional:

- `pack` (Block List) (see [below for nested schema](#nestedblock--cluster_profile--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--cluster_profile--pack))

<a id="nestedblock--cluster_profile--pack"></a>
### Nested Schema for `cluster_profile.pack`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cluster_gcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Required:

Optional:

- `pack` (Block List) (see [below for nested schema](#nestedblock--cluster_profile--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--cluster_profile--pack))

<a id="nestedblock--cluster_profile--pack"></a>
### Nested Schema for `cluster_profile.pack`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cluster_import.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Required:

Optional:

- `pack` (Block List) (see [below for nested schema](#nestedblock--cluster_profile--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--cluster_profile--pack))

<a id="nestedblock--cluster_profile--pack"></a>
### Nested Schema for `cluster_profile.pack`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cluster_libvirt.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ Required:

Optional:

- `pack` (Block List) (see [below for nested schema](#nestedblock--cluster_profile--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--cluster_profile--pack))

<a id="nestedblock--cluster_profile--pack"></a>
### Nested Schema for `cluster_profile.pack`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cluster_maas.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Required:

Optional:

- `pack` (Block List) (see [below for nested schema](#nestedblock--cluster_profile--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--cluster_profile--pack))

<a id="nestedblock--cluster_profile--pack"></a>
### Nested Schema for `cluster_profile.pack`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cluster_openstack.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Required:

Optional:

- `pack` (Block List) (see [below for nested schema](#nestedblock--cluster_profile--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--cluster_profile--pack))

<a id="nestedblock--cluster_profile--pack"></a>
### Nested Schema for `cluster_profile.pack`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cluster_profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ resource "spectrocloud_cluster_profile" "profile" {
- `cloud` (String) Specify the infrastructure provider the cluster profile is for. Only Palette supported infrastructure providers can be used. The supported cloud types are - `all, aws, azure, gcp, vsphere, openstack, maas, nested, baremetal, eks, aks, edge, edge-native, libvirt, tencent, tke, coxedge, generic, and gke`,If the value is set to `all`, then the type must be set to `add-on`. Otherwise, the cluster profile may be incompatible with other providers. Default value is `all`.
- `context` (String) The context of the cluster profile. Allowed values are `project` or `tenant`. Default value is `project`.
- `description` (String)
- `pack` (Block List) (see [below for nested schema](#nestedblock--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--pack))
- `tags` (Set of String) A list of tags to be applied to the cluster. Tags must be in the form of `key:value`.
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
- `type` (String) Specify the cluster profile type to use. Allowed values are `cluster`, infra`, `add-on`, and `system`. These values map to the following User Interface (UI) labels. Use the value ' cluster ' for a **Full** cluster profile.For an Infrastructure cluster profile, use the value `infra`; for an Add-on cluster profile, use the value `add-on`.System cluster profiles can be specified using the value `system`. To learn more about cluster profiles, refer to the [Cluster Profile](https://docs.spectrocloud.com/cluster-profiles) documentation. Default value is `add-on`.
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cluster_tke.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Required:

Optional:

- `pack` (Block List) (see [below for nested schema](#nestedblock--cluster_profile--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--cluster_profile--pack))

<a id="nestedblock--cluster_profile--pack"></a>
### Nested Schema for `cluster_profile.pack`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cluster_vsphere.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Required:

Optional:

- `pack` (Block List) (see [below for nested schema](#nestedblock--cluster_profile--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--cluster_profile--pack))

<a id="nestedblock--cluster_profile--pack"></a>
### Nested Schema for `cluster_profile.pack`
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/virtual_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Required:

Optional:

- `pack` (Block List) (see [below for nested schema](#nestedblock--cluster_profile--pack))
- `pack` (Block List) For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified. (see [below for nested schema](#nestedblock--cluster_profile--pack))

<a id="nestedblock--cluster_profile--pack"></a>
### Nested Schema for `cluster_profile.pack`
Expand Down
5 changes: 3 additions & 2 deletions spectrocloud/schemas/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import (

func PackSchema() *schema.Schema {
return &schema.Schema{
Type: schema.TypeList,
Optional: true,
Type: schema.TypeList,
Optional: true,
Description: "For packs of type `spectro`, `helm`, and `manifest`, at least one pack must be specified.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"uid": {
Expand Down

0 comments on commit b4b6eca

Please sign in to comment.