Skip to content

Commit d997b97

Browse files
committed
fix: improve hook resource policies
1 parent ee65f38 commit d997b97

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

templates/postgres/azure_postgres_service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ metadata:
1010
# job is considered part of the release.
1111
"helm.sh/hook": pre-install
1212
"helm.sh/hook-weight": "-2"
13+
"helm.sh/hook-delete-policy": hook-failed
1314
spec:
1415
externalName: {{ .Values.dbSettings.azureSqlEndpoint }}
1516
selector:

templates/postgres/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ metadata:
1313
# job is considered part of the release.
1414
"helm.sh/hook": pre-install
1515
"helm.sh/hook-weight": "-3"
16+
"helm.sh/hook-delete-policy": hook-failed
1617
spec:
1718
replicas: 1
1819
selector:

templates/postgres/rds_postgres_service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ metadata:
1010
# job is considered part of the release.
1111
"helm.sh/hook": pre-install
1212
"helm.sh/hook-weight": "-2"
13+
"helm.sh/hook-delete-policy": hook-failed
1314
spec:
1415
externalName: {{ .Values.dbSettings.rdsEndpoint }}
1516
selector:

templates/postgres/service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ metadata:
99
# job is considered part of the release.
1010
"helm.sh/hook": pre-install
1111
"helm.sh/hook-weight": "-2"
12+
"helm.sh/hook-delete-policy": hook-failed
1213
spec:
1314
ports:
1415
- port: 5432

0 commit comments

Comments
 (0)