Skip to content

Commit

Permalink
Modifed rollspec struct to support NodePoolNames
Browse files Browse the repository at this point in the history
Modifed `rollspec` struct to support `NodePoolNames`
  • Loading branch information
sharadkesarwani committed Jan 15, 2024
1 parent 45aa174 commit 166de02
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions examples/service/ocean/providers/azure/clusterroll/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func main() {
BatchMinHealthyPercentage: spotinst.Int(100),
NodeNames: []string{"node123"},
VngIds: []string{"vng-123"},
NodePoolNames: []string{"nodepool12345", "nodepool67890"},
},
})
if err != nil {
Expand Down
22 changes: 11 additions & 11 deletions service/ocean/providers/azure/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,17 +231,17 @@ type ManagedServiceIdentity struct {
}

type RollSpec struct {
ID *string `json:"id,omitempty"`
ClusterID *string `json:"clusterId,omitempty"`
Comment *string `json:"comment,omitempty"`
Status *string `json:"status,omitempty"`
BatchSizePercentage *int `json:"batchSizePercentage,omitempty"`
BatchMinHealthyPercentage *int `json:"batchMinHealthyPercentage,omitempty"`
RespectPDB *bool `json:"respectPdb,omitempty"`
DisableLaunchSpecAutoScaling *bool `json:"disableLaunchSpecAutoScaling,omitempty"`
VngIds []string `json:"vngIds,omitempty"`
RespectRestrictScaleDown *bool `json:"respectRestrictScaleDown,omitempty"`
NodeNames []string `json:"nodeNames,omitempty"`
ID *string `json:"id,omitempty"`
ClusterID *string `json:"clusterId,omitempty"`
Comment *string `json:"comment,omitempty"`
Status *string `json:"status,omitempty"`
BatchSizePercentage *int `json:"batchSizePercentage,omitempty"`
BatchMinHealthyPercentage *int `json:"batchMinHealthyPercentage,omitempty"`
RespectPDB *bool `json:"respectPdb,omitempty"`
NodePoolNames []string `json:"nodePoolNames,omitempty"`
VngIds []string `json:"vngIds,omitempty"`
RespectRestrictScaleDown *bool `json:"respectRestrictScaleDown,omitempty"`
NodeNames []string `json:"nodeNames,omitempty"`

forceSendFields []string
nullFields []string
Expand Down

0 comments on commit 166de02

Please sign in to comment.