-
Notifications
You must be signed in to change notification settings - Fork 50
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
add newlines between certs #685
Conversation
618f8a8
to
a680d40
Compare
Change to PR detected. A new PR build was completed. |
a680d40
to
1f1ec42
Compare
Change to PR detected. A new PR build was completed. |
/lgtm |
1f1ec42
to
92dced1
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Humair Khan <HumairAK@users.noreply.github.com>
92dced1
to
89b8aee
Compare
Change to PR detected. A new PR build was completed. |
/lgtm |
Due to the we are combining certificates from multiple sources I would like to ask for a new test (ref 1).
are combined into Each source is a multi-line string YAML attribute, the multi-line string can be represented by Here is an example: apiVersion: v1
kind: ConfigMap
metadata:
name: multi-line-test
data:
ex1: |-
Line one.
Line two.
ex2: |
Line one.
Line two.
ex3: |+
Line one.
Line two.
ex4: >-
Line one.
Line two.
ex5: >
Line one.
Line two.
ex6: >+
Line one.
Line two.
ref 1 |
@diegolovison these tests cases are covered with the PR, except for DSCI, which requires ODH to test, which the current infra does not support, adding odh testing warrants a ticket of its own. |
The issue resolved by this Pull Request:
Resolves https://issues.redhat.com/browse/RHOAIENG-11297
Description of your changes:
If odh-trusted-ca-bundle has now newline, it concatenates the ca bundle with service-ca without any newline separate, an easy fix is to ensure there is always at least one new line between each ca bundle merge.
Testing instructions
Deploy podtopodtls in a self-signed environment with odh-trusted bundle with no newline at the end of file, run a pipeline, if it succeeds, it works.
Note that I have also adjusted the func tests to ignore trailing spaces, because it's incredibly buggy and non-intuitive to make work correctly, testing these portions should be saved for unit testing.
Checklist