Skip to content

Commit

Permalink
adding terminationGracePeriodSeconds Variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sdollison committed Apr 7, 2023
1 parent 4601092 commit f39f186
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ndustrial/deployment/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ maintainers:
- email: [email protected]
name: DevOps
# Please make sure that version and appVersion are always the same.
version: 0.1.56
appVersion: 0.1.56
version: 0.1.57
appVersion: 0.1.57
1 change: 1 addition & 0 deletions ndustrial/deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
| `readinessProbe.successThreshold` | Success threshold for readinessProbe | `1` |
| `updateStrategy.type` | Deployment deployment update strategy | `RollingUpdate` |
| `updateStrategy.rollingUpdate` | Deployment deployment rolling update configuration parameters | `{}` |
| `terminationGracePeriodSeconds` | Deployment deployment termination Grace Period Seconds | `30` |


### Service parameters
Expand Down
3 changes: 3 additions & 0 deletions ndustrial/deployment/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ spec:
{{- include "nio-common.tplvalues.render" (dict "value" .Values.initContainers "context" $) | nindent 8 }}
{{- end }}
serviceAccountName: {{ template "deployment.serviceAccountName" . }}
{{- if .Values.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{- include "nio-common.tplvalues.render" (dict "value" .Values.terminationGracePeriodSeconds "context" $) | nindent 8 }}
{{- end }}
containers:
- name: {{ include "nio-common.names.name" . }}
image: {{ template "deployment.image" . }}
Expand Down
4 changes: 4 additions & 0 deletions ndustrial/deployment/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ podAnnotations: {}
##
lifecycleHooks: {}

## @param  terminationGracePeriodSeconds Add termination Grace Period Seconds to the Deployment deployment
##
terminationGracePeriodSeconds: 30

## @param shareProcessNamespace Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.
shareProcessNamespace: false

Expand Down

0 comments on commit f39f186

Please sign in to comment.