feat: service.{http,ssh}.loadBalancerClass #640

Merged
justusbunsi merged 5 commits from Karitham/helm-chart:main into main 2024-07-15 15:13:25 +00:00
Contributor

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

  • Parameters are documented in the values.yaml and added to the README.md using readme-generator-for-helm
  • Templating unittests are added
<!-- Before you open the request please review the following guidelines and tips to help it be more easily integrated: - Describe the scope of your change - i.e. what the change does. - Describe any known limitations with your change. - Please run any tests or examples that can exercise your modified code. Thank you for contributing! We will try to review, test and integrate the change as soon as we can. --> ### Description of the change Introduce `service.{http,ssh}.loadBalancerClass` <!-- Describe the scope of your change - i.e. what the change does. --> ### Benefits <!-- What benefits will be realized by the code change? --> Feature was not supported before. This is required if your cluster has multiple loadBalancer options and you want to select one ### Possible drawbacks <!-- Describe any known limitations with your change --> More yaml. ### Checklist <!-- [Place an '[X]' (no spaces) in all applicable fields. Please remove unrelated fields.] --> - [x] Parameters are documented in the `values.yaml` and added to the `README.md` using [readme-generator-for-helm](https://github.com/bitnami-labs/readme-generator-for-helm) - [x] Templating unittests are added
Karitham added 1 commit 2024-04-15 15:56:12 +00:00
feat: service.{http,ssh}.loadBalancerClass
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 43s
614d9c9b7c
Member

Thanks for contributing. It would be great to add unit tests for this feature. To ensure it is rendered correctly in different scenarios.

Thanks for contributing. It would be great to add unit tests for this feature. To ensure it is rendered correctly in different scenarios.
Karitham added 1 commit 2024-04-15 16:51:26 +00:00
add tests for loadBalancerClass and other type: LoadBalancer properties
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 43s
5c098047b1
Author
Contributor

These tests should roughly cover the changes, namely making sure type: LoadBalancer properties aren't set when we aren't in a LoadBalancer and that loadBalancerClass exists (only) when it's set.

These tests should roughly cover the changes, namely making sure `type: LoadBalancer` properties aren't set when we aren't in a `LoadBalancer` and that `loadBalancerClass` exists (only) when it's set.
Karitham added 1 commit 2024-04-15 16:56:18 +00:00
make sure the default behavior is the same as before this feature
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 38s
638d50a284
pat-s Comment%!(EXTRA template.HTML=2024-05-02 08:26:20 +00:00)
@ -52,0 +54,4 @@
template: templates/gitea/ssh-svc.yaml
set:
service:
ssh:
Member

Thanks for adding tests!

Can we expand the tests to check for existence/non-existence for both ssh and http?

Thanks for adding tests! Can we expand the tests to check for existence/non-existence for **both** `ssh` and `http`?
Member

ping @Karitham

ping @Karitham
Author
Contributor

oop sorry forgot about this

oop sorry forgot about this
Author
Contributor

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

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
Member

You could split the it with the regex and just duplicate that spec. Duplicating within tests is totally fine, IMO.

You could split the `it` with the regex and just duplicate that spec. Duplicating within tests is totally fine, IMO.
Karitham added 1 commit 2024-05-27 07:36:58 +00:00
add a test asserting both ssh and http services exist
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 38s
5851f9a65c
I'm not sure how to better test this, feel free to fix it or
let me know of better ways
Karitham force-pushed main from 5851f9a65c to 1707c56fd1 2024-05-27 07:39:45 +00:00 Compare
pat-s added 1 commit 2024-07-13 12:03:28 +00:00
Merge branch 'main' into main
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 34s
1e710633c5
pat-s approved these changes 2024-07-13 12:04:50 +00:00
pat-s left a comment
Member

@Karitham Thanks for your patience. LGTM now.

@justusbunsi Feel free to add more comments or merge!

@Karitham Thanks for your patience. LGTM now. @justusbunsi Feel free to add more comments or merge!
justusbunsi added the
kind
feature
label 2024-07-15 15:12:33 +00:00
justusbunsi merged commit a535919025 into main 2024-07-15 15:13:25 +00:00
Sign in to join this conversation.
No description provided.