Skip to content

Commit

Permalink
Remove special case for PodNodeSelector
Browse files Browse the repository at this point in the history
This is already handled by the previous task.
  • Loading branch information
VannTen committed Aug 26, 2024
1 parent 47c3949 commit d340273
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 0 additions & 9 deletions roles/kubernetes/control-plane/tasks/kubeadm-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,6 @@
- item in kube_apiserver_admission_plugins_needs_configuration
loop: "{{ kube_apiserver_enable_admission_plugins }}"

- name: Kubeadm | Configure default cluster podnodeslector
template:
src: "podnodeselector.yaml.j2"
dest: "{{ kube_config_dir }}/admission-controls/podnodeselector.yaml"
mode: "0640"
when:
- kube_apiserver_admission_plugins_podnodeselector_default_node_selector is defined
- kube_apiserver_admission_plugins_podnodeselector_default_node_selector | length > 0

- name: Kubeadm | Check apiserver.crt SANs
vars:
apiserver_ips: "{{ apiserver_sans | map('ansible.utils.ipaddr') | reject('equalto', False) | list }}"
Expand Down
1 change: 1 addition & 0 deletions roles/kubernetes/control-plane/vars/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
kube_apiserver_admission_plugins_needs_configuration:
- EventRateLimit
- PodSecurity
- PodNodeSelector

0 comments on commit d340273

Please sign in to comment.