Skip to content
Snippets Groups Projects
Commit 7ab7a826 authored by gabriel klawitter's avatar gabriel klawitter Committed by GitHub
Browse files

ci: fix kubernetes chart (#2111)

parent e28ff32b
No related merge requests found
......@@ -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/
......
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