Skip to content

Commit

Permalink
Update Strimzi cluster version (#50)
Browse files Browse the repository at this point in the history
* Update Strimzi Kafka cluster version

* Move nephelaiio.plugins requirement to collection

* Move Kafka cluster to Kraft configuration
  • Loading branch information
teddyphreak authored May 1, 2024
1 parent 4e74198 commit c98b5de
Show file tree
Hide file tree
Showing 27 changed files with 1,160 additions and 1,351 deletions.
34 changes: 12 additions & 22 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,40 @@
---
# This workflow requires a GALAXY_API_KEY secret present in the GitHub
# repository or organization.
#
# See: https://github.com/marketplace/actions/publish-ansible-role-to-galaxy
# See: https://github.com/ansible/galaxy/issues/46

name: docker
on:

on:
push:
tags:
- "*"

jobs:

docker:

name: publish docker images
runs-on: ubuntu-latest

steps:

- name: update package cache
- name: Update package cache
run: sudo apt-get update

- name: set up quemu
uses: docker/setup-qemu-action@v2
- name: Set up quemu
uses: docker/setup-qemu-action@v3

- name: set up docker buildx
uses: docker/setup-buildx-action@v2
- name: Set up docker buildx
uses: docker/setup-buildx-action@v3

- name: login to docker hub
uses: docker/login-action@v2
- name: Login to docker hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}

- name: build and push connect image
uses: docker/build-push-action@v3
- name: Build and push connect image
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}:connect"
push: true
tags: nephelaiio/dataplane-connect:latest,nephelaiio/dataplane-connect:${{ github.ref_name }}

- name: build and push util image
uses: docker/build-push-action@v3
- name: Build and push util image
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}:util"
push: true
Expand Down
20 changes: 8 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,31 @@
name: lint

on:

pull_request:
branches:
- master

jobs:

lint:

name: lint
runs-on: ubuntu-latest
steps:

- name: update package cache
- name: Update package cache
run: sudo apt-get update

- name: check out the codebase
uses: actions/checkout@v3
- name: Check out the codebase
uses: actions/checkout@v4

- name: install kubectl
- name: Install kubectl
uses: azure/setup-kubectl@v3

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
check-latest: true

- name: set up chart-testing
uses: helm/chart-testing-action@v2.3.1
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.6.1

- name: lint charts
- name: Lint charts
run: ct lint --chart-dirs $GITHUB_WORKSPACE/charts --all --validate-maintainers=false
41 changes: 17 additions & 24 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,17 @@
name: molecule

on:

pull_request:
branches:
- master
schedule:
- cron: "55 23 * * 4"

jobs:

molecule:

name: molecule
runs-on: ubuntu-latest

strategy:

matrix:
scenario:
- default
Expand All @@ -26,49 +21,47 @@ jobs:
image: v1.25.8
- release: v0.18.0
image: v1.24.12

steps:

- name: update package cache
- name: Update package cache
run: sudo apt-get update

- name: check out the codebase.
uses: actions/checkout@v3
- name: Check out the codebase.
uses: actions/checkout@v4

- name: login to docker hub
uses: docker/login-action@v2
- name: Login to docker hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}

- name: install kubectl
- name: Install kubectl
uses: azure/setup-kubectl@v3

- name: install helm
uses: azure/setup-helm@v3
- name: Install helm
uses: azure/setup-helm@v4

- name: install helm diff plugin
- name: Install helm diff plugin
run: helm plugin install https://github.com/databus23/helm-diff

- name: set up python 3
uses: actions/setup-python@v4
- name: Set up python 3
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: install package prerequisites
- name: Install package prerequisites
run: sudo apt-get install -y postgresql-common libpq-dev

- name: install poetry
- name: Install poetry
run: pip3 install poetry

- name: install dependencies
- name: Install dependencies
run: poetry install

- name: install make
- name: Install make
run: sudo apt-get install -y make

- name: run molecule tests
run: ./bin/test
- name: Run molecule tests
run: make test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name: release chart

on:

pull_request:
branches:
- master
Expand All @@ -12,28 +11,25 @@ on:
- 'charts/**/Chart.yaml'

jobs:

release:

if: github.event.pull_request.merged == true
name: publish helm charts
runs-on: ubuntu-latest
steps:

- name: update package cache
- name: Update package cache
run: sudo apt-get update

- name: checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: configure git
- name: Configure git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: release chart
uses: helm/chart-releaser-action@v1.5.0
- name: Release chart
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: '${{ secrets.GH_TOKEN }}'
4 changes: 2 additions & 2 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Verify Changed files
uses: tj-actions/verify-changed-files@v16
uses: tj-actions/verify-changed-files@v19
id: check
with:
files: |
Expand Down
Loading

0 comments on commit c98b5de

Please sign in to comment.