fix(forgejo-runner): do not delete configfile secret (hook without resource-policy)

This commit is contained in:
WrenIX 2024-09-30 21:06:12 +02:00
parent f99e88a370
commit 69bf19be1e
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
3 changed files with 2 additions and 3 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v2
name: forgejo-runner name: forgejo-runner
description: Deploy runner for an forgejo instance (default codeberg.org) description: Deploy runner for an forgejo instance (default codeberg.org)
type: application type: application
version: 0.2.12 version: 0.2.13
# renovate: image=code.forgejo.org/forgejo/runner # renovate: image=code.forgejo.org/forgejo/runner
appVersion: "3.5.1" appVersion: "3.5.1"
maintainers: maintainers:

View file

@ -2,7 +2,7 @@
= forgejo-runner = forgejo-runner
image::https://img.shields.io/badge/Version-0.2.12-informational?style=flat-square[Version: 0.2.12] image::https://img.shields.io/badge/Version-0.2.13-informational?style=flat-square[Version: 0.2.13]
image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application] image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application]
image::https://img.shields.io/badge/AppVersion-3.5.1-informational?style=flat-square[AppVersion: 3.5.1] image::https://img.shields.io/badge/AppVersion-3.5.1-informational?style=flat-square[AppVersion: 3.5.1]
== Maintainers == Maintainers

View file

@ -7,6 +7,5 @@ metadata:
{{- include "forgejo-runner.labels" . | nindent 4 }} {{- include "forgejo-runner.labels" . | nindent 4 }}
annotations: annotations:
config-hash: {{ toYaml .Values.runner.config.file | sha256sum }} config-hash: {{ toYaml .Values.runner.config.file | sha256sum }}
"helm.sh/hook": "pre-install,pre-upgrade"
data: data:
config.yaml: {{ toYaml .Values.runner.config.file | b64enc }} config.yaml: {{ toYaml .Values.runner.config.file | b64enc }}