diff --git a/CHANGELOG.md b/CHANGELOG.md index 82b8c64..502c463 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,52 +1,4 @@ -## Version 1.6.0 +## Version 1.6.1 ### Bugfix -- Fix client and legacy-client, the cyclicity of sending requests has been removed -- Edit description field SSLSkipVerify in config/config and config/legacy-config -- Remove tags required fields ExtNetID VINSID Start in model CreateRequest in cloudapi/lb/create and cloudbroker/lb/create -- Add tags required fields BindingName BindingAddress BindingPort in model FrontendBindRequest in cloudapi/lb/frontend_bind -- Add tags required fields BindingAddress BindingPort in model FrontendBindUpdateRequest in cloudapi/lb/frontend_bind_update -- Remove tags omitempty in field Start in model kvmx86 and kvmppc in cloudapi and cloudbroker /create /mass_create -- Add field Driver in models cloudbroker/kvmx86/create and cloudbroker/kvmx86/create_blank -- Add field ExternalIp in model ItemDetailedInfo cloudbroker/k8s/models and cloudapi/k8s/models -- Add fields StackID and Reason in model CreateRequest cloudbroker/kvmppc - -### Feature -- Add field UserData in cloudapi/bservice/group_add -- Add fields VinsId, LbSysctlParams, HighlyAvailable, AdditionalSANs, InitConfiguration, ClusterConfiguration, KubeletConfiguration, KubeProxyConfiguration, JoinConfiguration, UserData, ExtNetOnly, OidcCertificate in model request cloudapi/k8s/create and cloudbroker/k8s/create -- Add fields SysctlParams, HighlyAvailable in model CreateRequest in cloudapi/lb/create and cloudbroker/lb/create -- Add fields BackendHAIP, FrontendHAIP, PartK8s, SysctlParams in model RecordLB in cloudapi/lb/models and cloudbroker/lb/models -- Add models InfoStack, ItemStack, ListStacks cloudapi/stack/models -- Add field Routes and type Route in CreateInAccountRequest and CreateInRGRequest models in cloudapi/vins/create_in_rg and /cloudapi/vins/create_in_account -- Add field Enabled in model ItemVNFInterface in cloudapi/vins/models -- Add fields Routes in models RecordNAT, RecordDHCP, RecordGW and add type ListStaticRoutes, ListRoutes, ItemRoutes in cloudapi/vins/models - -- Added new endpoints: -- cloudapi/k8s/get_worker_nodes_meta_data -- cloudapi/k8s/update_worker_nodes_meta_data -- cloudapi/lb/make_highly_available -- cloudapi/lb/updateSysctParams -- cloudapi/stack/get -- cloudapi/stack/list -- cloudapi/vins/static_route_list -- cloudapi/vins/static_route_access_grant -- cloudapi/vins/static_route_access_revoke -- cloudapi/vins/static_route_add -- cloudapi/vins/static_route_del -- cloudbroker/compute/set_custom_fields -- cloudbroker/k8s/get_worker_nodes_meta_data -- cloudbroker/k8s/update_worker_nodes_meta_data -- cloudbroker/lb/make_highly_available -- cloudbroker/lb/updateSysctParams -- cloudbroker/vins/static_route_list -- cloudbroker/vins/static_route_access_grant -- cloudbroker/vins/static_route_access_revoke -- cloudbroker/vins/static_route_add -- cloudbroker/vins/static_route_del -- cloudbroker/extnet/static_route_list -- cloudbroker/extnet/static_route_access_grant -- cloudbroker/extnet/static_route_access_revoke -- cloudbroker/extnet/static_route_add -- cloudbroker/extnet/static_route_del - - +- Fixed tags url and json CreateRequest in cloudapi/k8s/create and cloudbroker/k8s/create diff --git a/client.go b/client.go index e09542c..0b3df97 100644 --- a/client.go +++ b/client.go @@ -151,7 +151,7 @@ func (dc *DecortClient) DecortApiCall(ctx context.Context, method, url string, p _ = writer.WriteField("withLB", strconv.FormatBool(k8sCaCreateReq.WithLB)) } - _ = writer.WriteField("highlyAvailable", strconv.FormatBool(k8sCaCreateReq.HighlyAvailable)) + _ = writer.WriteField("highlyAvailableLB", strconv.FormatBool(k8sCaCreateReq.HighlyAvailable)) if k8sCaCreateReq.AdditionalSANs != nil { for _, v := range k8sCaCreateReq.AdditionalSANs { @@ -287,7 +287,7 @@ func (dc *DecortClient) DecortApiCall(ctx context.Context, method, url string, p _ = writer.WriteField("withLB", strconv.FormatBool(k8sCbCreateReq.WithLB)) } - _ = writer.WriteField("highlyAvailable", strconv.FormatBool(k8sCbCreateReq.HighlyAvailable)) + _ = writer.WriteField("highlyAvailableLB", strconv.FormatBool(k8sCbCreateReq.HighlyAvailable)) if k8sCbCreateReq.AdditionalSANs != nil { for _, v := range k8sCbCreateReq.AdditionalSANs { diff --git a/legacy-client.go b/legacy-client.go index 4c7d454..f2f4f5e 100644 --- a/legacy-client.go +++ b/legacy-client.go @@ -148,7 +148,7 @@ func (ldc *LegacyDecortClient) DecortApiCall(ctx context.Context, method, url st _ = writer.WriteField("withLB", strconv.FormatBool(k8sCreateReq.WithLB)) } - _ = writer.WriteField("highlyAvailable", strconv.FormatBool(k8sCreateReq.HighlyAvailable)) + _ = writer.WriteField("highlyAvailableLB", strconv.FormatBool(k8sCreateReq.HighlyAvailable)) if k8sCreateReq.AdditionalSANs != nil { for _, v := range k8sCreateReq.AdditionalSANs { diff --git a/pkg/cloudapi/k8s/create.go b/pkg/cloudapi/k8s/create.go index 99ae970..8432557 100644 --- a/pkg/cloudapi/k8s/create.go +++ b/pkg/cloudapi/k8s/create.go @@ -115,7 +115,7 @@ type CreateRequest struct { // Use Highly Available schema for LB deploy // Required: false - HighlyAvailable bool `url:"highlyAvailable,omitempty" json:"highlyAvailable,omitempty"` + HighlyAvailable bool `url:"highlyAvailableLB,omitempty" json:"highlyAvailableLB,omitempty"` // Optional extra Subject Alternative Names (SANs) to use for the API Server serving certificate. Can be both IP addresses and DNS names // Required: false diff --git a/pkg/cloudbroker/k8s/create.go b/pkg/cloudbroker/k8s/create.go index d945455..4f1e554 100644 --- a/pkg/cloudbroker/k8s/create.go +++ b/pkg/cloudbroker/k8s/create.go @@ -117,7 +117,7 @@ type CreateRequest struct { // Use Highly Available schema for LB deploy // Required: false - HighlyAvailable bool `url:"highlyAvailable,omitempty" json:"highlyAvailable,omitempty"` + HighlyAvailable bool `url:"highlyAvailableLB,omitempty" json:"highlyAvailableLB,omitempty"` // Optional extra Subject Alternative Names (SANs) to use for the API Server serving certificate. Can be both IP addresses and DNS names // Required: false