mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
Merge pull request #11868 from tico88612/test/flatcar-4081
Add Flatcar 4081 CI test
This commit is contained in:
@@ -55,6 +55,7 @@ pr:
|
|||||||
- ubuntu22-calico-all-in-one-upgrade
|
- ubuntu22-calico-all-in-one-upgrade
|
||||||
- ubuntu24-calico-etcd-datastore
|
- ubuntu24-calico-etcd-datastore
|
||||||
- ubuntu24-ha-separate-etcd
|
- ubuntu24-ha-separate-etcd
|
||||||
|
- flatcar4081-calico
|
||||||
|
|
||||||
# The ubuntu20-calico-all-in-one jobs are meant as early stages to prevent running the full CI if something is horribly broken
|
# The ubuntu20-calico-all-in-one jobs are meant as early stages to prevent running the full CI if something is horribly broken
|
||||||
ubuntu20-calico-all-in-one:
|
ubuntu20-calico-all-in-one:
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ debian11 | :white_check_mark: | :x: | :white_check_mark: | :x: | :x: | :x: | :w
|
|||||||
debian12 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: | :x: |
|
debian12 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: | :x: |
|
||||||
fedora39 | :white_check_mark: | :x: | :x: | :x: | :x: | :white_check_mark: | :x: |
|
fedora39 | :white_check_mark: | :x: | :x: | :x: | :x: | :white_check_mark: | :x: |
|
||||||
fedora40 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
fedora40 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
|
flatcar4081 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
openeuler24 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: |
|
openeuler24 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
opensuse15 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: |
|
opensuse15 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
rockylinux8 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: |
|
rockylinux8 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
@@ -32,6 +33,7 @@ debian11 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
|||||||
debian12 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
debian12 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
fedora39 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: |
|
fedora39 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
fedora40 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
fedora40 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
|
flatcar4081 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
openeuler24 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
openeuler24 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
opensuse15 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
opensuse15 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
rockylinux8 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
rockylinux8 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
@@ -51,6 +53,7 @@ debian11 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: |
|
|||||||
debian12 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: |
|
debian12 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
fedora39 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
fedora39 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
fedora40 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: |
|
fedora40 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
|
flatcar4081 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
openeuler24 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
openeuler24 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
opensuse15 | :x: | :white_check_mark: | :x: | :x: | :x: | :x: | :x: |
|
opensuse15 | :x: | :white_check_mark: | :x: | :x: | :x: | :x: | :x: |
|
||||||
rockylinux8 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
rockylinux8 | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
|
||||||
|
|||||||
@@ -55,13 +55,5 @@ spec:
|
|||||||
containerDisk:
|
containerDisk:
|
||||||
image: quay.io/kubespray/vm-{{ cloud_image }}
|
image: quay.io/kubespray/vm-{{ cloud_image }}
|
||||||
- name: cloudinitvolume
|
- name: cloudinitvolume
|
||||||
cloudInitNoCloud:
|
cloudInit{{ 'ConfigDrive' if cloud_image.startswith('flatcar') else 'NoCloud' }}:
|
||||||
userData: |
|
userDataBase64: '{{ ((ignition_config | to_json) if cloud_image.startswith('flatcar') else cloudinit_config) | b64encode }}'
|
||||||
#cloud-config
|
|
||||||
users:
|
|
||||||
- name: {{ lookup('env', 'ANSIBLE_REMOTE_USER') }}
|
|
||||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
|
||||||
shell: /bin/bash
|
|
||||||
lock_passwd: False
|
|
||||||
ssh_authorized_keys:
|
|
||||||
- {{ ssh_key.public_key }}
|
|
||||||
|
|||||||
@@ -34,3 +34,25 @@ ci_job_id: "{{ lookup('ansible.builtin.env', 'CI_JOB_ID', default=undefined) }}"
|
|||||||
pod_name: "{{ lookup('ansible.builtin.env', 'POD_NAME', default=undefined) }}"
|
pod_name: "{{ lookup('ansible.builtin.env', 'POD_NAME', default=undefined) }}"
|
||||||
pod_uid: "{{ lookup('ansible.builtin.env', 'POD_UID', default=undefined) }}"
|
pod_uid: "{{ lookup('ansible.builtin.env', 'POD_UID', default=undefined) }}"
|
||||||
pod_namespace: "{{ lookup('ansible.builtin.env', 'POD_NAMESPACE', default=undefined) }}"
|
pod_namespace: "{{ lookup('ansible.builtin.env', 'POD_NAMESPACE', default=undefined) }}"
|
||||||
|
|
||||||
|
cloudinit_config: |
|
||||||
|
#cloud-config
|
||||||
|
users:
|
||||||
|
- name: {{ lookup('env', 'ANSIBLE_REMOTE_USER') }}
|
||||||
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||||
|
shell: /bin/bash
|
||||||
|
lock_passwd: False
|
||||||
|
ssh_authorized_keys:
|
||||||
|
- {{ ssh_key.public_key }}
|
||||||
|
|
||||||
|
ignition_config:
|
||||||
|
ignition:
|
||||||
|
version: "3.2.0"
|
||||||
|
passwd:
|
||||||
|
users:
|
||||||
|
- name: "{{ lookup('env', 'ANSIBLE_REMOTE_USER') }}"
|
||||||
|
groups:
|
||||||
|
- sudo
|
||||||
|
- wheel
|
||||||
|
sshAuthorizedKeys:
|
||||||
|
- "{{ ssh_key.public_key }}"
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ deploy_netchecker: true
|
|||||||
dns_min_replicas: 1
|
dns_min_replicas: 1
|
||||||
unsafe_show_logs: true
|
unsafe_show_logs: true
|
||||||
|
|
||||||
|
bin_dir: "{{ '/opt/bin' if ansible_os_family == 'Flatcar' else '/usr/local/bin' }}"
|
||||||
|
|
||||||
# Registry mirrors settings
|
# Registry mirrors settings
|
||||||
docker_registry_mirrors:
|
docker_registry_mirrors:
|
||||||
- "https://mirror.gcr.io"
|
- "https://mirror.gcr.io"
|
||||||
|
|||||||
11
tests/files/flatcar4081-calico.yml
Normal file
11
tests/files/flatcar4081-calico.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
# Instance settings
|
||||||
|
cloud_image: flatcar-4081
|
||||||
|
mode: default
|
||||||
|
vm_memory: 3072
|
||||||
|
|
||||||
|
# Kubespray settings
|
||||||
|
metrics_server_enabled: true
|
||||||
|
dashboard_namespace: "kube-dashboard"
|
||||||
|
dashboard_enabled: true
|
||||||
|
loadbalancer_apiserver_type: haproxy
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Testcases checking nodes
|
- name: Testcases checking nodes
|
||||||
hosts: kube_control_plane[0]
|
hosts: kube_control_plane[0]
|
||||||
vars:
|
|
||||||
bin_dir: /usr/local/bin
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- import_role: # noqa name[missing]
|
- import_role: # noqa name[missing]
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Testcases checking pods
|
- name: Testcases checking pods
|
||||||
hosts: kube_control_plane[0]
|
hosts: kube_control_plane[0]
|
||||||
vars:
|
|
||||||
bin_dir: /usr/local/bin
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- import_role: # noqa name[missing]
|
- import_role: # noqa name[missing]
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
test_image_tag: "2.40"
|
test_image_tag: "2.40"
|
||||||
# TODO: source those from kubespray_defaults instead.
|
# TODO: source those from kubespray_defaults instead.
|
||||||
# Needs kubespray_defaults to be decoupled from no-proxy stuff
|
# Needs kubespray_defaults to be decoupled from no-proxy stuff
|
||||||
bin_dir: "/usr/local/bin"
|
|
||||||
kube_pods_subnet: "{{ 'fd85:ee78:d8a6:8607::1:0000/112' if not (ipv4_stack | default(true)) else '10.233.64.0/18' }}"
|
kube_pods_subnet: "{{ 'fd85:ee78:d8a6:8607::1:0000/112' if not (ipv4_stack | default(true)) else '10.233.64.0/18' }}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
agent_report_interval: 10
|
agent_report_interval: 10
|
||||||
netcheck_namespace: default
|
netcheck_namespace: default
|
||||||
netchecker_port: 31081
|
netchecker_port: 31081
|
||||||
bin_dir: "/usr/local/bin"
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- import_role: # noqa name[missing]
|
- import_role: # noqa name[missing]
|
||||||
|
|||||||
Reference in New Issue
Block a user