From e1699a90b1fff140541b0997ae2f798567df3731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20B=C3=A4hler?= Date: Tue, 20 May 2025 18:01:53 +0200 Subject: [PATCH] chore: housekeeping tasks (#1465) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: remove unecessary pre-commit hook Signed-off-by: Oliver Bähler * fix(helm): remove incompatible comparison Signed-off-by: Oliver Bähler * chore: add stale-workflow Signed-off-by: Oliver Bähler --------- Signed-off-by: Oliver Bähler --- .github/workflows/stale.yml | 25 +++++++++++++++++++ .../capsule/templates/crd-lifecycle/job.yaml | 2 -- .../capsule/templates/post-install/job.yaml | 2 -- charts/capsule/templates/pre-delete/job.yaml | 2 -- 4 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..28dacaba --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,25 @@ +name: Stale-Bot +permissions: {} + +on: + schedule: + - cron: '0 0 * * *' # Run every day at midnight + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + actions: write + contents: write # only for delete-branch option + issues: write + pull-requests: write + steps: + - name: Close stale pull requests + uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 + with: + stale-issue-message: 'This pull request has been automatically closed because it has been inactive for more than 60 days. Please reopen if you still intend to submit this pull request.' + days-before-stale: 60 + days-before-close: 30 + days-before-pr-stale: 30 + stale-pr-message: 'This pull request has been marked as stale because it has been inactive for more than 30 days. Please update this pull request or it will be automatically closed in 7 days.' + stale-pr-label: stale diff --git a/charts/capsule/templates/crd-lifecycle/job.yaml b/charts/capsule/templates/crd-lifecycle/job.yaml index 6b339001..62ef8d2f 100644 --- a/charts/capsule/templates/crd-lifecycle/job.yaml +++ b/charts/capsule/templates/crd-lifecycle/job.yaml @@ -19,9 +19,7 @@ metadata: {{- include "capsule.labels" . | nindent 4 }} spec: backoffLimit: {{ $Values.backoffLimit }} - {{- if ge $Values.ttlSecondsAfterFinished 0.0 }} ttlSecondsAfterFinished: {{ $Values.ttlSecondsAfterFinished }} - {{- end }} template: metadata: name: "{{ include "capsule.crds.name" . }}" diff --git a/charts/capsule/templates/post-install/job.yaml b/charts/capsule/templates/post-install/job.yaml index 7858f2b6..8813a0be 100644 --- a/charts/capsule/templates/post-install/job.yaml +++ b/charts/capsule/templates/post-install/job.yaml @@ -17,9 +17,7 @@ metadata: {{- end }} spec: backoffLimit: {{ $Values.backoffLimit }} - {{- if ge $Values.ttlSecondsAfterFinished 0.0 }} ttlSecondsAfterFinished: {{ $Values.ttlSecondsAfterFinished }} - {{- end }} template: metadata: labels: diff --git a/charts/capsule/templates/pre-delete/job.yaml b/charts/capsule/templates/pre-delete/job.yaml index d757a543..58c6437a 100644 --- a/charts/capsule/templates/pre-delete/job.yaml +++ b/charts/capsule/templates/pre-delete/job.yaml @@ -17,9 +17,7 @@ metadata: {{- end }} spec: backoffLimit: {{ $Values.backoffLimit }} - {{- if ge $Values.ttlSecondsAfterFinished 0.0 }} ttlSecondsAfterFinished: {{ $Values.ttlSecondsAfterFinished }} - {{- end }} template: metadata: labels: