Skip to content

Commit

Permalink
Made terminationGracePeriodSeconds configurable (helm#21385)
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Koziorowski <Michal.Koziorowski@tomtom.com>

Co-authored-by: Michal Koziorowski <Michal.Koziorowski@tomtom.com>
  • Loading branch information
mkozioro and MichalKoziorowski-TomTom authored Mar 12, 2020
1 parent 5f56365 commit 3fc1bb3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion incubator/haproxy-ingress/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: haproxy-ingress
version: 0.0.22
version: 0.0.23
appVersion: 0.7.2
home: https://github.com/jcmoraisjr/haproxy-ingress
description: Ingress controller implementation for haproxy loadbalancer.
Expand Down
1 change: 1 addition & 0 deletions incubator/haproxy-ingress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Parameter | Description | Default
`controller.config` | additional haproxy-ingress [ConfigMap entries](https://github.com/jcmoraisjr/haproxy-ingress/blob/v0.6/README.md#configmap) | `{}`
`controller.hostNetwork` | Optionally set to true when using CNI based kubernetes installations | `false`
`controller.dnsPolicy` | Optionally change this to ClusterFirstWithHostNet in case you have 'hostNetwork: true' | `ClusterFirst`
`controller.terminationGracePeriodSeconds` | How much to wait before terminating a pod (in seconds) | `60`
`controller.kind` | Type of deployment, DaemonSet or Deployment | `Deployment`
`controller.tcp` | TCP [service ConfigMap](https://github.com/jcmoraisjr/haproxy-ingress/blob/v0.6/README.md#tcp-services-configmap): `<port>: <namespace>/<servicename>:<portnumber>[:[<in-proxy>][:<out-proxy>]]` | `{}`
`controller.enableStaticPorts` | Set to `false` to only rely on ports from `controller.tcp` | `true`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ spec:
configMap:
name: {{ template "haproxy-ingress.controller.fullname" . }}-template
{{- end }}
terminationGracePeriodSeconds: 60
terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}
dnsPolicy: {{ .Values.controller.dnsPolicy }}
hostNetwork: {{ .Values.controller.hostNetwork }}
{{- if .Values.controller.nodeSelector }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ spec:
configMap:
name: {{ template "haproxy-ingress.controller.fullname" . }}-template
{{- end }}
terminationGracePeriodSeconds: 60
terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}
dnsPolicy: {{ .Values.controller.dnsPolicy }}
hostNetwork: {{ .Values.controller.hostNetwork }}
{{- if .Values.controller.nodeSelector }}
Expand Down
3 changes: 3 additions & 0 deletions incubator/haproxy-ingress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ controller:
# to keep resolving names inside the k8s network, use ClusterFirstWithHostNet.
dnsPolicy: ClusterFirst

# How many seconds to wait before terminating a pod.
terminationGracePeriodSeconds: 60

## DaemonSet or Deployment
##
kind: Deployment
Expand Down

0 comments on commit 3fc1bb3

Please sign in to comment.