-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support NKS OpenAPI Features (#273)
* update: support nks update * update: nks docs * fix: ip_acl empty entries error * fix: ip_acl empty entries error * update: docs & log * update: nks_server_products example * update: nks_server_products example * update: nks ip-acl exception for fin site * update: nks UserAgent config * update: remove named result parameter * update: nks config * update: nks_cluster ip_acl_default_action validation --------- Co-authored-by: Mingyum Kim <[email protected]>
- Loading branch information
Showing
24 changed files
with
1,713 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Data Source: ncloud_nks_server_images | ||
|
||
Provides list of available Kubernetes Nodepool ServerImages. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "ncloud_nks_server_images" "images" {} | ||
data "ncloud_nks_server_images" "ubuntu20" { | ||
filter { | ||
name = "label" | ||
values = ["ubuntu-20.04-64-server"] | ||
regex = true | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `filter` - (Optional) Custom filter block as described below. | ||
* `name` - (Required) The name of the field to filter by. | ||
* `values` - (Required) Set of values that are accepted for the given field. | ||
* `regex` - (Optional) is `values` treated as a regular expression. | ||
|
||
## Attributes Reference | ||
|
||
* `images` - A list of ServerImages | ||
* `label` - ServerImage name | ||
* `value` - ServerImage code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Data Source: ncloud_nks_server_products | ||
|
||
Provides list of available Kubernetes Nodepool ServerProducts. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "ncloud_nks_server_products" "products" {} | ||
data "ncloud_nks_server_images" "images"{ | ||
filter { | ||
name = "label" | ||
values = ["ubuntu-20.04-64-server"] | ||
} | ||
} | ||
data "ncloud_nks_server_products" "product" { | ||
software_code = data.ncloud_nks_server_images.images.images[0].value | ||
zone = "KR-1" | ||
filter { | ||
name = "label" | ||
values = ["vCPU 2개, 메모리 16GB, [SSD]디스크 50GB" ] | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `software_code` - (Required) NKS ServerImage code. | ||
* `zone` - (Required) zone Code. | ||
|
||
* `filter` - (Optional) Custom filter block as described below. | ||
* `name` - (Required) The name of the field to filter by. | ||
* `values` - (Required) Set of values that are accepted for the given field. | ||
* `regex` - (Optional) is `values` treated as a regular expression. | ||
|
||
## Attributes Reference | ||
|
||
* `products` - A list of ServerProduct | ||
* `label` - ServerProduct spec korean description | ||
* `value` - ServerProduct code | ||
* `detail` | ||
* `cpu_count` - Number of cpu | ||
* `gpu_count` - Number of gpu | ||
* `gpu_memory_size` - Size of GPU memory(GB) | ||
* `memory_size` - Size of memory(GB) | ||
* `product_code` - ServerProduct code | ||
* `product_english_desc` - ServerProduct spec english description | ||
* `product_korean_desc` - ServerProduct spec korean description | ||
* `product_type` - ServerProduct Type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.