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 094c8fc
Show file tree
Hide file tree
Showing 16 changed files with 413 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/kustomize-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Kustomize GitHub Actions for ingress

on:
pull_request:
paths:
- kustomize/ingress/**
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
with:
version: latest
token: "${{ secrets.GITHUB_TOKEN }}"
id: helm
- 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 --helm-command ${{ steps.helm.outputs.helm-path }}"
enable_alpha_plugins: false
22 changes: 22 additions & 0 deletions .github/workflows/kustomize-k8s-dashboard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Kustomize GitHub Actions for k8s-dashboard

on:
pull_request:
paths:
- kustomize/k8s-dashboard/**
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
27 changes: 27 additions & 0 deletions .github/workflows/kustomize-libvirt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Kustomize GitHub Actions for libvirt

on:
pull_request:
paths:
- kustomize/libvirt/**
jobs:
kustomize:
name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: azure/setup-helm@v3
with:
version: latest
token: "${{ secrets.GITHUB_TOKEN }}"
id: helm
- 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 --helm-command ${{ steps.helm.outputs.helm-path }}"
enable_alpha_plugins: false
28 changes: 28 additions & 0 deletions .github/workflows/kustomize-mariadb-cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Kustomize GitHub Actions for mariadb-cluster

on:
pull_request:
paths:
- kustomize/mariadb-cluster/**
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
27 changes: 27 additions & 0 deletions .github/workflows/kustomize-mariadb-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Kustomize GitHub Actions for mariadb-operator

on:
pull_request:
paths:
- kustomize/mariadb-operator/**
jobs:
kustomize:
name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: azure/setup-helm@v3
with:
version: latest
token: "${{ secrets.GITHUB_TOKEN }}"
id: helm
- 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 --helm-command ${{ steps.helm.outputs.helm-path }}"
enable_alpha_plugins: false
33 changes: 33 additions & 0 deletions .github/workflows/kustomize-memcached.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Kustomize GitHub Actions for memcached

on:
pull_request:
paths:
- kustomize/memcached/**
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
with:
version: latest
token: "${{ secrets.GITHUB_TOKEN }}"
id: helm
- 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 --helm-command ${{ steps.helm.outputs.helm-path }}"
enable_alpha_plugins: false
22 changes: 22 additions & 0 deletions .github/workflows/kustomize-openstack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Kustomize GitHub Actions for openstack

on:
pull_request:
paths:
- kustomize/openstack/**
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
22 changes: 22 additions & 0 deletions .github/workflows/kustomize-ovn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Kustomize GitHub Actions for ovn

on:
pull_request:
paths:
- kustomize/ovn/**
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
28 changes: 28 additions & 0 deletions .github/workflows/kustomize-rabbitmq-cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Kustomize GitHub Actions for rabbitmq-cluster

on:
pull_request:
paths:
- kustomize/rabbitmq-cluster/**
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
22 changes: 22 additions & 0 deletions .github/workflows/kustomize-rabbitmq-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Kustomize GitHub Actions for rabbitmq-operator

on:
pull_request:
paths:
- kustomize/rabbitmq-operator/**
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
22 changes: 22 additions & 0 deletions .github/workflows/kustomize-rabbitmq-topology-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Kustomize GitHub Actions for rabbitmq-topology-operator

on:
pull_request:
paths:
- kustomize/rabbitmq-topology-operator/**
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
22 changes: 22 additions & 0 deletions .github/workflows/kustomize-rook-cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Kustomize GitHub Actions for rook-cluster

on:
pull_request:
paths:
- kustomize/rook-cluster/**
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
22 changes: 22 additions & 0 deletions .github/workflows/kustomize-rook-defaults.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Kustomize GitHub Actions for rook-defaults

on:
pull_request:
paths:
- kustomize/rook-defaults/**
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
22 changes: 22 additions & 0 deletions .github/workflows/kustomize-rook-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Kustomize GitHub Actions for rook-operator

on:
pull_request:
paths:
- kustomize/rook-operator/**
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
29 changes: 29 additions & 0 deletions .github/workflows/kustomize-skyline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Kustomize GitHub Actions for skyline

on:
pull_request:
paths:
- kustomize/skyline/**
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
Loading

0 comments on commit 094c8fc

Please sign in to comment.