fix(forgejo-runner): update kubectl + adjust hook for cleanup of job
This commit is contained in:
parent
8e4e6de638
commit
0c068f9b5a
3 changed files with 5 additions and 3 deletions
|
@ -2,6 +2,6 @@ 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.1.2
|
version: 0.1.3
|
||||||
|
|
||||||
appVersion: "3.2.0"
|
appVersion: "3.2.0"
|
||||||
|
|
|
@ -62,6 +62,8 @@ metadata:
|
||||||
{{- include "forgejo-runner.labels" . | nindent 4 }}
|
{{- include "forgejo-runner.labels" . | nindent 4 }}
|
||||||
annotations:
|
annotations:
|
||||||
config-hash: {{ toYaml .Values.runner.config | sha256sum }}
|
config-hash: {{ toYaml .Values.runner.config | sha256sum }}
|
||||||
|
"helm.sh/hook": "pre-install,pre-upgrade"
|
||||||
|
"helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
|
||||||
stringData:
|
stringData:
|
||||||
CONFIG_NAME: {{ .Values.runner.config.name | quote }}
|
CONFIG_NAME: {{ .Values.runner.config.name | quote }}
|
||||||
CONFIG_INSTANCE: {{ .Values.runner.config.instance | quote }}
|
CONFIG_INSTANCE: {{ .Values.runner.config.instance | quote }}
|
||||||
|
@ -74,7 +76,7 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "forgejo-runner.labels" . | nindent 4 }}
|
{{- include "forgejo-runner.labels" . | nindent 4 }}
|
||||||
annotations:
|
annotations:
|
||||||
"helm.sh/hook": "post-install,post-upgrade"
|
"helm.sh/hook": "pre-install,pre-upgrade"
|
||||||
"helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
|
"helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -36,7 +36,7 @@ kubectl:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: bitnami/kubectl
|
repository: bitnami/kubectl
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
tag: 1.27.7
|
tag: 1.28.5
|
||||||
|
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
# Specifies whether a service account should be created
|
# Specifies whether a service account should be created
|
||||||
|
|
Loading…
Add table
Reference in a new issue