Skip to content

Commit

Permalink
Add last non-platform job
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaser committed Oct 14, 2024
1 parent 9dc62e5 commit 78dac5e
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 94 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,6 @@ on:
- main

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scenario:
- upload-helm-chart
distro:
- rockylinux9
- ubuntu2004
- ubuntu2204
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 ${{ matrix.scenario }}
env:
MOLECULE_DISTRO: ${{ matrix.distro }}

kubernetes:
runs-on: ubuntu-latest
timeout-minutes: 15
Expand Down
38 changes: 12 additions & 26 deletions molecule/upload-helm-chart/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,25 @@
# 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.
# Copyright (c) 2024 VEXXHOST, Inc.
# SPDX-License-Identifier: Apache-2.0

dependency:
name: galaxy
driver:
name: docker
name: default
options:
managed: False
ansible_connection_options:
ansible_become: "true"
ansible_connection: local
platforms:
- name: instance
image: geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2204}-ansible:latest
command: ${MOLECULE_DOCKER_COMMAND:-""}
privileged: true
cgroupns_mode: host
pre_build_image: true
environment:
container: docker
security_opts:
- apparmor=unconfined
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
- /lib/modules:/lib/modules:ro
groups:
- controllers
provisioner:
name: ansible
config_options:
connection:
pipelining: true
defaults:
callbacks_enabled: ansible.posix.profile_tasks
verifier:
name: ansible
33 changes: 0 additions & 33 deletions molecule/upload-helm-chart/prepare.yml

This file was deleted.

6 changes: 6 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,9 @@ deps =
{[testenv:molecule-venv]deps}
commands =
molecule test -s helm

[testenv:molecule-upload-helm-chart]
deps =
{[testenv:molecule-venv]deps}
commands =
molecule test -s upload-helm-chart
6 changes: 6 additions & 0 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@
parent: ansible-collection-kubernetes-molecule
vars:
tox_envlist: molecule-helm

- job:
name: ansible-collection-kubernetes-molecule-upload-helm-chart
parent: ansible-collection-kubernetes-molecule
vars:
tox_envlist: molecule-upload-helm-chart
4 changes: 4 additions & 0 deletions zuul.d/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@
- ansible-collection-kubernetes-linters
- ansible-collection-kubernetes-molecule-cluster-api
- ansible-collection-kubernetes-molecule-cluster-api-upgrade
- ansible-collection-kubernetes-molecule-helm
- ansible-collection-kubernetes-molecule-upload-helm-chart
- build-ansible-collection
gate:
jobs:
- ansible-collection-kubernetes-linters
- ansible-collection-kubernetes-molecule-cluster-api
- ansible-collection-kubernetes-molecule-cluster-api-upgrade
- ansible-collection-kubernetes-molecule-helm
- ansible-collection-kubernetes-molecule-upload-helm-chart
- build-ansible-collection
release:
jobs:
Expand Down

0 comments on commit 78dac5e

Please sign in to comment.