Skip to content

Commit

Permalink
Merge pull request #53 from gimmetm/feature/hypervisor-support
Browse files Browse the repository at this point in the history
update: vnks
jj41 authored Dec 5, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents a7d7ed4 + 0a40736 commit 4fc60c3
Showing 29 changed files with 656 additions and 26 deletions.
10 changes: 10 additions & 0 deletions services/vnks/README.md
Original file line number Diff line number Diff line change
@@ -30,10 +30,14 @@ Class | Method | HTTP request | Description
*V2Api* | [**ClustersUuidIpAclPatch**](docs/V2Api.md#clustersuuidipaclpatch) | **Patch** /clusters/{uuid}/ip-acl |
*V2Api* | [**ClustersUuidKubeconfigGet**](docs/V2Api.md#clustersuuidkubeconfigget) | **Get** /clusters/{uuid}/kubeconfig |
*V2Api* | [**ClustersUuidKubeconfigResetPatch**](docs/V2Api.md#clustersuuidkubeconfigresetpatch) | **Patch** /clusters/{uuid}/kubeconfig/reset |
*V2Api* | [**ClustersUuidLbSubnetPatch**](docs/V2Api.md#clustersuuidlbsubnetpatch) | **Patch** /clusters/{uuid}/lb-subnet |
*V2Api* | [**ClustersUuidLogPatch**](docs/V2Api.md#clustersuuidlogpatch) | **Patch** /clusters/{uuid}/log |
*V2Api* | [**ClustersUuidNodePoolGet**](docs/V2Api.md#clustersuuidnodepoolget) | **Get** /clusters/{uuid}/node-pool |
*V2Api* | [**ClustersUuidNodePoolInstanceNoDelete**](docs/V2Api.md#clustersuuidnodepoolinstancenodelete) | **Delete** /clusters/{uuid}/node-pool/{instanceNo} |
*V2Api* | [**ClustersUuidNodePoolInstanceNoLabelsPut**](docs/V2Api.md#clustersuuidnodepoolinstancenolabelsput) | **Put** /clusters/{uuid}/node-pool/{instanceNo}/labels |
*V2Api* | [**ClustersUuidNodePoolInstanceNoPatch**](docs/V2Api.md#clustersuuidnodepoolinstancenopatch) | **Patch** /clusters/{uuid}/node-pool/{instanceNo} |
*V2Api* | [**ClustersUuidNodePoolInstanceNoSubnetsPatch**](docs/V2Api.md#clustersuuidnodepoolinstancenosubnetspatch) | **Patch** /clusters/{uuid}/node-pool/{instanceNo}/subnets |
*V2Api* | [**ClustersUuidNodePoolInstanceNoTaintsPut**](docs/V2Api.md#clustersuuidnodepoolinstancenotaintsput) | **Put** /clusters/{uuid}/node-pool/{instanceNo}/taints |
*V2Api* | [**ClustersUuidNodePoolInstanceNoUpgradePatch**](docs/V2Api.md#clustersuuidnodepoolinstancenoupgradepatch) | **Patch** /clusters/{uuid}/node-pool/{instanceNo}/upgrade |
*V2Api* | [**ClustersUuidNodePoolPost**](docs/V2Api.md#clustersuuidnodepoolpost) | **Post** /clusters/{uuid}/node-pool |
*V2Api* | [**ClustersUuidNodesGet**](docs/V2Api.md#clustersuuidnodesget) | **Get** /clusters/{uuid}/nodes |
@@ -68,7 +72,9 @@ Class | Method | HTTP request | Description
- [NodePool](docs/NodePool.md)
- [NodePoolCreationBody](docs/NodePoolCreationBody.md)
- [NodePoolDto](docs/NodePoolDto.md)
- [NodePoolLabel](docs/NodePoolLabel.md)
- [NodePoolRes](docs/NodePoolRes.md)
- [NodePoolTaint](docs/NodePoolTaint.md)
- [NodePoolUpdateBody](docs/NodePoolUpdateBody.md)
- [OidcRes](docs/OidcRes.md)
- [OptionRes](docs/OptionRes.md)
@@ -77,8 +83,12 @@ Class | Method | HTTP request | Description
- [OptionsResForServerProduct](docs/OptionsResForServerProduct.md)
- [ServerProduct](docs/ServerProduct.md)
- [SubnetDto](docs/SubnetDto.md)
- [UpdateClusterLbSubnetRes](docs/UpdateClusterLbSubnetRes.md)
- [UpdateClusterRes](docs/UpdateClusterRes.md)
- [UpdateNodePoolRes](docs/UpdateNodePoolRes.md)
- [UpdateNodepoolLabelDto](docs/UpdateNodepoolLabelDto.md)
- [UpdateNodepoolSubnetDto](docs/UpdateNodepoolSubnetDto.md)
- [UpdateNodepoolTaintDto](docs/UpdateNodepoolTaintDto.md)
- [UpdateOidcDto](docs/UpdateOidcDto.md)
- [WorkerNode](docs/WorkerNode.md)
- [WorkerNodeRes](docs/WorkerNodeRes.md)
3 changes: 3 additions & 0 deletions services/vnks/cluster.go
Original file line number Diff line number Diff line change
@@ -28,6 +28,9 @@ type Cluster struct {
// 클러스터 타입
ClusterType *string `json:"clusterType"`

// Hypervisor Code
HypervisorCode *string `json:"hypervisorCode"`

// 등록된 노드 총 개수
NodeCount *int32 `json:"nodeCount"`

3 changes: 3 additions & 0 deletions services/vnks/cluster_input_body.go
Original file line number Diff line number Diff line change
@@ -22,6 +22,9 @@ type ClusterInputBody struct {
// 로그인 키 이름
LoginKeyName *string `json:"loginKeyName"`

// Hypervisor Code
HypervisorCode *string `json:"hypervisorCode,omitempty"`

// Region의 코드
RegionCode *string `json:"regionCode"`

2 changes: 1 addition & 1 deletion services/vnks/cluster_log_input.go
Original file line number Diff line number Diff line change
@@ -11,5 +11,5 @@ package vnks
type ClusterLogInput struct {

// Audit Log 설정
Audit *bool `json:"audit,omitempty"`
Audit *bool `json:"audit"`
}
14 changes: 10 additions & 4 deletions services/vnks/default_node_pool_param.go
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ package vnks

type DefaultNodePoolParam struct {

// 기본 노드풀 이름
// 노드풀 이름
Name *string `json:"name"`

// 노드 개수
@@ -22,9 +22,15 @@ type DefaultNodePoolParam struct {
// Subnet 번호
SubnetNoList []*int32 `json:"subnetNoList,omitempty"`

// 상품 코드 [서버 스펙 목록](/docs/compute-vserver-server-common-getserverproductlist)
ProductCode *string `json:"productCode"`

// Server image code
SoftwareCode *string `json:"softwareCode,omitempty"`

// 상품 코드
ProductCode *string `json:"productCode,omitempty"`

// Server spec code
ServerSpecCode *string `json:"serverSpecCode,omitempty"`

// Storage size
StorageSize *int32 `json:"storageSize,omitempty"`
}
1 change: 1 addition & 0 deletions services/vnks/docs/Cluster.md
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
**Name** | ***string** | 클러스터 이름 | [default to null]
**Capacity** | ***string** | 클러스터 용량 | [default to null]
**ClusterType** | ***string** | 클러스터 타입 | [default to null]
**HypervisorCode** | ***string** | Hypervisor Code | [default to null]
**NodeCount** | ***int32** | 등록된 노드 총 개수 | [default to null]
**NodeMaxCount** | ***int32** | 사용할 수 있는 노드의 최대 개수 | [default to null]
**CpuCount** | ***int32** | cpu 개수 | [default to null]
1 change: 1 addition & 0 deletions services/vnks/docs/ClusterInputBody.md
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
**ClusterType** | ***string** | 클러스터 타입 | [default to null]
**K8sVersion** | ***string** | 쿠버네티스 버전 [Version 조회 API](/docs/compute-vpckubernetesservice-nksv2#k8sSupportedVersion) | [optional] [default to null]
**LoginKeyName** | ***string** | 로그인 키 이름 | [default to null]
**HypervisorCode** | ***string** | Hypervisor Code | [optional] [default to null]
**RegionCode** | ***string** | Region의 코드 | [default to null]
**ZoneCode** | ***string** | Zone 코드 | [optional] [default to null]
**ZoneNo** | ***int32** | Zone 번호 | [optional] [default to null]
2 changes: 1 addition & 1 deletion services/vnks/docs/ClusterLogInput.md
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Audit** | ***bool** | Audit Log 설정 | [optional] [default to null]
**Audit** | ***bool** | Audit Log 설정 | [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

6 changes: 4 additions & 2 deletions services/vnks/docs/DefaultNodePoolParam.md
Original file line number Diff line number Diff line change
@@ -3,12 +3,14 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | ***string** | 기본 노드풀 이름 | [default to null]
**Name** | ***string** | 노드풀 이름 | [default to null]
**NodeCount** | ***int32** | 노드 개수 | [default to null]
**SubnetNo** | ***int32** | Subnet 번호 | [optional] [default to null]
**SubnetNoList** | **[]\*int32** | Subnet 번호 | [optional] [default to null]
**ProductCode** | ***string** | 상품 코드 [서버 스펙 목록](/docs/compute-vserver-server-common-getserverproductlist) | [default to null]
**SoftwareCode** | ***string** | Server image code | [optional] [default to null]
**ProductCode** | ***string** | 상품 코드 | [optional] [default to null]
**ServerSpecCode** | ***string** | Server spec code | [optional] [default to null]
**StorageSize** | ***int32** | Storage size | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

6 changes: 5 additions & 1 deletion services/vnks/docs/NodePool.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,15 @@ Name | Type | Description | Notes
**NodeCount** | ***int32** | 노드 개수 | [default to null]
**SubnetNoList** | **[]\*int32** | Subnet 번호 목록 | [default to null]
**SubnetNameList** | **[]\*string** | Subnet 이름 목록 | [default to null]
**ProductCode** | ***string** | 상품 코드 | [default to null]
**Status** | ***string** | 노드풀 상태 | [default to null]
**Autoscale** | **[*AutoscaleOption](AutoscaleOption.md)** | | [default to null]
**SoftwareCode** | ***string** | Software Code(OS) | [default to null]
**ProductCode** | ***string** | 상품 코드 | [optional] [default to null]
**K8sVersion** | ***string** | 쿠버네티스 버전 | [default to null]
**ServerSpecCode** | ***string** | 서버 스펙 코드 | [optional] [default to null]
**StorageSize** | ***int32** | 스토리지 크기 | [optional] [default to null]
**Labels** | **[[]\*NodePoolLabel](NodePoolLabel.md)** | | [default to null]
**Taints** | **[[]\*NodePoolTaint](NodePoolTaint.md)** | | [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

4 changes: 3 additions & 1 deletion services/vnks/docs/NodePoolCreationBody.md
Original file line number Diff line number Diff line change
@@ -7,8 +7,10 @@ Name | Type | Description | Notes
**NodeCount** | ***int32** | 등록 될 노드 개수 | [default to null]
**SubnetNo** | ***int32** | Subnet 번호 | [optional] [default to null]
**SubnetNoList** | **[]\*int32** | Subnet 번호 | [optional] [default to null]
**ProductCode** | ***string** | 상품 코드 [서버 스펙 목록](/docs/compute-vserver-server-common-getserverproductlist) | [default to null]
**SoftwareCode** | ***string** | Server image code | [optional] [default to null]
**ProductCode** | ***string** | 상품 코드 [서버 스펙 목록](/docs/compute-vserver-server-common-getserverproductlist) | [optional] [default to null]
**ServerSpecCode** | ***string** | Server spec code | [optional] [default to null]
**StorageSize** | ***int32** | Storage size | [optional] [default to null]
**Autoscale** | **[*AutoscalerUpdate](AutoscalerUpdate.md)** | | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
4 changes: 3 additions & 1 deletion services/vnks/docs/NodePoolDto.md
Original file line number Diff line number Diff line change
@@ -7,8 +7,10 @@ Name | Type | Description | Notes
**NodeCount** | ***int32** | 노드 개수 | [default to null]
**SubnetNo** | ***int32** | Subnet 번호 | [optional] [default to null]
**SubnetNoList** | **[]\*int32** | Subnet 번호 | [optional] [default to null]
**ProductCode** | ***string** | 상품 코드 | [default to null]
**SoftwareCode** | ***string** | Server image code | [optional] [default to null]
**ProductCode** | ***string** | 상품 코드 | [optional] [default to null]
**ServerSpecCode** | ***string** | Server spec code | [optional] [default to null]
**StorageSize** | ***int32** | Storage size | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

11 changes: 11 additions & 0 deletions services/vnks/docs/NodePoolLabel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# NodePoolLabel

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Key** | ***string** | | [default to null]
**Value** | ***string** | | [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


12 changes: 12 additions & 0 deletions services/vnks/docs/NodePoolTaint.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# NodePoolTaint

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Key** | ***string** | | [default to null]
**Value** | ***string** | | [optional] [default to null]
**Effect** | ***string** | | [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# NodePoolsRes
# UpdateClusterLbSubnetRes

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**NodePool** | **[[]\*NodePoolRes](NodePoolRes.md)** | 노드풀 목록 | [default to null]
**Uuid** | ***string** | | [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

10 changes: 10 additions & 0 deletions services/vnks/docs/UpdateNodepoolLabelDto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# UpdateNodepoolLabelDto

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Labels** | **[[]\*NodePoolLabel](NodePoolLabel.md)** | | [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


10 changes: 10 additions & 0 deletions services/vnks/docs/UpdateNodepoolSubnetDto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# UpdateNodepoolSubnetDto

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Subnets** | **[]\*int32** | | [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


10 changes: 10 additions & 0 deletions services/vnks/docs/UpdateNodepoolTaintDto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# UpdateNodepoolTaintDto

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Taints** | **[[]\*NodePoolTaint](NodePoolTaint.md)** | | [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Loading

0 comments on commit 4fc60c3

Please sign in to comment.