From 680a5dd3035fa57e8768791b23e4830e667083e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wilson=20J=C3=BAnior?= Date: Thu, 20 May 2021 10:23:03 -0300 Subject: [PATCH] cluster: add local property to cluster --- api/openapi.yaml | 7 +++++-- docs/Cluster.md | 3 ++- pkg/tsuru/model_cluster.go | 3 ++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index c5e1224..4a13e47 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -7100,6 +7100,7 @@ components: username: username custom_data: key: custom_data + local: true properties: name: type: string @@ -7128,6 +7129,10 @@ components: items: type: string type: array + default: + type: boolean + local: + type: boolean custom_data: additionalProperties: type: string @@ -7136,8 +7141,6 @@ components: type: string kubeConfig: $ref: '#/components/schemas/Cluster_kubeConfig' - default: - type: boolean type: object DynamicRouter: description: Dynamic router diff --git a/docs/Cluster.md b/docs/Cluster.md index c19c5f6..514e986 100644 --- a/docs/Cluster.md +++ b/docs/Cluster.md @@ -10,10 +10,11 @@ Name | Type | Description | Notes **Clientcert** | **string** | | [optional] **Clientkey** | **string** | | [optional] **Pools** | **[]string** | | [optional] +**Default** | **bool** | | [optional] +**Local** | **bool** | | [optional] **CustomData** | **map[string]string** | | [optional] **HttpProxy** | **string** | | [optional] **KubeConfig** | [**ClusterKubeConfig**](Cluster_kubeConfig.md) | | [optional] -**Default** | **bool** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/pkg/tsuru/model_cluster.go b/pkg/tsuru/model_cluster.go index df12a9a..0e09e42 100644 --- a/pkg/tsuru/model_cluster.go +++ b/pkg/tsuru/model_cluster.go @@ -17,8 +17,9 @@ type Cluster struct { Clientcert []byte `json:"clientcert,omitempty"` Clientkey []byte `json:"clientkey,omitempty"` Pools []string `json:"pools,omitempty"` + Default bool `json:"default,omitempty"` + Local bool `json:"local,omitempty"` CustomData map[string]string `json:"custom_data,omitempty"` HttpProxy string `json:"httpProxy,omitempty"` KubeConfig ClusterKubeConfig `json:"kubeConfig,omitempty"` - Default bool `json:"default,omitempty"` }