-
Notifications
You must be signed in to change notification settings - Fork 47
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
feat: validator: Load TLS configuration from ConfigMap #1119
feat: validator: Load TLS configuration from ConfigMap #1119
Conversation
874c9bc
to
520ceb4
Compare
@akrejcir Is it simialr to the implementation as in |
It is exactly the same package. I've mentioned it in the commit message: 3b2e200 Do you mean that SSP should import |
520ceb4
to
6ef7c2f
Compare
6ef7c2f
to
d1bdb12
Compare
d1bdb12
to
d5336fd
Compare
These methods are not used from outside the package. Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
Do not create or use the struct when using HTTP. Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
This package was copied directly from vm-console-proxy: https://github.com/kubevirt/vm-console-proxy/tree/main/pkg/filewatch In a future commit, it will replace file watch logic in internal/template-validator/tlsinfo. We do this to simplify watching multiple directories with TRS certificate and TLS configuration. Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
Runs all callbacks before processing watch events. This means that callbacks will have a change to notice the files after the watch was started, but no events happened yet. Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
Using the filewatch package in template validator will make it easier to watch multiple directories in a future commit. Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
The GetClientConfig() will be used in future commit to set TLS options. Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
The TLS configuration is read from a ConfigMap that is mounted as a file. This allows updating the configuration without restarting the pod. Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
This will make it easier to modify the tests in future commit. Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
Check TLS policy of template validator pod. Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
d5336fd
to
a369026
Compare
Quality Gate passedIssues Measures |
/retest |
1 similar comment
/retest |
Nothing to comment from my site. The PR looks great. Nice job! |
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.
/lgtm
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.
/approve
/hold
Putting hold to give chance to address Ben's comment.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 0xFelix The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |
What this PR does / why we need it:
This PR moves the TLS configuration of
template-validator
to a ConfigMap. It is mounded as a file in the pod, and validator is able to update its configuration without restarting the pod.Which issue(s) this PR fixes:
Jira: https://issues.redhat.com/browse/CNV-28716
Release note: