fix(forgejo-runner): do not delete config secret (hook with resource-policy only delete)

This commit is contained in:
WrenIX 2024-09-30 21:19:24 +02:00
parent 69bf19be1e
commit a6ab540830
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
3 changed files with 6 additions and 5 deletions

View file

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

View file

@ -2,7 +2,7 @@
= forgejo-runner
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-0.2.14-informational?style=flat-square[Version: 0.2.14]
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]
== Maintainers

View file

@ -56,12 +56,13 @@ subjects:
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: {{ $secretName }}
annotations:
helm.sh/resource-policy: keep
"helm.sh/hook": "pre-install,pre-upgrade"
type: Opaque
"helm.sh/resource-policy": keep
"helm.sh/hook-delete-policy": "hook-failed"
"helm.sh/hook": "pre-install"
---
apiVersion: v1
kind: Secret