Skip to content

Add support for currently supported k8s versions #533

Add support for currently supported k8s versions

Add support for currently supported k8s versions #533

Workflow file for this run

# Copyright (c) 2023 VEXXHOST, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
name: molecule
on:
pull_request:
push:
branches:
- main
jobs:
kubernetes:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
version:
- 1.28.4
- 1.29.9
- 1.30.5
- 1.31.1
distro:
- rockylinux9
- ubuntu2004
- ubuntu2204
scenario:
- ha
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
cache: pip
- name: Install Molecule
run: pip install -r requirements.txt
- name: Turn off swap
run: sudo swapoff -a
- name: Run Molecule
run: molecule test -s ${{ matrix.scenario }}
env:
MOLECULE_DISTRO: ${{ matrix.distro }}
KUBERNETES_VERSION: ${{ matrix.version }}
upgrades:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- old_version: 1.27.8
version: 1.28.4
- old_version: 1.28.4
version: 1.29.9
- old_version: 1.29.9
version: 1.30.5
- old_version: 1.30.5
version: 1.31.1
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
cache: pip
- name: Install Molecule
run: pip install -r requirements.txt
- name: Turn off swap
run: sudo swapoff -a
- name: Bump number of inotify watchers
run: sudo sysctl fs.inotify.max_user_watches=524288
- name: Run Molecule
run: molecule test -s cluster-upgrade
env:
OLD_KUBERNETES_VERSION: ${{ matrix.old_version }}
KUBERNETES_VERSION: ${{ matrix.version }}