Skip to content
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

Adds bootstrap data secret #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion step-certificates/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: step-certificates
version: 0.14.6
version: 0.15.0
appVersion: 0.14.6
description: An online certificate authority and related tools for secure automated certificate management, so you can use TLS everywhere.
keywords:
Expand Down
1 change: 1 addition & 0 deletions step-certificates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ chart and their default values.
| `ca.db.accessModes` | Persistent volume access mode | `["ReadWriteOnce"]` |
| `ca.db.size` | Persistent volume size | `10Gi` |
| `ca.runAsRoot` | Run the CA as root. | `false` |
| `ca.bootstrap.data` | Secret for bootstrap data | `{}` |
| `ca.bootstrap.postInitHook` | Extra script snippet to run after `step ca init` has completed. | `""` |
| `service.type` | Service type | `ClusterIP` |
| `service.port` | Incoming port to access Step CA | `443` |
Expand Down
9 changes: 9 additions & 0 deletions step-certificates/templates/bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ spec:
- name: bootstrap
configMap:
name: {{ include "step-certificates.fullname" . }}-bootstrap
{{- if .Values.ca.bootstrap.data }}
- name: data
secret:
secretName: {{ .Values.ca.bootstrap.data.name }}
{{- end}}
containers:
- name: config
image: "{{ .Values.bootstrapImage.repository }}:{{ .Values.bootstrapImage.tag }}"
Expand All @@ -36,4 +41,8 @@ spec:
- name: bootstrap
mountPath: /home/step/bootstrap
readOnly: true
{{- if .Values.ca.bootstrap.data }}
- name: data
mountPath: /tmp/bootstrap-data
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions step-certificates/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ ca:
# some storage provisioners.
runAsRoot: false
bootstrap:
# A secret which will be mounted to the bootstrap job. This allows for adding custom
# certificates or federated roots.
data: {}
# name:
# Add script snippets here to be executed after the step ca init has been run
postInitHook: ""

Expand Down