Skip to content

Commit

Permalink
Added kubernetesVersion attribute in nodePoolProperties object
Browse files Browse the repository at this point in the history
Added kubernetesVersion attribute in nodePoolProperties object
  • Loading branch information
chandra1-n committed Sep 12, 2023
1 parent 96ad358 commit 163018a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/service/ocean/providers/azure_np/create/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
8 changes: 8 additions & 0 deletions service/ocean/providers/azure_np/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 163018a

Please sign in to comment.