-
Notifications
You must be signed in to change notification settings - Fork 75
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
Configurable custom CA #17
base: master
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 |
---|---|---|
|
@@ -108,7 +108,7 @@ data: | |
--provisioner "{{.Values.ca.provisioner.name}}" \ | ||
--with-ca-url "{{include "step-certificates.url" .}}" \ | ||
--password-file "$TMP_CA_PASSWORD" \ | ||
--provisioner-password-file "$TMP_CA_PROVISIONER_PASSWORD" {{ if not .Values.ca.db.enabled }}--no-db{{ end }} | ||
--provisioner-password-file "$TMP_CA_PROVISIONER_PASSWORD" {{ if not .Values.ca.db.enabled }}--no-db{{ end }} {{ if .Values.ca.bootstrap.rootCA.secret }}--root /tmp/certs/tls.crt --key /tmp/certs/tls.key{{ end }} | ||
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. Can you add it in a new line, and now that you're on it, can you also add the 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. Actually, not sure how as 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. As we only adding one volume, we can not just use bash for this without making it complex, so I think you should name it in the way that You can add variables for those, and you can leave those names as default because you can do the |
||
|
||
rm -f $TMP_CA_PASSWORD $TMP_CA_PROVISIONER_PASSWORD | ||
|
||
|
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.
So, this will be two volumes, one for the certificate, and one for the key, and the code for one of them would look like:
And one similar for the key, but you'll have the flexibility to define both cert and key in just one volume.
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.
Based on my reply above it should be just one volume, following standard k8s secret.
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.
Just one volume, but being able to mount from different sources. I think this would make it:
{{- toYaml .Values.ca.bootstrap.rootRef | nindent xx }}
Can you call it
rootRef
? or something similar to make clear that is a reference.