diff --git a/.github/workflows/kustomize-ingress.yaml b/.github/workflows/kustomize-ingress.yaml new file mode 100644 index 00000000..ffb14154 --- /dev/null +++ b/.github/workflows/kustomize-ingress.yaml @@ -0,0 +1,45 @@ +name: Kustomize GitHub Actions for ingress + +on: + pull_request: + paths: + - kustomize/ingress/** + - .github/workflows/kustomize-ingress.yaml +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 Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Pull OSH infra submodule + run: | + git submodule update --init submodules/openstack-helm-infra + - name: Make OSH infra submodule + run: | + cd submodules/openstack-helm-infra + make ingress + - name: Run Kustomize Build + run: | + kustomize build kustomize/ingress/${{ matrix.overlays }} --enable-helm --helm-command ${{ steps.helm.outputs.helm-path }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-ingress-artifact-${{ matrix.overlays }} + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-k8s-dashboard.yaml b/.github/workflows/kustomize-k8s-dashboard.yaml new file mode 100644 index 00000000..d23106b0 --- /dev/null +++ b/.github/workflows/kustomize-k8s-dashboard.yaml @@ -0,0 +1,28 @@ +name: Kustomize GitHub Actions for k8s-dashboard + +on: + pull_request: + paths: + - kustomize/k8s-dashboard/** + - .github/workflows/kustomize-k8s-dashboard.yaml +jobs: + kustomize: + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/k8s-dashboard > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-k8s-dashboard-artifact + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-libvirt.yaml b/.github/workflows/kustomize-libvirt.yaml new file mode 100644 index 00000000..df358c31 --- /dev/null +++ b/.github/workflows/kustomize-libvirt.yaml @@ -0,0 +1,40 @@ +name: Kustomize GitHub Actions for libvirt + +on: + pull_request: + paths: + - kustomize/libvirt/** + - .github/workflows/kustomize-libvirt.yaml +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 Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Pull OSH infra submodule + run: | + git submodule update --init submodules/openstack-helm-infra + - name: Make OSH infra submodule + run: | + cd submodules/openstack-helm-infra + make libvirt + - name: Run Kustomize Build + run: | + kustomize build kustomize/libvirt --enable-helm --helm-command ${{ steps.helm.outputs.helm-path }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-libvirt-artifact + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-mariadb-cluster.yaml b/.github/workflows/kustomize-mariadb-cluster.yaml new file mode 100644 index 00000000..af7c0c04 --- /dev/null +++ b/.github/workflows/kustomize-mariadb-cluster.yaml @@ -0,0 +1,33 @@ +name: Kustomize GitHub Actions for mariadb-cluster + +on: + pull_request: + paths: + - kustomize/mariadb-cluster/** + - .github/workflows/kustomize-mariadb-cluster.yaml +jobs: + kustomize: + strategy: + matrix: + overlays: + - base + - aio + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/mariadb-cluster/${{ matrix.overlays }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-mariadb-cluster-artifact-${{ matrix.overlays }} + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-mariadb-operator.yaml b/.github/workflows/kustomize-mariadb-operator.yaml new file mode 100644 index 00000000..3e04aeb5 --- /dev/null +++ b/.github/workflows/kustomize-mariadb-operator.yaml @@ -0,0 +1,33 @@ +name: Kustomize GitHub Actions for mariadb-operator + +on: + pull_request: + paths: + - kustomize/mariadb-operator/** + - .github/workflows/kustomize-mariadb-operator.yaml +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 Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/mariadb-operator --enable-helm --helm-command ${{ steps.helm.outputs.helm-path }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-mariadb-operator-artifact + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-memcached.yaml b/.github/workflows/kustomize-memcached.yaml new file mode 100644 index 00000000..dbdfdcce --- /dev/null +++ b/.github/workflows/kustomize-memcached.yaml @@ -0,0 +1,38 @@ +name: Kustomize GitHub Actions for memcached + +on: + pull_request: + paths: + - kustomize/memcached/** + - .github/workflows/kustomize-memcached.yaml +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 Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/memcached/${{ matrix.overlays }} --enable-helm --helm-command ${{ steps.helm.outputs.helm-path }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-memcached-artifact-${{ matrix.overlays }} + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-openstack.yaml b/.github/workflows/kustomize-openstack.yaml new file mode 100644 index 00000000..380df162 --- /dev/null +++ b/.github/workflows/kustomize-openstack.yaml @@ -0,0 +1,28 @@ +name: Kustomize GitHub Actions for openstack + +on: + pull_request: + paths: + - kustomize/openstack/** + - .github/workflows/kustomize-openstack.yaml +jobs: + kustomize: + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/openstack > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-openstack-artifact + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-ovn.yaml b/.github/workflows/kustomize-ovn.yaml new file mode 100644 index 00000000..0518aed9 --- /dev/null +++ b/.github/workflows/kustomize-ovn.yaml @@ -0,0 +1,28 @@ +name: Kustomize GitHub Actions for ovn + +on: + pull_request: + paths: + - kustomize/ovn/** + - .github/workflows/kustomize-ovn.yaml +jobs: + kustomize: + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/ovn > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-ovn-artifact + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-rabbitmq-cluster.yaml b/.github/workflows/kustomize-rabbitmq-cluster.yaml new file mode 100644 index 00000000..ae9def19 --- /dev/null +++ b/.github/workflows/kustomize-rabbitmq-cluster.yaml @@ -0,0 +1,33 @@ +name: Kustomize GitHub Actions for rabbitmq-cluster + +on: + pull_request: + paths: + - kustomize/rabbitmq-cluster/** + - .github/workflows/kustomize-rabbitmq-cluster.yaml +jobs: + kustomize: + strategy: + matrix: + overlays: + - base + - aio + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/rabbitmq-cluster/${{ matrix.overlays }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-rabbitmq-cluster-artifact-${{ matrix.overlays }} + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-rabbitmq-operator.yaml b/.github/workflows/kustomize-rabbitmq-operator.yaml new file mode 100644 index 00000000..edb7a12b --- /dev/null +++ b/.github/workflows/kustomize-rabbitmq-operator.yaml @@ -0,0 +1,28 @@ +name: Kustomize GitHub Actions for rabbitmq-operator + +on: + pull_request: + paths: + - kustomize/rabbitmq-operator/** + - .github/workflows/kustomize-rabbitmq-operator.yaml +jobs: + kustomize: + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/rabbitmq-operator > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-rabbitmq-operator-artifact + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-rabbitmq-topology-operator.yaml b/.github/workflows/kustomize-rabbitmq-topology-operator.yaml new file mode 100644 index 00000000..0dbc820a --- /dev/null +++ b/.github/workflows/kustomize-rabbitmq-topology-operator.yaml @@ -0,0 +1,28 @@ +name: Kustomize GitHub Actions for rabbitmq-topology-operator + +on: + pull_request: + paths: + - kustomize/rabbitmq-topology-operator/** + - .github/workflows/kustomize-rabbitmq-topology-operator.yaml +jobs: + kustomize: + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/rabbitmq-topology-operator > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-rabbitmq-topology-operator-artifact + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-rook-cluster.yaml b/.github/workflows/kustomize-rook-cluster.yaml new file mode 100644 index 00000000..6c281d95 --- /dev/null +++ b/.github/workflows/kustomize-rook-cluster.yaml @@ -0,0 +1,28 @@ +name: Kustomize GitHub Actions for rook-cluster + +on: + pull_request: + paths: + - kustomize/rook-cluster/** + - .github/workflows/kustomize-rook-cluster.yaml +jobs: + kustomize: + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/rook-cluster > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-rook-cluster-artifact + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-rook-defaults.yaml b/.github/workflows/kustomize-rook-defaults.yaml new file mode 100644 index 00000000..b793d9e0 --- /dev/null +++ b/.github/workflows/kustomize-rook-defaults.yaml @@ -0,0 +1,28 @@ +name: Kustomize GitHub Actions for rook-defaults + +on: + pull_request: + paths: + - kustomize/rook-defaults/** + - .github/workflows/kustomize-rook-defaults.yaml +jobs: + kustomize: + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/rook-defaults > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-rook-defaults-artifact + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-rook-operator.yaml b/.github/workflows/kustomize-rook-operator.yaml new file mode 100644 index 00000000..8692e75d --- /dev/null +++ b/.github/workflows/kustomize-rook-operator.yaml @@ -0,0 +1,28 @@ +name: Kustomize GitHub Actions for rook-operator + +on: + pull_request: + paths: + - kustomize/rook-operator/** + - .github/workflows/kustomize-rook-operator.yaml +jobs: + kustomize: + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/rook-operator > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-rook-operator-artifact + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-skyline.yaml b/.github/workflows/kustomize-skyline.yaml new file mode 100644 index 00000000..1e327d9a --- /dev/null +++ b/.github/workflows/kustomize-skyline.yaml @@ -0,0 +1,34 @@ +name: Kustomize GitHub Actions for skyline + +on: + pull_request: + paths: + - kustomize/skyline/** + - .github/workflows/kustomize-skyline.yaml +jobs: + kustomize: + strategy: + matrix: + overlays: + - base + - aio + - fqdn + name: Kustomize + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Kustomize Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/skyline/${{ matrix.overlays }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-skyline-artifact-${{ matrix.overlays }} + path: /tmp/rendered.yaml diff --git a/.github/workflows/kustomize-topolvm.yaml b/.github/workflows/kustomize-topolvm.yaml new file mode 100644 index 00000000..7e10cb50 --- /dev/null +++ b/.github/workflows/kustomize-topolvm.yaml @@ -0,0 +1,38 @@ +name: Kustomize GitHub Actions for topolvm + +on: + pull_request: + paths: + - kustomize/topolvm/** + - .github/workflows/kustomize-topolvm.yaml +jobs: + kustomize: + strategy: + matrix: + overlays: + - general + + 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 Install + working-directory: /usr/local/bin/ + run: | + if [ ! -f /usr/local/bin/kustomize ]; then + curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash + fi + - name: Run Kustomize Build + run: | + kustomize build kustomize/topolvm/${{ matrix.overlays }} --enable-helm --helm-command ${{ steps.helm.outputs.helm-path }} > /tmp/rendered.yaml + - name: Return Kustomize Build + uses: actions/upload-artifact@v2 + with: + name: kustomize-topolvm-artifact-${{ matrix.overlays }} + path: /tmp/rendered.yaml