ci: fix kubernetes chart (#2111)

This commit is contained in:
gabriel klawitter
2019-03-25 16:33:43 +01:00
committed by GitHub
parent e28ff32b89
commit 7ab7a826d3
2 changed files with 2 additions and 4 deletions
@@ -35,8 +35,7 @@ spec:
type: NodePort
# don't route exteral traffic to non-local pods
externalTrafficPolicy: Local
{{- else }}
{{- if .Values.validator.keys }}
{{- else if .Values.validator.keys }}
{{- $root := . -}}
{{- range until (int .Values.nodes.replicas) }}
---
@@ -53,4 +52,3 @@ spec:
protocol: TCP
{{- end }}
{{- end }}
{{- end }}
@@ -58,7 +58,7 @@ spec:
- sed -n -r "s/^${POD_NAME}-key ([^ ]+)$/\1/p" /etc/validator/secrets > {{ .Values.image.basepath }}/key;
sed -n -r "s/^${POD_NAME}-node-key ([^ ]+)$/\1/p" /etc/validator/secrets > {{ .Values.image.basepath }}/node-key;
sed -n -r "s/^${POD_NAME}-name ([^ ]+)$/\1/p" /etc/validator/secrets > {{ .Values.image.basepath }}/name;
test -z {{ .Values.image.basepath }}/name && echo "${POD_NAME}" > {{ .Values.image.basepath }}/name
test -s {{ .Values.image.basepath }}/name || echo "${POD_NAME}" > {{ .Values.image.basepath }}/name
env:
# from (workaround for hostname)
# https://kubernetes.io/docs/tasks/inject-data-application/environment-variable-expose-pod-information/