Skip to content

Commit

Permalink
eve: Add label role node when untaint node
Browse files Browse the repository at this point in the history
Add the role label "node" to the node when untaint so that if we re-run
bootstrap we do not add taints again
  • Loading branch information
TeddyAndrieux committed Apr 14, 2021
1 parent 3148463 commit 174313c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eve/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,9 @@ models:
command: |
ssh -F ssh_config bootstrap <<ENDSSH
sudo kubectl --kubeconfig /etc/kubernetes/admin.conf \
patch node "$NODE_NAME" --patch '{"spec": {"taints": []}}'
patch node "$NODE_NAME" --patch '{"spec": {"taints": []}}' &&
sudo kubectl --kubeconfig /etc/kubernetes/admin.conf \
label node --overwrite "$NODE_NAME" "node-role.kubernetes.io/node="
ENDSSH
workdir: build/eve/workers/openstack-terraform/terraform/
haltOnFailure: true
Expand Down

0 comments on commit 174313c

Please sign in to comment.