Skip to content

Commit

Permalink
fix: scalebehavior as a pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
yetone committed May 11, 2023
1 parent 62abcfe commit 966f215
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modelschemas/deployment_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ const (
)

type HPAPolicy struct {
Metrics []HPAMetric `json:"metrics"`
ScaleDownBehavior HPAScaleBehavior `json:"scale_down_behavior"`
ScaleUpBehavior HPAScaleBehavior `json:"scale_up_behavior"`
Metrics []HPAMetric `json:"metrics,omitempty"`
ScaleDownBehavior *HPAScaleBehavior `json:"scale_down_behavior,omitempty"`
ScaleUpBehavior *HPAScaleBehavior `json:"scale_up_behavior,omitempty"`
}

type DeploymentTargetHPAConf struct {
Expand Down

0 comments on commit 966f215

Please sign in to comment.