-
Notifications
You must be signed in to change notification settings - Fork 97
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
support portName in HTTPScaledObject service scaleTargetRef #1174
support portName in HTTPScaledObject service scaleTargetRef #1174
Conversation
c986503
to
bcd5e45
Compare
Signed-off-by: Jan Wozniak <[email protected]>
bcd5e45
to
9d1e194
Compare
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.
👍 maybe they should be mutually exclusive, can be done using x-kubernetes-validations. If not, we can check that at least one of them is set, also by these X rules. Something like:
// +kubebuilder:validation:XValidation:rule=(has(self.PortName) || has(self.Port))
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.
Looking good, e2e test would be nice
This is neat! I will explore it a bit more and definitely find a place for this in my toolset :)
right, I knew I forgot something, will followup shortly :) |
Co-authored-by: Jirka Kremser <[email protected]> Signed-off-by: Jan Wozniak <[email protected]>
Signed-off-by: Jan Wozniak <[email protected]>
Signed-off-by: Jan Wozniak <[email protected]>
bb59ad6
to
acfe4bd
Compare
Signed-off-by: Jan Wozniak <[email protected]>
17de409
to
8b66f00
Compare
Signed-off-by: Jan Wozniak <[email protected]>
8b66f00
to
a98dab2
Compare
- apiGroups: | ||
- "" | ||
resources: | ||
- services | ||
verbs: | ||
- get | ||
- list | ||
- watch |
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.
highlighting that newly services
RBAC will be necessary for the interceptor
Signed-off-by: Jan Wozniak <[email protected]>
The
HTTPScaledObject
allowed setting only numericalport
value for the scaled services. For improved UX, it also allows to setnamedPort
to match common conventions in the kubernetes API regardingServices
and ports.Checklist