Skip to content

Commit

Permalink
Add test for kustomize
Browse files Browse the repository at this point in the history
This change will ensure all of our kustomize targets build and will only
gate a target when a change is made to that specific location.

Signed-off-by: Kevin Carter <[email protected]>
  • Loading branch information
cloudnull committed Jan 28, 2024
1 parent 942574b commit 6a7925e
Show file tree
Hide file tree
Showing 16 changed files with 377 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/kustomize-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Kustomize GitHub Actions for ingress

on:
- pull_request

jobs:
kustomize:
strategy:
matrix:
overlays:
- external
- internal

name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: azure/setup-helm@v3
- name: 'Kustomize Build'
uses: karancode/kustomize-github-action@master
with:
kustomize_version: 5.1.1
kustomize_build_dir: 'kustomize/ingress/${{ matrix.overlays }}'
kustomize_comment: true
kustomize_output_file: "gitops/rendered.yaml"
kustomize_build_options: "--enable-helm"
enable_alpha_plugins: false
21 changes: 21 additions & 0 deletions .github/workflows/kustomize-k8s-dashboard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Kustomize GitHub Actions for k8s-dashboard

on:
- pull_request

jobs:
kustomize:
name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Kustomize Build'
uses: karancode/kustomize-github-action@master
with:
kustomize_version: 5.1.1
kustomize_build_dir: 'kustomize/k8s-dashboard'
kustomize_comment: true
kustomize_output_file: "gitops/rendered.yaml"
kustomize_build_options: ""
enable_alpha_plugins: false
22 changes: 22 additions & 0 deletions .github/workflows/kustomize-libvirt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Kustomize GitHub Actions for libvirt

on:
- pull_request

jobs:
kustomize:
name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: azure/setup-helm@v3
- name: 'Kustomize Build'
uses: karancode/kustomize-github-action@master
with:
kustomize_version: 5.1.1
kustomize_build_dir: 'kustomize/libvirt'
kustomize_comment: true
kustomize_output_file: "gitops/rendered.yaml"
kustomize_build_options: "--enable-helm"
enable_alpha_plugins: false
27 changes: 27 additions & 0 deletions .github/workflows/kustomize-mariadb-cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Kustomize GitHub Actions for mariadb-cluster

on:
- pull_request

jobs:
kustomize:
strategy:
matrix:
overlays:
- base
- aio

name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Kustomize Build'
uses: karancode/kustomize-github-action@master
with:
kustomize_version: 5.1.1
kustomize_build_dir: 'kustomize/mariadb-cluster/${{ matrix.overlays }}'
kustomize_comment: true
kustomize_output_file: "gitops/rendered.yaml"
kustomize_build_options: ""
enable_alpha_plugins: false
22 changes: 22 additions & 0 deletions .github/workflows/kustomize-mariadb-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Kustomize GitHub Actions for mariadb-operator

on:
- pull_request

jobs:
kustomize:
name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: azure/setup-helm@v3
- name: 'Kustomize Build'
uses: karancode/kustomize-github-action@master
with:
kustomize_version: 5.1.1
kustomize_build_dir: 'kustomize/mariadb-operator'
kustomize_comment: true
kustomize_output_file: "gitops/rendered.yaml"
kustomize_build_options: "--enable-helm"
enable_alpha_plugins: false
28 changes: 28 additions & 0 deletions .github/workflows/kustomize-memcached.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Kustomize GitHub Actions for memcached

on:
- pull_request

jobs:
kustomize:
strategy:
matrix:
overlays:
- base
- aio

name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: azure/setup-helm@v3
- name: 'Kustomize Build'
uses: karancode/kustomize-github-action@master
with:
kustomize_version: 5.1.1
kustomize_build_dir: 'kustomize/memcached/${{ matrix.overlays }}'
kustomize_comment: true
kustomize_output_file: "gitops/rendered.yaml"
kustomize_build_options: "--enable-helm"
enable_alpha_plugins: false
21 changes: 21 additions & 0 deletions .github/workflows/kustomize-openstack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Kustomize GitHub Actions for openstack

on:
- pull_request

jobs:
kustomize:
name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Kustomize Build'
uses: karancode/kustomize-github-action@master
with:
kustomize_version: 5.1.1
kustomize_build_dir: 'kustomize/openstack'
kustomize_comment: true
kustomize_output_file: "gitops/rendered.yaml"
kustomize_build_options: ""
enable_alpha_plugins: false
21 changes: 21 additions & 0 deletions .github/workflows/kustomize-ovn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Kustomize GitHub Actions for ovn

on:
- pull_request

jobs:
kustomize:
name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Kustomize Build'
uses: karancode/kustomize-github-action@master
with:
kustomize_version: 5.1.1
kustomize_build_dir: 'kustomize/ovn'
kustomize_comment: true
kustomize_output_file: "gitops/rendered.yaml"
kustomize_build_options: ""
enable_alpha_plugins: false
27 changes: 27 additions & 0 deletions .github/workflows/kustomize-rabbitmq-cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Kustomize GitHub Actions for rabbitmq-cluster

on:
- pull_request

jobs:
kustomize:
strategy:
matrix:
overlays:
- base
- aio

name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Kustomize Build'
uses: karancode/kustomize-github-action@master
with:
kustomize_version: 5.1.1
kustomize_build_dir: 'kustomize/rabbitmq-cluster/${{ matrix.overlays }}'
kustomize_comment: true
kustomize_output_file: "gitops/rendered.yaml"
kustomize_build_options: ""
enable_alpha_plugins: false
21 changes: 21 additions & 0 deletions .github/workflows/kustomize-rabbitmq-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Kustomize GitHub Actions for rabbitmq-operator

on:
- pull_request

jobs:
kustomize:
name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Kustomize Build'
uses: karancode/kustomize-github-action@master
with:
kustomize_version: 5.1.1
kustomize_build_dir: 'kustomize/rabbitmq-operator'
kustomize_comment: true
kustomize_output_file: "gitops/rendered.yaml"
kustomize_build_options: ""
enable_alpha_plugins: false
21 changes: 21 additions & 0 deletions .github/workflows/kustomize-rabbitmq-topology-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Kustomize GitHub Actions for rabbitmq-topology-operator

on:
- pull_request

jobs:
kustomize:
name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Kustomize Build'
uses: karancode/kustomize-github-action@master
with:
kustomize_version: 5.1.1
kustomize_build_dir: 'kustomize/rabbitmq-topology-operator'
kustomize_comment: true
kustomize_output_file: "gitops/rendered.yaml"
kustomize_build_options: ""
enable_alpha_plugins: false
21 changes: 21 additions & 0 deletions .github/workflows/kustomize-rook-cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Kustomize GitHub Actions for rook-cluster

on:
- pull_request

jobs:
kustomize:
name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Kustomize Build'
uses: karancode/kustomize-github-action@master
with:
kustomize_version: 5.1.1
kustomize_build_dir: 'kustomize/rook-cluster'
kustomize_comment: true
kustomize_output_file: "gitops/rendered.yaml"
kustomize_build_options: ""
enable_alpha_plugins: false
21 changes: 21 additions & 0 deletions .github/workflows/kustomize-rook-defaults.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Kustomize GitHub Actions for rook-defaults

on:
- pull_request

jobs:
kustomize:
name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Kustomize Build'
uses: karancode/kustomize-github-action@master
with:
kustomize_version: 5.1.1
kustomize_build_dir: 'kustomize/rook-defaults'
kustomize_comment: true
kustomize_output_file: "gitops/rendered.yaml"
kustomize_build_options: ""
enable_alpha_plugins: false
21 changes: 21 additions & 0 deletions .github/workflows/kustomize-rook-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Kustomize GitHub Actions for rook-operator

on:
- pull_request

jobs:
kustomize:
name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Kustomize Build'
uses: karancode/kustomize-github-action@master
with:
kustomize_version: 5.1.1
kustomize_build_dir: 'kustomize/rook-operator'
kustomize_comment: true
kustomize_output_file: "gitops/rendered.yaml"
kustomize_build_options: ""
enable_alpha_plugins: false
28 changes: 28 additions & 0 deletions .github/workflows/kustomize-skyline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Kustomize GitHub Actions for skyline

on:
- pull_request

jobs:
kustomize:
strategy:
matrix:
overlays:
- base
- aio
- fqdn

name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Kustomize Build'
uses: karancode/kustomize-github-action@master
with:
kustomize_version: 5.1.1
kustomize_build_dir: 'kustomize/skyline/${{ matrix.overlays }}'
kustomize_comment: true
kustomize_output_file: "gitops/rendered.yaml"
kustomize_build_options: ""
enable_alpha_plugins: false
27 changes: 27 additions & 0 deletions .github/workflows/kustomize-toplvm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Kustomize GitHub Actions for topolvm

on:
- pull_request

jobs:
kustomize:
strategy:
matrix:
overlays:
- general

name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: azure/setup-helm@v3
- name: 'Kustomize Build'
uses: karancode/kustomize-github-action@master
with:
kustomize_version: 5.1.1
kustomize_build_dir: 'kustomize/topolvm/${{ matrix.overlays }}'
kustomize_comment: true
kustomize_output_file: "gitops/rendered.yaml"
kustomize_build_options: "--enable-helm"
enable_alpha_plugins: false

0 comments on commit 6a7925e

Please sign in to comment.