-
Notifications
You must be signed in to change notification settings - Fork 28
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
Adding support for custom CAs (issue #11). #12
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -54,6 +54,21 @@ $ kubectl exec -it "$POD_NAME" -- /opt/code-marketplace add https://github.com/V | |||||||
In the future it will be possible to use Artifactory for storing and retrieving | ||||||||
extensions instead of a persistent volume. | ||||||||
|
||||||||
## Adding custom certificate authorities | ||||||||
|
||||||||
If the location for retrieving extensions (or if using Artifactory storage) is not signed by a common CA, then create a secret in the deployed namespace: | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just a bit of wrapping to match the rest:
Suggested change
|
||||||||
``` | ||||||||
kubectl create secret -n $namespace generic all-cas --from-file="certificate1.pem"=/path/to/certificate1.pem \ | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thinking it might look nice if all the
Suggested change
|
||||||||
--from-file="certificate2.pem"=path/to/certificate2.pem \ | ||||||||
--from-file="certificate3.pem"=path/to/certificate3.pem | ||||||||
``` | ||||||||
|
||||||||
And then, set the certificates.secretName to match: | ||||||||
|
||||||||
```console | ||||||||
$ helm upgrade --install code-marketplace ./helm-chart --set certificates.secretName "all-cas" | ||||||||
``` | ||||||||
|
||||||||
## Uninstall | ||||||||
|
||||||||
To uninstall/delete the marketplace deployment: | ||||||||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -93,3 +93,10 @@ persistence: | |||||||
repo: extensions | ||||||||
# Size is ignored when using Artifactory. | ||||||||
size: 100Gi | ||||||||
|
||||||||
# Create a secret with all additional certificate authorities, ex: | ||||||||
# kubectl create secret -n $namespace generic all-cas --from-file="certificate1.pem"=/path/to/certificate1.pem \ | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
# --from-file="certificate2.pem"=path/to/certificate2.pem \ | ||||||||
# --from-file="certificate3.pem"=path/to/certificate3.pem | ||||||||
certificates: | ||||||||
secretName: "" |
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.
Minor formatting suggestion (just some capitalization to match the other headings, wrapping, and one more heading level).