From 8f83dd37ad675c9c3a88e3cc6316afb8930df843 Mon Sep 17 00:00:00 2001 From: chandra1-n <86221454+chandra1-n@users.noreply.github.com> Date: Wed, 13 Sep 2023 01:07:37 +0530 Subject: [PATCH 1/4] feat (ocean/aks_np): Added `kubernetesVersion` attribute in `nodePoolProperties` object (#260) --- examples/service/ocean/providers/azure_np/create/main.go | 1 + .../ocean/providers/azure_np/nodegroup/create/main.go | 1 + service/ocean/providers/azure_np/common.go | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/examples/service/ocean/providers/azure_np/create/main.go b/examples/service/ocean/providers/azure_np/create/main.go index 31134088..edfd1192 100644 --- a/examples/service/ocean/providers/azure_np/create/main.go +++ b/examples/service/ocean/providers/azure_np/create/main.go @@ -75,6 +75,7 @@ func main() { OsDiskType: spotinst.String("Managed"), OsType: spotinst.String("Windows"), OsSKU: spotinst.String("Windows2019"), + KubernetesVersion: spotinst.String("1.26"), }, NodeCountLimits: &azure_np.NodeCountLimits{ MinCount: spotinst.Int(0), diff --git a/examples/service/ocean/providers/azure_np/nodegroup/create/main.go b/examples/service/ocean/providers/azure_np/nodegroup/create/main.go index 458806ff..526e1efc 100644 --- a/examples/service/ocean/providers/azure_np/nodegroup/create/main.go +++ b/examples/service/ocean/providers/azure_np/nodegroup/create/main.go @@ -52,6 +52,7 @@ func main() { OsDiskType: spotinst.String("Managed"), OsType: spotinst.String("Windows"), OsSKU: spotinst.String("Windows2022"), + KubernetesVersion: spotinst.String("1.26"), }, NodeCountLimits: &azure_np.NodeCountLimits{ MinCount: spotinst.Int(0), diff --git a/service/ocean/providers/azure_np/common.go b/service/ocean/providers/azure_np/common.go index 7b8046d3..9dee1476 100644 --- a/service/ocean/providers/azure_np/common.go +++ b/service/ocean/providers/azure_np/common.go @@ -10,6 +10,7 @@ type NodePoolProperties struct { OsDiskType *string `json:"osDiskType,omitempty"` OsType *string `json:"osType,omitempty"` OsSKU *string `json:"osSKU,omitempty"` + KubernetesVersion *string `json:"kubernetesVersion,omitempty"` forceSendFields []string nullFields []string @@ -63,6 +64,13 @@ func (o *NodePoolProperties) SetOsSKU(v *string) *NodePoolProperties { return o } +func (o *NodePoolProperties) SetKubernetesVersion(v *string) *NodePoolProperties { + if o.KubernetesVersion = v; o.KubernetesVersion == nil { + o.nullFields = append(o.nullFields, "KubernetesVersion") + } + return o +} + // endregion // NodeCountLimits region From 4db544121df608acc15e6114acfa22cf59d68ae0 Mon Sep 17 00:00:00 2001 From: Anurag Sharma Date: Wed, 13 Sep 2023 01:10:28 +0530 Subject: [PATCH 2/4] chore(release): v1.173.0 --- spotinst/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotinst/version.go b/spotinst/version.go index db6af17c..6fcc3d36 100644 --- a/spotinst/version.go +++ b/spotinst/version.go @@ -1,7 +1,7 @@ package spotinst // SDKVersion is the current version of the SDK. -const SDKVersion = "1.172.0" +const SDKVersion = "1.173.0" // SDKName is the name of the SDK. const SDKName = "spotinst-sdk-go" From 946c4ee690aecc1fa6d758c564593640873b51e6 Mon Sep 17 00:00:00 2001 From: chandra1-n <86221454+chandra1-n@users.noreply.github.com> Date: Fri, 15 Sep 2023 15:20:46 +0530 Subject: [PATCH 3/4] feat(ocean/aws): added `dynamicIops` (#262) --- service/ocean/providers/aws/cluster.go | 48 ++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/service/ocean/providers/aws/cluster.go b/service/ocean/providers/aws/cluster.go index d7956e82..b6c1fa92 100644 --- a/service/ocean/providers/aws/cluster.go +++ b/service/ocean/providers/aws/cluster.go @@ -2078,6 +2078,7 @@ type ClusterEBS struct { VolumeSize *int `json:"volumeSize,omitempty"` Throughput *int `json:"throughput,omitempty"` DynamicVolumeSize *ClusterDynamicVolumeSize `json:"dynamicVolumeSize,omitempty"` + DynamicIops *ClusterDynamicIops `json:"dynamicIops,omitempty"` forceSendFields []string nullFields []string @@ -2091,6 +2092,15 @@ type ClusterDynamicVolumeSize struct { nullFields []string } +type ClusterDynamicIops struct { + BaseSize *int `json:"baseSize,omitempty"` + SizePerResourceUnit *int `json:"sizePerResourceUnit,omitempty"` + Resource *string `json:"resource,omitempty"` + + forceSendFields []string + nullFields []string +} + // region BlockDeviceMapping func (o ClusterBlockDeviceMappings) MarshalJSON() ([]byte, error) { @@ -2186,6 +2196,13 @@ func (o *ClusterEBS) SetThroughput(v *int) *ClusterEBS { return o } +func (o *ClusterEBS) SetDynamicIops(v *ClusterDynamicIops) *ClusterEBS { + if o.DynamicIops = v; o.DynamicIops == nil { + o.nullFields = append(o.nullFields, "DynamicIops") + } + return o +} + // endregion // region DynamicVolumeSize @@ -2219,6 +2236,37 @@ func (o *ClusterDynamicVolumeSize) SetSizePerResourceUnit(v *int) *ClusterDynami // endregion +// region DynamicIops + +func (o ClusterDynamicIops) MarshalJSON() ([]byte, error) { + type noMethod ClusterDynamicIops + raw := noMethod(o) + return jsonutil.MarshalJSON(raw, o.forceSendFields, o.nullFields) +} + +func (o *ClusterDynamicIops) SetBaseSize(v *int) *ClusterDynamicIops { + if o.BaseSize = v; o.BaseSize == nil { + o.nullFields = append(o.nullFields, "BaseSize") + } + return o +} + +func (o *ClusterDynamicIops) SetResource(v *string) *ClusterDynamicIops { + if o.Resource = v; o.Resource == nil { + o.nullFields = append(o.nullFields, "Resource") + } + return o +} + +func (o *ClusterDynamicIops) SetSizePerResourceUnit(v *int) *ClusterDynamicIops { + if o.SizePerResourceUnit = v; o.SizePerResourceUnit == nil { + o.nullFields = append(o.nullFields, "SizePerResourceUnit") + } + return o +} + +// endregion + // region ResourceTagSpecification func (o ResourceTagSpecification) MarshalJSON() ([]byte, error) { From 7096568278085c2ca75bd2e103bf58e921ca8931 Mon Sep 17 00:00:00 2001 From: chandra1-n <86221454+chandra1-n@users.noreply.github.com> Date: Fri, 15 Sep 2023 15:23:25 +0530 Subject: [PATCH 4/4] chore(release): v1.174.0 --- spotinst/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotinst/version.go b/spotinst/version.go index 6fcc3d36..eb8f82c8 100644 --- a/spotinst/version.go +++ b/spotinst/version.go @@ -1,7 +1,7 @@ package spotinst // SDKVersion is the current version of the SDK. -const SDKVersion = "1.173.0" +const SDKVersion = "1.174.0" // SDKName is the name of the SDK. const SDKName = "spotinst-sdk-go"