Skip to content

Commit 6f88cb3

Browse files
feat: Add implementation for edge-node clustering lifecycle operations (zedcloud-956) (#140)
* feat/zedcloud-956: Add implementation for the edge-node cluster lifecycle operations. * feat/zedcloud-956: Generate documentation for the edge-node cluster lifecycle operations
1 parent 01e0a7d commit 6f88cb3

34 files changed

+15866
-6651
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
SWAGGER_FILE_LIST := zedge_node_service.swagger.json \
5+
zedge_node_cluster_service.swagger.json \
56
zedge_user_service.swagger.json \
67
zedge_storage_service.swagger.json \
78
zedge_job_service.swagger.json \

docs/data-sources/application.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ Required:
5252

5353
Optional:
5454

55-
- `app_type` (String) bundle type, eg: vm, container, module
55+
- `app_type` (String) App (bundle) type. The correct values are: "APP_TYPE_UNSPECIFIED","APP_TYPE_VM","APP_TYPE_VM_RUNTIME","APP_TYPE_CONTAINER","APP_TYPE_MODULE".
5656
- `configuration` (Block List) Template for Custom Configuration. Used for Cloud-Init (see [below for nested schema](#nestedblock--manifest--configuration))
5757
- `container_detail` (Block List) Create options direct the creation of the Docker container (see [below for nested schema](#nestedblock--manifest--container_detail))
5858
- `cpu_pinning_enabled` (Boolean) Enable CpuPinning
59-
- `deployment_type` (String) type of deployment for the app, eg: azure, k3s, standalone
59+
- `deployment_type` (String) Deployment type for the app. The correct values are: "DEPLOYMENT_TYPE_UNSPECIFIED","DEPLOYMENT_TYPE_STAND_ALONE","DEPLOYMENT_TYPE_AZURE","DEPLOYMENT_TYPE_K3S","DEPLOYMENT_TYPE_AWS","DEPLOYMENT_TYPE_K3S_AZURE","DEPLOYMENT_TYPE_K3S_AWS","DEPLOYMENT_TYPE_VMWARE_VCE".
6060
- `desc` (Block List) Description of the application (see [below for nested schema](#nestedblock--manifest--desc))
6161
- `description` (String) UI map: AppDetailsPage:IdentityPane:DescriptionField, AppMarketplacePage:AppCard:DescriptionField
6262
- `display_name` (String) UI map: AppEditPage:IdentityPane:Title_Field, AppDetailsPage:IdentityPane:Title_Field

docs/data-sources/credential.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Optional:
3939

4040
Read-Only:
4141

42-
- `id` (String)
42+
- `id` (String) The ID of this resource.
4343

4444

4545
<a id="nestedblock--next"></a>

docs/data-sources/edgenode_cluster.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "zedcloud_edgenode_cluster Data Source - terraform-provider-zedcloud"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# zedcloud_edgenode_cluster (Data Source)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `name` (String) User defined name of the cluster, unique across the enterprise. Once cluster is created, name can’t be changed
21+
- `nodes` (Block List, Min: 1) A list of nodes in the cluster (see [below for nested schema](#nestedblock--nodes))
22+
- `project_id` (String) Foreign key to the project
23+
24+
### Optional
25+
26+
- `cluster_prefix` (String) A cluster prefix. The default is: 10.244.244.2/28
27+
- `description` (String) Detailed description of the cluster
28+
- `tags` (Map of String) Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.
29+
- `title` (String) User defined title of the cluster. Title can be changed at any time
30+
31+
### Read-Only
32+
33+
- `id` (String) System defined universally unique Id of the cluster
34+
35+
<a id="nestedblock--nodes"></a>
36+
### Nested Schema for `nodes`
37+
38+
Required:
39+
40+
- `cluster_interface` (String) User defined name of the cluster interface, ex.: eth0, eth1, wlan0, etc.
41+
- `id` (String) Id of the node to be included in a cluster
42+
43+
Optional:
44+
45+
- `node_type` (String) Type of node. Currently it supports only: EDGE_NODE_CLUSTER_NODE_TYPE_SERVER
46+
- `resource_labels` (Map of String) Resource labels are name/value pairs that enable you to categorize resources. Label names are case insensitive with max_length 512 and min_length 3. Label values are case sensitive with max_length 256 and min_length 3.
47+
48+
Read-Only:
49+
50+
- `cluster_prefix` (String) A cluster prefix. The system will assign a value.

docs/data-sources/project.md

Lines changed: 3306 additions & 3306 deletions
Large diffs are not rendered by default.

docs/data-sources/user.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Optional:
5757

5858
Read-Only:
5959

60-
- `id` (String)
60+
- `id` (String) The ID of this resource.
6161

6262

6363
<a id="nestedatt--revision"></a>

docs/resources/application.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ Required:
5252

5353
Optional:
5454

55-
- `app_type` (String) bundle type, eg: vm, container, module
55+
- `app_type` (String) App (bundle) type. The correct values are: "APP_TYPE_UNSPECIFIED","APP_TYPE_VM","APP_TYPE_VM_RUNTIME","APP_TYPE_CONTAINER","APP_TYPE_MODULE".
5656
- `configuration` (Block List) Template for Custom Configuration. Used for Cloud-Init (see [below for nested schema](#nestedblock--manifest--configuration))
5757
- `container_detail` (Block List) Create options direct the creation of the Docker container (see [below for nested schema](#nestedblock--manifest--container_detail))
5858
- `cpu_pinning_enabled` (Boolean) Enable CpuPinning
59-
- `deployment_type` (String) type of deployment for the app, eg: azure, k3s, standalone
59+
- `deployment_type` (String) Deployment type for the app. The correct values are: "DEPLOYMENT_TYPE_UNSPECIFIED","DEPLOYMENT_TYPE_STAND_ALONE","DEPLOYMENT_TYPE_AZURE","DEPLOYMENT_TYPE_K3S","DEPLOYMENT_TYPE_AWS","DEPLOYMENT_TYPE_K3S_AZURE","DEPLOYMENT_TYPE_K3S_AWS","DEPLOYMENT_TYPE_VMWARE_VCE".
6060
- `desc` (Block List) Description of the application (see [below for nested schema](#nestedblock--manifest--desc))
6161
- `description` (String) UI map: AppDetailsPage:IdentityPane:DescriptionField, AppMarketplacePage:AppCard:DescriptionField
6262
- `display_name` (String) UI map: AppEditPage:IdentityPane:Title_Field, AppDetailsPage:IdentityPane:Title_Field

docs/resources/edgenode_cluster.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "zedcloud_edgenode_cluster Resource - terraform-provider-zedcloud"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# zedcloud_edgenode_cluster (Resource)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `name` (String) User defined name of the cluster, unique across the enterprise. Once cluster is created, name can’t be changed
21+
- `nodes` (Block List, Min: 1) A list of nodes in the cluster (see [below for nested schema](#nestedblock--nodes))
22+
- `project_id` (String) Foreign key to the project
23+
24+
### Optional
25+
26+
- `cluster_prefix` (String) A cluster prefix. The default is: 10.244.244.2/28
27+
- `description` (String) Detailed description of the cluster
28+
- `tags` (Map of String) Tags are name/value pairs that enable you to categorize resources. Tag names are case insensitive with max_length 512 and min_length 3. Tag values are case sensitive with max_length 256 and min_length 3.
29+
- `title` (String) User defined title of the cluster. Title can be changed at any time
30+
31+
### Read-Only
32+
33+
- `id` (String) System defined universally unique Id of the cluster
34+
35+
<a id="nestedblock--nodes"></a>
36+
### Nested Schema for `nodes`
37+
38+
Required:
39+
40+
- `cluster_interface` (String) User defined name of the cluster interface, ex.: eth0, eth1, wlan0, etc.
41+
- `id` (String) Id of the node to be included in a cluster
42+
43+
Optional:
44+
45+
- `node_type` (String) Type of node. Currently it supports only: EDGE_NODE_CLUSTER_NODE_TYPE_SERVER
46+
- `resource_labels` (Map of String) Resource labels are name/value pairs that enable you to categorize resources. Label names are case insensitive with max_length 512 and min_length 3. Label values are case sensitive with max_length 256 and min_length 3.
47+
48+
Read-Only:
49+
50+
- `cluster_prefix` (String) A cluster prefix. The system will assign a value.

0 commit comments

Comments
 (0)