Skip to content

Commit

Permalink
feat(ocean/*): new field: vng AutoHeadroomPercentage (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
guyalt3 authored Mar 2, 2022
1 parent 488d72f commit 900d96b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
10 changes: 9 additions & 1 deletion service/ocean/providers/aws/launchspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ type Taint struct {
}

type AutoScale struct {
Headrooms []*AutoScaleHeadroom `json:"headrooms,omitempty"`
Headrooms []*AutoScaleHeadroom `json:"headrooms,omitempty"`
AutoHeadroomPercentage *int `json:"autoHeadroomPercentage,omitempty"`

forceSendFields []string
nullFields []string
Expand Down Expand Up @@ -809,6 +810,13 @@ func (o *AutoScale) SetHeadrooms(v []*AutoScaleHeadroom) *AutoScale {
return o
}

func (o *AutoScale) SetAutoHeadroomPercentage(v *int) *AutoScale {
if o.AutoHeadroomPercentage = v; o.AutoHeadroomPercentage == nil {
o.nullFields = append(o.nullFields, "AutoHeadroomPercentage")
}
return o
}

// endregion

// region AutoScaleHeadroom
Expand Down
10 changes: 9 additions & 1 deletion service/ocean/providers/azure/nodegroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ type VirtualNodeGroupResourceLimits struct {
}

type VirtualNodeGroupAutoScale struct {
Headrooms []*VirtualNodeGroupHeadroom `json:"headrooms,omitempty"`
Headrooms []*VirtualNodeGroupHeadroom `json:"headrooms,omitempty"`
AutoHeadroomPercentage *int `json:"autoHeadroomPercentage,omitempty"`

forceSendFields []string
nullFields []string
Expand Down Expand Up @@ -340,6 +341,13 @@ func (o *VirtualNodeGroupAutoScale) SetHeadrooms(v []*VirtualNodeGroupHeadroom)
return o
}

func (o *VirtualNodeGroupAutoScale) SetAutoHeadroomPercentage(v *int) *VirtualNodeGroupAutoScale {
if o.AutoHeadroomPercentage = v; o.AutoHeadroomPercentage == nil {
o.nullFields = append(o.nullFields, "AutoHeadroomPercentage")
}
return o
}

//endregion

// region VirtualNodeGroupHeadroom
Expand Down
10 changes: 9 additions & 1 deletion service/ocean/providers/gcp/launchspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ type Taint struct {
}

type AutoScale struct {
Headrooms []*AutoScaleHeadroom `json:"headrooms,omitempty"`
Headrooms []*AutoScaleHeadroom `json:"headrooms,omitempty"`
AutoHeadroomPercentage *int `json:"autoHeadroomPercentage,omitempty"`

forceSendFields []string
nullFields []string
Expand Down Expand Up @@ -602,6 +603,13 @@ func (o *AutoScale) SetHeadrooms(v []*AutoScaleHeadroom) *AutoScale {
return o
}

func (o *AutoScale) SetAutoHeadroomPercentage(v *int) *AutoScale {
if o.AutoHeadroomPercentage = v; o.AutoHeadroomPercentage == nil {
o.nullFields = append(o.nullFields, "AutoHeadroomPercentage")
}
return o
}

//endregion

// region AutoScaleHeadroom
Expand Down

0 comments on commit 900d96b

Please sign in to comment.