Merge "Validate that node hostname matches the kube node name before join"

This commit is contained in:
Tin Lam 2018-01-20 17:15:10 -05:00 committed by Gerrit Code Review
commit 6c38c840ea
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
if [ "$(hostname)" != "{{ config['Genesis:hostname'] }}" ]; then
echo "The node hostname must match the Kubernetes node name" 1>&2
exit 1
fi
{% include "header.sh" with context %}
{% include "up.sh" with context %}

View File

@ -1,3 +1,8 @@
if [ "$(hostname)" != "{{ config['KubernetesNode:hostname'] }}" ]; then
echo "The node hostname must match the Kubernetes node name" 1>&2
exit 1
fi
{% include "header.sh" with context %}
{% include "up.sh" with context %}