From 6a7925e335255b206fc1ec143942ffded457622f Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Sun, 28 Jan 2024 14:40:20 -0600 Subject: [PATCH] Add test for kustomize 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 --- .github/workflows/kustomize-ingress.yaml | 28 +++++++++++++++++++ .../workflows/kustomize-k8s-dashboard.yaml | 21 ++++++++++++++ .github/workflows/kustomize-libvirt.yaml | 22 +++++++++++++++ .../workflows/kustomize-mariadb-cluster.yaml | 27 ++++++++++++++++++ .../workflows/kustomize-mariadb-operator.yaml | 22 +++++++++++++++ .github/workflows/kustomize-memcached.yaml | 28 +++++++++++++++++++ .github/workflows/kustomize-openstack.yaml | 21 ++++++++++++++ .github/workflows/kustomize-ovn.yaml | 21 ++++++++++++++ .../workflows/kustomize-rabbitmq-cluster.yaml | 27 ++++++++++++++++++ .../kustomize-rabbitmq-operator.yaml | 21 ++++++++++++++ .../kustomize-rabbitmq-topology-operator.yaml | 21 ++++++++++++++ .github/workflows/kustomize-rook-cluster.yaml | 21 ++++++++++++++ .../workflows/kustomize-rook-defaults.yaml | 21 ++++++++++++++ .../workflows/kustomize-rook-operator.yaml | 21 ++++++++++++++ .github/workflows/kustomize-skyline.yaml | 28 +++++++++++++++++++ .github/workflows/kustomize-toplvm.yaml | 27 ++++++++++++++++++ 16 files changed, 377 insertions(+) create mode 100644 .github/workflows/kustomize-ingress.yaml create mode 100644 .github/workflows/kustomize-k8s-dashboard.yaml create mode 100644 .github/workflows/kustomize-libvirt.yaml create mode 100644 .github/workflows/kustomize-mariadb-cluster.yaml create mode 100644 .github/workflows/kustomize-mariadb-operator.yaml create mode 100644 .github/workflows/kustomize-memcached.yaml create mode 100644 .github/workflows/kustomize-openstack.yaml create mode 100644 .github/workflows/kustomize-ovn.yaml create mode 100644 .github/workflows/kustomize-rabbitmq-cluster.yaml create mode 100644 .github/workflows/kustomize-rabbitmq-operator.yaml create mode 100644 .github/workflows/kustomize-rabbitmq-topology-operator.yaml create mode 100644 .github/workflows/kustomize-rook-cluster.yaml create mode 100644 .github/workflows/kustomize-rook-defaults.yaml create mode 100644 .github/workflows/kustomize-rook-operator.yaml create mode 100644 .github/workflows/kustomize-skyline.yaml create mode 100644 .github/workflows/kustomize-toplvm.yaml diff --git a/.github/workflows/kustomize-ingress.yaml b/.github/workflows/kustomize-ingress.yaml new file mode 100644 index 00000000..a86b7ed2 --- /dev/null +++ b/.github/workflows/kustomize-ingress.yaml @@ -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 diff --git a/.github/workflows/kustomize-k8s-dashboard.yaml b/.github/workflows/kustomize-k8s-dashboard.yaml new file mode 100644 index 00000000..8b2bfbb8 --- /dev/null +++ b/.github/workflows/kustomize-k8s-dashboard.yaml @@ -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 diff --git a/.github/workflows/kustomize-libvirt.yaml b/.github/workflows/kustomize-libvirt.yaml new file mode 100644 index 00000000..6e40a2de --- /dev/null +++ b/.github/workflows/kustomize-libvirt.yaml @@ -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 diff --git a/.github/workflows/kustomize-mariadb-cluster.yaml b/.github/workflows/kustomize-mariadb-cluster.yaml new file mode 100644 index 00000000..6dbfc0c1 --- /dev/null +++ b/.github/workflows/kustomize-mariadb-cluster.yaml @@ -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 diff --git a/.github/workflows/kustomize-mariadb-operator.yaml b/.github/workflows/kustomize-mariadb-operator.yaml new file mode 100644 index 00000000..5937a905 --- /dev/null +++ b/.github/workflows/kustomize-mariadb-operator.yaml @@ -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 diff --git a/.github/workflows/kustomize-memcached.yaml b/.github/workflows/kustomize-memcached.yaml new file mode 100644 index 00000000..87803df1 --- /dev/null +++ b/.github/workflows/kustomize-memcached.yaml @@ -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 diff --git a/.github/workflows/kustomize-openstack.yaml b/.github/workflows/kustomize-openstack.yaml new file mode 100644 index 00000000..a19540ba --- /dev/null +++ b/.github/workflows/kustomize-openstack.yaml @@ -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 diff --git a/.github/workflows/kustomize-ovn.yaml b/.github/workflows/kustomize-ovn.yaml new file mode 100644 index 00000000..44556323 --- /dev/null +++ b/.github/workflows/kustomize-ovn.yaml @@ -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 diff --git a/.github/workflows/kustomize-rabbitmq-cluster.yaml b/.github/workflows/kustomize-rabbitmq-cluster.yaml new file mode 100644 index 00000000..a01d92f1 --- /dev/null +++ b/.github/workflows/kustomize-rabbitmq-cluster.yaml @@ -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 diff --git a/.github/workflows/kustomize-rabbitmq-operator.yaml b/.github/workflows/kustomize-rabbitmq-operator.yaml new file mode 100644 index 00000000..538012f1 --- /dev/null +++ b/.github/workflows/kustomize-rabbitmq-operator.yaml @@ -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 diff --git a/.github/workflows/kustomize-rabbitmq-topology-operator.yaml b/.github/workflows/kustomize-rabbitmq-topology-operator.yaml new file mode 100644 index 00000000..5925fdbf --- /dev/null +++ b/.github/workflows/kustomize-rabbitmq-topology-operator.yaml @@ -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 diff --git a/.github/workflows/kustomize-rook-cluster.yaml b/.github/workflows/kustomize-rook-cluster.yaml new file mode 100644 index 00000000..0bd50abd --- /dev/null +++ b/.github/workflows/kustomize-rook-cluster.yaml @@ -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 diff --git a/.github/workflows/kustomize-rook-defaults.yaml b/.github/workflows/kustomize-rook-defaults.yaml new file mode 100644 index 00000000..205ba49c --- /dev/null +++ b/.github/workflows/kustomize-rook-defaults.yaml @@ -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 diff --git a/.github/workflows/kustomize-rook-operator.yaml b/.github/workflows/kustomize-rook-operator.yaml new file mode 100644 index 00000000..91f65cf0 --- /dev/null +++ b/.github/workflows/kustomize-rook-operator.yaml @@ -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 diff --git a/.github/workflows/kustomize-skyline.yaml b/.github/workflows/kustomize-skyline.yaml new file mode 100644 index 00000000..ebb0b6cd --- /dev/null +++ b/.github/workflows/kustomize-skyline.yaml @@ -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 diff --git a/.github/workflows/kustomize-toplvm.yaml b/.github/workflows/kustomize-toplvm.yaml new file mode 100644 index 00000000..520ec90c --- /dev/null +++ b/.github/workflows/kustomize-toplvm.yaml @@ -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