Skip to content

Commit

Permalink
feat: (IAC-1113) Add node labels and taints with a label selector mat…
Browse files Browse the repository at this point in the history
…ching on both the short and long hostname (#61)
  • Loading branch information
AWSmith0216 authored Sep 18, 2023
1 parent 01757ae commit 1ab5716
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/kubernetes/node/labels_taints/tasks/labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
---
- name: Applying labels
ansible.builtin.shell: |
kubectl label nodes {{ ansible_hostname }} {{ label }} --overwrite
kubectl label nodes -l 'kubernetes.io/hostname in ({{ ansible_hostname }},{{ ansible_fqdn }})' {{ label }} --overwrite
with_items: "{{ labels }}"
loop_control:
loop_var: label
Expand Down
2 changes: 1 addition & 1 deletion roles/kubernetes/node/labels_taints/tasks/taints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
---
- name: Applying taints
ansible.builtin.shell: |
kubectl taint nodes {{ ansible_hostname }} {{ taint }} --overwrite
kubectl taint nodes -l 'kubernetes.io/hostname in ({{ ansible_hostname }},{{ ansible_fqdn }})' {{ taint }} --overwrite
with_items: "{{ taints }}"
loop_control:
loop_var: taint
Expand Down

0 comments on commit 1ab5716

Please sign in to comment.