Skip to content

Commit

Permalink
refactor: #91 allow setting of additional arbitrary environment varia…
Browse files Browse the repository at this point in the history
…bles
  • Loading branch information
Cpcrook committed Feb 18, 2022
1 parent 52e6ba7 commit 54e1443
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 21 deletions.
6 changes: 2 additions & 4 deletions step-certificates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,8 @@ chart and their default values.
| `ca.db.accessModes` | Persistent volume access mode | `["ReadWriteOnce"]` |
| `ca.db.size` | Persistent volume size | `10Gi` |
| `ca.db.existingClaim` | Persistent volume existing claim name. If defined, PVC must be created manually before volume will be bound | `""` |
| `ca.kms.type` | Key management system to use. | `""` |
| `ca.kms.id` | Identifier for KMS authentication (e.g. Azure KeyVault ClientID) | `""` |
| `ca.kms.secret` | Secret/password for KMS authentication (e.g. Azure KeyVault ClientSecret) | `""` |
| `ca.kms.tenant` | Tenant for KMS authentication (e.g. Azure KeyVault TenantID) | `""` |
| `ca.kms` | Key management system to use. | `""` |
| `ca.env` | Environment variables to set in `step-certificates` container. | `[]` |
| `ca.runAsRoot` | Run the CA as root. | `false` |
| `ca.bootstrap.postInitHook` | Extra script snippet to run after `step ca init` has completed. | `""` |
| `linkedca.token` | The token used to configure step-ca using the linkedca mode. | `""` |
Expand Down
9 changes: 2 additions & 7 deletions step-certificates/templates/ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,8 @@ spec:
env:
- name: NAMESPACE
value: "{{ .Release.Namespace }}"
{{- if .Values.ca.kms.type }}
- name: AZURE_CLIENT_ID
value: "{{ .Values.ca.kms.id }}"
- name: AZURE_CLIENT_SECRET
value: "{{ .Values.ca.kms.secret }}"
- name: AZURE_TENANT_ID
value: "{{ .Values.ca.kms.tenant }}"
{{- if .Values.ca.env }}
{{- toYaml .Values.ca.env | nindent 10 }}
{{- end }}
{{- if or .Values.linkedca.token (and .Values.linkedca.secretKeyRef.name .Values.linkedca.secretKeyRef.key) }}
- name: STEP_CA_TOKEN
Expand Down
14 changes: 4 additions & 10 deletions step-certificates/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,16 +257,10 @@ ca:
- ReadWriteOnce
# size is the Persistent Volume size.
size: 10Gi
# kms contains the step-certificates key management system configuration
kms:
# type of KMS to use (e.g. azurekms for Azure KeyVault)
type: ""
# identifier for KMS credentials (e.g. service principal ClientID for Azure)
id: ""
# secret for KMS credentials (e.g. service principal ClientSecret for Azure)
secret: ""
# secret for KMS credentials (e.g. service principal ClientSecret for Azure)
tenant: ""
# kms type to utilize
kms: ""
# additional environment variables to set in the step-certificates container
env: []
# runAsRoot runs the ca as root instead of the step user. This is required in
# some storage provisioners.
runAsRoot: false
Expand Down

0 comments on commit 54e1443

Please sign in to comment.