-
Notifications
You must be signed in to change notification settings - Fork 33
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(RHTAPWATCH-1039): mount custom certificate #1814
Conversation
@zregvart hi,
|
@yftacherzog, run |
/ok-to-test |
Introducing optional parameters for referencing a config map containing CA bundle. The certificate is mounted to a location within the path the OS is taking certificates from. Signed-off-by: Yftach Herzog <[email protected]>
e237b52
to
857f069
Compare
Thanks! I was running into the error below when running that command locally, but for now I was able to work around it by running this inside a container.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1814 +/- ##
=======================================
Coverage 80.74% 80.74%
=======================================
Files 68 68
Lines 4954 4954
=======================================
Hits 4000 4000
Misses 954 954
Flags with carried forward coverage won't be shown. Click here to find out more. |
@@ -259,3 +274,12 @@ spec: | |||
- > | |||
.result == "SUCCESS" or .result == "WARNING" or ($strict | not) | |||
- "$(results.TEST_OUTPUT.path)" | |||
|
|||
volumes: |
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.
Any particular reason a volume, instead of a workspace, was used?
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.
No particular reason. Any best practices around this? I'm not sure what's the impact of using one vs. the other.
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.
I usually prefer a workspace because it provide more flexibility. While a volume is tied to a particular "storage" type, e.g. ConfigMap, a workspace is not. A workspace can be from a Secret, ConfigMap, PVC, emptyDir, etc. Although most of those would not be applicable in this case, I can see either Secret or ConfigMap being used.
More info here: https://tekton.dev/docs/pipelines/workspaces/
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.
Thanks for the explanation! I'll keep that in mind going forward.
Introducing optional parameters for referencing a config map containing CA bundle. The certificate is mounted to a location within the path the OS is taking certificates from.