This repository was archived by the owner on Jan 13, 2026. It is now read-only.
Kubeapps Custodian Rules #1256
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2022 the Kubeapps contributors. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| --- | |
| name: Kubeapps Custodian Rules | |
| on: | |
| schedule: | |
| - cron: "0 8 * * *" | |
| env: | |
| GOOGLE_APPLICATION_CREDENTIALS: key.json | |
| GCLOUD_CUSTODIAN_KEY: ${{ secrets.GCLOUD_CUSTODIAN_KEY }} | |
| CLOUDSDK_CORE_PROJECT: ${{ secrets.GOOGLE_CLOUD_PROJECT }} | |
| jobs: | |
| remove-unattached-disks: | |
| if: github.repository == 'vmware-tanzu/kubeapps' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: gscho/setup-cloud-custodian@v1 | |
| with: | |
| include-gcp: true | |
| - run: echo $GCLOUD_CUSTODIAN_KEY > $GOOGLE_APPLICATION_CREDENTIALS | |
| - run: custodian run -s out .github/workflows/custodian-rules/remove-unattached-disks.yaml |