Commit daef1777 authored by saiakhil46's avatar saiakhil46
Browse files

added config.json file in certificatesign and updated templates

Showing with 39 additions and 0 deletions
+39 -0
......@@ -22,6 +22,14 @@
- "{{ chart_path }}/schemas/*.json"
when: release_name == "registry"
- name: template config json
template:
src: "{{ item }}"
dest: "{{ item }}"
with_fileglob:
- "{{ chart_path }}/configs/*.json"
when: release_name == "certificatesign"
- name: Load role to decrypt private keys, copy to private keys helm chart
include_role:
name: mount-keys
......
{
"issuers": {
"default": {
"publicKey": {{ CERTIFICATE_PUBLIC_KEY | default("") }},
"privateKey": {{ CERTIFICATE_PRIVATE_KEY | default("") }},
"signatureType": "RSA",
"verificationMethod": "did:india",
"$comment": "The above are test keys and it needs to be replaced before going to production"
}
}
}
\ No newline at end of file
......@@ -9,3 +9,16 @@ metadata:
creationTimestamp: null
name: {{ .Chart.Name }}-config
namespace: {{ .Values.namespace }}
---
{{- $configs := .Files.Glob "configs/*" }}
{{ if $configs }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Chart.Name }}-conf
namespace: {{ .Values.namespace }}
data:
{{ (.Files.Glob "configs/*").AsConfig | indent 2 }}
{{ end }}
\ No newline at end of file
......@@ -34,6 +34,13 @@ spec:
{{ toYaml .Values.resources | indent 10 }}
ports:
- containerPort: {{ .Values.network.port }}
volumeMounts:
- name: {{ .Chart.Name }}-conf
mountPath: /etc/signer
volumes:
- name: {{ .Chart.Name }}-conf
configMap:
name: {{ .Chart.Name }}-conf
---
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment