feat: service.{http,ssh}.loadBalancerClass
#640
Reference in New Issue
Block a user
No description provided.
Delete Branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description of the change
Introduce
service.{http,ssh}.loadBalancerClass
Benefits
Feature was not supported before. This is required if your cluster has multiple loadBalancer options and you want to select one
Possible drawbacks
More yaml.
Checklist
values.yaml
and added to theREADME.md
using readme-generator-for-helmThanks for contributing. It would be great to add unit tests for this feature. To ensure it is rendered correctly in different scenarios.
These tests should roughly cover the changes, namely making sure
type: LoadBalancer
properties aren't set when we aren't in aLoadBalancer
and thatloadBalancerClass
exists (only) when it's set.Thanks for adding tests!
Can we expand the tests to check for existence/non-existence for both
ssh
andhttp
?ping @Karitham
oop sorry forgot about this
I've added a test but I'm generally unhappy about using regex to test this, unfortunately I don't really have a better solution. Let me know if I can make them better
You could split the
it
with the regex and just duplicate that spec. Duplicating within tests is totally fine, IMO.@Karitham Thanks for your patience. LGTM now.
@justusbunsi Feel free to add more comments or merge!