-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple minor corrections #6404
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: rickbrouwer <[email protected]>
Signed-off-by: rickbrouwer <[email protected]>
Signed-off-by: rickbrouwer <[email protected]>
Signed-off-by: rickbrouwer <[email protected]>
Signed-off-by: Rick Brouwer <[email protected]>
Signed-off-by: rickbrouwer <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unnecessary optional when default is set in various scalers
TBH I not sure about this, we might use these tags to generate schema and we would like to capture the optional there. CC @wozniakjan
That's good to know indeed. From TypedConfig keda/pkg/scalers/scalersconfig/typed_config.go Lines 198 to 201 in 29400ed
If there is a good reason, I might even have to make corrections the other way (so add |
Signed-off-by: Rick Brouwer <[email protected]>
12976de
to
067b827
Compare
my logic was that a field with
I won't object, but I am leaning towards your current approach where the extra |
I believe that if a field has a I would also like to choose my current approach. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job! Apart from the discussion about optional
, just a small nit
pkg/common/message/message.go
Outdated
ScaleTargetNoSubresourceMsg = "Target resource doesn't expose /scale subresource" | ||
ScaleTargetNoSubresourceMsg = "Target resource doesn't expose / scale subresource" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this change, the resource is /scale
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My mistake! I corrected it right away.
Signed-off-by: Rick Brouwer <[email protected]>
1d52ad1
to
d6d59d5
Compare
This PR is a collection of some minor corrections:
optional
whendefault
is set in various scalersChecklist