From 53e7e094caeabada86f8ab8f2efb134db9afde8c Mon Sep 17 00:00:00 2001 From: inductor Date: Tue, 30 Aug 2022 14:45:39 +0900 Subject: [PATCH 1/2] add pluto k8s api version validator --- .github/workflows/pluto.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/pluto.yaml diff --git a/.github/workflows/pluto.yaml b/.github/workflows/pluto.yaml new file mode 100644 index 000000000..eae2bc485 --- /dev/null +++ b/.github/workflows/pluto.yaml @@ -0,0 +1,25 @@ +name: K8s resource API version check with Pluto + +on: + pull_request: + paths: + - "helm-charts/cloudflared-tunnel" + - "seichi-onp-k8s/manifests/seichi-kubernetes" + +jobs: + api-c : + name: K8s resource API version check with Pluto + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Download Pluto + uses: FairwindsOps/pluto/github-action@master + + - name: Use pluto + run: | + pluto detect-files -d helm-charts/cloudflared-tunnel --target-versions k8s=v1.24.0 + + - name: Use pluto + run: | + pluto detect-files -d seichi-onp-k8s/manifests/seichi-kubernetes/apps --target-versions k8s=v1.24.0 From 4c3ee3875b06b92942f5d0a589a40d7d1880bdee Mon Sep 17 00:00:00 2001 From: inductor Date: Tue, 30 Aug 2022 14:50:26 +0900 Subject: [PATCH 2/2] add rule --- .github/workflows/pluto.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pluto.yaml b/.github/workflows/pluto.yaml index eae2bc485..c5f9f26e0 100644 --- a/.github/workflows/pluto.yaml +++ b/.github/workflows/pluto.yaml @@ -3,6 +3,7 @@ name: K8s resource API version check with Pluto on: pull_request: paths: + - ".github/workflows/pluto.yaml" - "helm-charts/cloudflared-tunnel" - "seichi-onp-k8s/manifests/seichi-kubernetes"