Skip to content

Commit c50498c

Browse files
author
Maksym Trofimenko
committed
enable jobs cleanup in helm chart
1 parent 8528955 commit c50498c

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

charts/tinysystems-operator/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type: application
1313
# This is the chart version. This version number should be incremented each time you make changes
1414
# to the chart and its templates, including the app version.
1515
# Versions are expected to follow Semantic Versioning (https://semver.org/)
16-
version: 0.1.55
16+
version: 0.1.57
1717
# This is the version number of the application being deployed. This version number should be
1818
# incremented each time you make changes to the application. Versions are not expected to
1919
# follow Semantic Versioning. They should reflect the version the application is using.

charts/tinysystems-operator/templates/jobs.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
annotations:
88
"helm.sh/hook": pre-install,pre-upgrade
99
"helm.sh/hook-weight": "-5"
10-
# "helm.sh/hook-delete-policy": hook-succeeded
10+
"helm.sh/hook-delete-policy": hook-succeeded
1111
spec:
1212
template:
1313
metadata:
@@ -21,7 +21,6 @@ spec:
2121
args: {{- toYaml .Values.controllerManager.manager.installArgs | nindent 12 }}
2222
command:
2323
- /manager
24-
serviceAccountName: {{ include "tinysystems-operator.fullname" . }}-controller-manager
2524
---
2625
apiVersion: batch/v1
2726
kind: Job
@@ -32,7 +31,7 @@ metadata:
3231
annotations:
3332
"helm.sh/hook": pre-delete
3433
"helm.sh/hook-weight": "-5"
35-
# "helm.sh/hook-delete-policy": hook-succeeded
34+
"helm.sh/hook-delete-policy": hook-succeeded
3635
spec:
3736
template:
3837
metadata:

charts/tinysystems-operator/templates/serviceaccount.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ metadata:
88
app.kubernetes.io/part-of: operator
99
{{- include "tinysystems-operator.labels" . | nindent 4 }}
1010
annotations:
11-
helm.sh/hook-weight: "-10"
1211
{{- toYaml .Values.controllerManager.serviceAccount.annotations | nindent 4 }}

0 commit comments

Comments
 (0)