This patch introduces a new structure of the it/dep repo.
Components are restructured into a tree. Helm charts are
designed with common templates so that parameters can be
standardized.
This patches introduced installation scripts that take override
value.yaml files for all the helm charts.
Signed-off-by: Zhe Huang <zhehuang@research.att.com>
Change-Id: I44f043f8c7a93fa7f50ac31c37f9cb5e0efbfb53
diff --git a/infra/10-Nexus/helm/templates/save-secret-job.yaml b/infra/10-Nexus/helm/templates/save-secret-job.yaml
new file mode 100644
index 0000000..801df24
--- /dev/null
+++ b/infra/10-Nexus/helm/templates/save-secret-job.yaml
@@ -0,0 +1,27 @@
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: cert-copy
+spec:
+ template:
+ spec:
+ containers:
+ - name: cert-copy
+ image: alpine
+ command: ["cp", "-rL", "/var/run/certs/..data/tls.crt", "/var/run/certs-copy/"]
+ # command: ["tail", "-f", "/dev/null"]
+ volumeMounts:
+ - name: certs
+ mountPath: /var/run/certs
+ readOnly: true
+ - name: write-to-volume
+ mountPath: /var/run/certs-copy
+ volumes:
+ - name: certs
+ secret:
+ secretName: {{ include "common.repositorycert" . }}
+ - name: write-to-volume
+ hostPath:
+ path: /tmp
+ restartPolicy: Never
+ backoffLimit: 4