-
Notifications
You must be signed in to change notification settings - Fork 6
feat: add optional strategy and terminationGracePeriodSeconds to gateway deployment #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,6 +4,15 @@ | |||||
|
|
||||||
| replicaCount: 1 | ||||||
|
|
||||||
| # Deployment strategy configuration | ||||||
| # Example: | ||||||
| # strategy: | ||||||
| # type: RollingUpdate | ||||||
| # rollingUpdate: | ||||||
| # maxSurge: 1 | ||||||
| # maxUnavailable: 0 | ||||||
| strategy: {} | ||||||
|
|
||||||
| images: | ||||||
| gatewayImage: | ||||||
| repository: "docker.io/portkeyai/gateway_enterprise" | ||||||
|
|
@@ -265,6 +274,10 @@ hostAlias: [] | |||||
| # if you want to restart instance automatically | ||||||
| autoRestart: false | ||||||
|
|
||||||
| # Optional: Grace period for pod termination (in seconds) | ||||||
|
||||||
| # Optional: Grace period for pod termination (in seconds) | |
| # Grace period for pod termination (in seconds) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The conditional check
{{- if .Values.terminationGracePeriodSeconds }}will evaluate to false when the value is 0, which is a valid Kubernetes value meaning "delete immediately". This prevents users from explicitly setting terminationGracePeriodSeconds to 0. Consider using a more specific check like{{- if ne .Values.terminationGracePeriodSeconds nil }}or{{- if hasKey .Values "terminationGracePeriodSeconds" }}to allow 0 as a valid value.