Skip to content

Commit

Permalink
feat: remove TTL for migration
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Nov 19, 2023
1 parent 7b3e966 commit 373ad40
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion infra/migration_chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ A Chart to migrate .NET Microservice
| serviceTree.service | string | `"dotnet"` | |
| tolerations | list | `[]` | |
| topologySpreadConstraints | object | `{}` | |
| ttlSecondsAfterFinished | int | `60` | |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.2](https://github.com/norwoodj/helm-docs/releases/v1.11.2)
4 changes: 3 additions & 1 deletion infra/migration_chart/templates/migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ metadata:
annotations: {{- include "dotnet-migration.annotations" . | nindent 4 }}
spec:
backoffLimit: {{ .Values.backoffLimit }}
ttlSecondsAfterFinished: {{ .Values.ttlSecondsAfterFinished }}
{{- with .Values.ttlSecondsAfterFinished }}
ttlSecondsAfterFinished: {{ . }}
{{- end }}
template:
metadata:
annotations: {{- include "dotnet-migration.annotations" . | nindent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion infra/migration_chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ annotations: {}

backoffLimit: 4
configMountPath: /app/App/Config/settings.yaml
ttlSecondsAfterFinished: 60

image:
repository: dotnet-migration
pullPolicy: IfNotPresent
Expand Down
1 change: 1 addition & 0 deletions infra/root_chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ migration:
Mode: Migration

backoffLimit: 4

configMountPath: /app/Config

image:
Expand Down

0 comments on commit 373ad40

Please sign in to comment.