Skip to content

Commit ad55e70

Browse files
committed
feat(drupal): convert helm hooks to ArgoCD resource hooks, add .helmignore
- post-release.yaml: helm.sh/hook → argocd.argoproj.io/hook: PostSync - pre-release.yaml: helm.sh/hook → argocd.argoproj.io/hook: PreSync - .helmignore: exclude *.tgz and tests/ to keep chart size under 5MB - Bump version to 1.35.0
1 parent 9dbf93f commit ad55e70

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

drupal/.helmignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Packaged chart archives
2+
*.tgz
13

2-
3-
4+
# Tests (not needed at runtime)
5+
tests/
6+
test.values.yaml

drupal/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: drupal
3-
version: 1.34.3
3+
version: 1.35.0
44
dependencies:
55
- name: mariadb
66
version: 7.5.x

drupal/templates/post-release.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ metadata:
55
labels:
66
{{- include "drupal.release_labels" . | nindent 4 }}
77
annotations:
8-
# This is what defines this resource as a hook. Without this line, the
9-
# job is considered part of the release.
10-
"helm.sh/hook": "post-install,post-upgrade"
11-
"helm.sh/hook-weight": "-5"
12-
"helm.sh/hook-delete-policy": "before-hook-creation"
8+
# ArgoCD hook: run after sync completes successfully.
9+
argocd.argoproj.io/hook: PostSync
10+
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
1311
spec:
1412
completions: 1
1513
backoffLimit: 0

drupal/templates/pre-release.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ metadata:
1111
labels:
1212
{{- include "drupal.release_labels" . | nindent 4 }}
1313
annotations:
14-
# This is what defines this resource as a hook. Without this line, the
15-
# job is considered part of the release.
16-
"helm.sh/hook": "pre-upgrade"
17-
"helm.sh/hook-delete-policy": "before-hook-creation"
14+
# ArgoCD hook: run before sync (backup/pre-upgrade tasks).
15+
argocd.argoproj.io/hook: PreSync
16+
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
1817
spec:
1918
completions: 1
2019
backoffLimit: 0

0 commit comments

Comments
 (0)