Skip to content

Commit

Permalink
Delete misnammed kubeadm-version.yml
Browse files Browse the repository at this point in the history
The important action in kubeadm-version.yml is the templating of the configuration,
not finding / setting the version

Signed-off-by: Etienne Champetier <[email protected]>
  • Loading branch information
champtar authored and k8s-ci-robot committed Mar 5, 2021
1 parent 53e5ef6 commit a9c97e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
11 changes: 9 additions & 2 deletions roles/kubernetes/control-plane/tasks/kubeadm-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,15 @@
kubeadm_config_api_fqdn: "{{ apiserver_loadbalancer_domain_name|default('lb-apiserver.kubernetes.local') }}"
when: loadbalancer_apiserver is defined

- name: kubeadm | set kubeadm version
import_tasks: kubeadm-version.yml
- name: Set kubeadm api version to v1beta2
set_fact:
kubeadmConfig_api_version: v1beta2

- name: kubeadm | Create kubeadm config
template:
src: "kubeadm-config.{{ kubeadmConfig_api_version }}.yaml.j2"
dest: "{{ kube_config_dir }}/kubeadm-config.yaml"
mode: 0640

- name: kubeadm | Check if apiserver.crt contains all needed SANs
command: openssl x509 -noout -in "{{ kube_cert_dir }}/apiserver.crt" -check{{ item|ipaddr|ternary('ip','host') }} "{{ item }}"
Expand Down
10 changes: 0 additions & 10 deletions roles/kubernetes/control-plane/tasks/kubeadm-version.yml

This file was deleted.

0 comments on commit a9c97e5

Please sign in to comment.