Skip to content

Commit

Permalink
fix remaining lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Anderson committed Mar 5, 2024
1 parent be451d6 commit 9700f19
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 50 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/kompose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,20 @@ jobs:
with:
path: ansible_collections/ericsysmin/kubernetes

- name: Set up Python 3.8
uses: actions/setup-python@v1
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12

- name: Install dependencies
run: |
sudo apt install docker
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
python -m pip install --upgrade pip
pip install molecule yamllint ansible-lint docker
pip install ansible molecule yamllint ansible-lint molecule-plugins[docker]
- name: Run role test
- name: Run role tests
run: >-
molecule --version &&
ansible --version &&
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/kubectl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ jobs:
fail-fast: true
matrix:
molecule_distro:
- distro: centos:7
command: /usr/sbin/init
- {distro: centos-8, command: /usr/sbin/init}
- {distro: ubuntu-18.04, command: /lib/systemd/systemd}
- {distro: ubuntu-20.04, command: /lib/systemd/systemd}
- {distro: ubuntu-22.04, command: /lib/systemd/systemd}
- {distro: debian-10, command: /lib/systemd/systemd}
- { distro: centos-8, command: /usr/sbin/init }
- { distro: ubuntu-18.04, command: /lib/systemd/systemd }
- { distro: ubuntu-20.04, command: /lib/systemd/systemd }
- { distro: ubuntu-22.04, command: /lib/systemd/systemd }
- { distro: debian-10, command: /lib/systemd/systemd }
collection_role:
- kubectl
steps:
Expand Down Expand Up @@ -55,4 +53,4 @@ jobs:
ansible --version &&
MOLECULE_COMMAND=${{ matrix.molecule_distro.command }}
MOLECULE_DISTRO=${{ matrix.molecule_distro.distro }}
molecule --debug test -s ${{ matrix.collection_role }}
molecule --debug test -s ${{ matrix.collection_role }}
22 changes: 11 additions & 11 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ releases:
1.0.0:
changes:
major_changes:
- added recent versions of OS tests
- ensured existing role works with newer OS releases
- updated all tasks to meet newer ansible-lint requirements
- updated molecule testing
- added recent versions of OS tests
- ensured existing role works with newer OS releases
- updated all tasks to meet newer ansible-lint requirements
- updated molecule testing
release_summary: 1.0.0 release of the Kubernetes collection
objects:
role:
- description: Ansible role to deploy kompose
name: kompose
namespace: null
- description: Ansible role to deploy kubectl
name: kubectl
namespace: null
release_date: '2024-03-05'
- description: Ansible role to deploy kompose
name: kompose
namespace: null
- description: Ansible role to deploy kubectl
name: kubectl
namespace: null
release_date: "2024-03-05"
34 changes: 17 additions & 17 deletions changelogs/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ mention_ancestor: true
new_plugins_after_name: removed_features
notesdir: fragments
output_formats:
- rst
- rst
prelude_section_name: release_summary
prelude_section_title: Release Summary
sanitize_changelog: true
sections:
- - major_changes
- Major Changes
- - minor_changes
- Minor Changes
- - breaking_changes
- Breaking Changes / Porting Guide
- - deprecated_features
- Deprecated Features
- - removed_features
- Removed Features (previously deprecated)
- - security_fixes
- Security Fixes
- - bugfixes
- Bugfixes
- - known_issues
- Known Issues
- - major_changes
- Major Changes
- - minor_changes
- Minor Changes
- - breaking_changes
- Breaking Changes / Porting Guide
- - deprecated_features
- Deprecated Features
- - removed_features
- Removed Features (previously deprecated)
- - security_fixes
- Security Fixes
- - bugfixes
- Bugfixes
- - known_issues
- Known Issues
title: Ericsysmin.Kubernetes
trivial_section_name: trivial
use_fqcn: true
1 change: 1 addition & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
requires_ansible: '>=2.14.0'
2 changes: 1 addition & 1 deletion molecule/kompose/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ platforms:
provisioner:
name: ansible
playbooks:
converge: ${MOLECULE_PLAYBOOK:-converge.yml}
converge: ${MOLECULE_PLAYBOOK:-converge.yml}
6 changes: 3 additions & 3 deletions molecule/kompose/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
- name: Verify
hosts: all
tasks:
- name: Example assertion
assert:
that: true
- name: Example assertion
ansible.builtin.assert:
that: true
2 changes: 1 addition & 1 deletion molecule/kubectl/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ platforms:
provisioner:
name: ansible
playbooks:
converge: ${MOLECULE_PLAYBOOK:-converge.yml}
converge: ${MOLECULE_PLAYBOOK:-converge.yml}
6 changes: 3 additions & 3 deletions molecule/kubectl/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
- name: Verify
hosts: all
tasks:
- name: Example assertion
assert:
that: true
- name: Example assertion
ansible.builtin.assert:
that: true

0 comments on commit 9700f19

Please sign in to comment.