Skip to content

Commit

Permalink
Merge pull request #311 from whitebear009/patch-1
Browse files Browse the repository at this point in the history
After creating an ehpa with a behavior, synchronize the behavior to its corresponding hpa
  • Loading branch information
qmhu authored May 11, 2022
2 parents c059ac5 + 0393e3a commit b7218fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/ehpa/hpa.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (c *EffectiveHPAController) NewHPAObject(ctx context.Context, ehpa *autosca
var behavior *autoscalingv2.HorizontalPodAutoscalerBehavior
// Behavior works in k8s version > 1.18
if c.K8SVersion.Minor() >= 18 && ehpa.Spec.Behavior != nil {
behavior = hpa.Spec.Behavior
behavior = ehpa.Spec.Behavior
} else {
behavior = nil
}
Expand Down

0 comments on commit b7218fc

Please sign in to comment.