Closed jiangpengcheng closed 10 months ago
(If this PR fixes a github issue, please add Fixes #<xyz>.)
Fixes #<xyz>
Fixes #
(or if this PR is one task of a github issue, please add Master Issue: #<xyz> to link to the master issue.)
Master Issue: #<xyz>
Master Issue: #
In some cases, the hpa.Spec.Behavior.ScaleUp and hpa.Spec.Behavior.ScaleDown can be nil, which results NPE errors
hpa.Spec.Behavior.ScaleUp
hpa.Spec.Behavior.ScaleDown
Describe the modifications you've done.
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
This change added tests and can be verified as follows:
(example:)
Check the box below.
Need to update docs?
[ ] doc-required
doc-required
(If you need help on updating docs, create a doc issue)
[x] no-need-doc
no-need-doc
(Please explain why)
[ ] doc
doc
(If this PR contains doc changes)
(If this PR fixes a github issue, please add
Fixes #<xyz>
.)Fixes #
(or if this PR is one task of a github issue, please add
Master Issue: #<xyz>
to link to the master issue.)Master Issue: #
Motivation
In some cases, the
hpa.Spec.Behavior.ScaleUp
andhpa.Spec.Behavior.ScaleDown
can be nil, which results NPE errorsModifications
Describe the modifications you've done.
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Documentation
Check the box below.
Need to update docs?
[ ]
doc-required
(If you need help on updating docs, create a doc issue)
[x]
no-need-doc
(Please explain why)
[ ]
doc
(If this PR contains doc changes)