test: add unit tests for pkg/tls #3163
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
🎉 Welcome to the Kubeflow Spark Operator! 🎉
Thanks for opening your first PR! We're happy to have you as part of our community 🚀
Here's what happens next:
Join the community:
Feel free to ask questions in the comments if you need any help or clarification!
Thanks again for contributing to Kubeflow! 🙏
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign jacobsalway for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
<details open>
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
</details>
<!-- META={"approvers":["jacobsalway"]} -->
Thanks for the PR @magic-peach! Please rewrite the tests using Ginkgo/Gomega as that would be the default going forward.
Rewrote the tests using Ginkgo/Gomega, thanks for the pointer.
Nil-cipher path under-asserts, Also pin MinVersion and NextProtos.
Happy path should use TLS 1.2. Matches flag defaults; cipher suites actually apply there.
/ok-to-test
Hi @magic-peach can you address the above comments. Thanks
tariq-hasan
magic-peach
Purpose of this PR
pkg/tls parses the --tls-min-version and --tls-cipher-suites flags used by both the webhook and controller manager startup paths (cmd/operator/webhook/start.go and cmd/operator/controller/start.go), but had no test coverage at all.
Proposed changes:
Change Category
Rationale
Test-only change, no behavior modified.
Checklist
Additional Notes
No existing issue tracks this; found while reading the TLS setup code.