Skip to content

Commit

Permalink
feat: expose terminationGracePeriodSeconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Demonsthere committed Jan 30, 2024
1 parent 4f026cd commit 1004de2
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm/charts/hydra-maester/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ spec:
{{- if .Values.deployment.extraVolumes }}
{{- toYaml .Values.deployment.extraVolumes | nindent 8 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
2 changes: 2 additions & 0 deletions helm/charts/hydra-maester/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ deployment:
# -- This applications connects to the k8s API and requires the permissions
automountServiceAccountToken: true

terminationGracePeriodSeconds: 60

# -- Arguments to be passed to the program
args:
# -- The minimum frequency at which watched resources are reconciled
Expand Down
1 change: 1 addition & 0 deletions helm/charts/hydra/templates/deployment-watcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ spec:
spec:
automountServiceAccountToken: {{ .Values.deployment.automountServiceAccountToken }}
serviceAccountName: {{ include "hydra.serviceAccountName" . }}-watcher
terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }}
containers:
- name: watcher
{{- with .Values.watcher.securityContext }}
Expand Down
1 change: 1 addition & 0 deletions helm/charts/hydra/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ spec:
{{- end }}
serviceAccountName: {{ include "hydra.serviceAccountName" . }}
automountServiceAccountToken: {{ .Values.deployment.automountServiceAccountToken }}
terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down
2 changes: 2 additions & 0 deletions helm/charts/hydra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ deployment:
# https://github.com/kubernetes/kubernetes/issues/57601
automountServiceAccountToken: true

terminationGracePeriodSeconds: 60

# -- If you want to add extra init containers. These are processed before the migration init container.
extraInitContainers: ""
# extraInitContainers: |
Expand Down
1 change: 1 addition & 0 deletions helm/charts/keto/templates/deployment-watcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ spec:
serviceAccountName: {{ include "keto.serviceAccountName" . }}-watcher
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }}
containers:
- name: watcher
{{- if .Values.securityContext }}
Expand Down
1 change: 1 addition & 0 deletions helm/charts/keto/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ spec:
automountServiceAccountToken: {{ $automountServiceAccountToken }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }}
containers:
- name: {{ .Chart.Name }}
{{- with .Values.securityContext }}
Expand Down
1 change: 1 addition & 0 deletions helm/charts/keto/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ deployment:
extraEnv: []
# -- Number of revisions kept in history
revisionHistoryLimit: 5
terminationGracePeriodSeconds: 60

## -- Watcher sidecar configuration
watcher:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ spec:
volumes:
{{- toYaml . | nindent 6 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
1 change: 1 addition & 0 deletions helm/charts/kratos-selfservice-ui-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ deployment:

# https://github.com/kubernetes/kubernetes/issues/57601
automountServiceAccountToken: false
terminationGracePeriodSeconds: 60

affinity: {}

Expand Down
1 change: 1 addition & 0 deletions helm/charts/kratos/templates/deployment-kratos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ spec:
{{- end }}
automountServiceAccountToken: {{ .Values.deployment.automountServiceAccountToken }}
serviceAccountName: {{ include "kratos.serviceAccountName" . }}
terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }}
containers:
- name: {{ .Chart.Name }}
image: {{ include "kratos.image" . }}
Expand Down
1 change: 1 addition & 0 deletions helm/charts/kratos/templates/deployment-watcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ spec:
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }}
containers:
- name: watcher
{{- if .Values.securityContext }}
Expand Down
1 change: 1 addition & 0 deletions helm/charts/kratos/templates/statefulset-mail.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.statefulSet.terminationGracePeriodSeconds }}
containers:
- name: {{ include "kratos.fullname" . }}-courier
image: {{ include "kratos.image" . }}
Expand Down
4 changes: 4 additions & 0 deletions helm/charts/kratos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ deployment:
# https://github.com/kubernetes/kubernetes/issues/57601
automountServiceAccountToken: true

terminationGracePeriodSeconds: 60

# -- Specify pod metadata, this metadata is added directly to the pod, and not higher objects
podMetadata:
# -- Extra pod level labels
Expand Down Expand Up @@ -471,6 +473,8 @@ statefulSet:
# -- Number of revisions kept in history
revisionHistoryLimit: 5

terminationGracePeriodSeconds: 60

## -- Pod level security context
podSecurityContext:
fsGroupChangePolicy: "OnRootMismatch"
Expand Down
1 change: 1 addition & 0 deletions helm/charts/oathkeeper-maester/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
1 change: 1 addition & 0 deletions helm/charts/oathkeeper-maester/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ deployment:
# https://github.com/kubernetes/kubernetes/issues/57601
# This applications connects to the k8s API and requires the permissions
automountServiceAccountToken: true
terminationGracePeriodSeconds: 60
# -- Specify pod metadata, this metadata is added directly to the pod, and not higher objects
podMetadata:
# -- Extra pod level labels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ spec:
{{- if .Values.deployment.extraInitContainers }}
{{- tpl .Values.deployment.extraInitContainers . | nindent 8 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
1 change: 1 addition & 0 deletions helm/charts/oathkeeper/templates/deployment-sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ spec:
{{- if .Values.deployment.extraInitContainers }}
{{- tpl .Values.deployment.extraInitContainers . | nindent 8 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
2 changes: 2 additions & 0 deletions helm/charts/oathkeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ deployment:
# https://github.com/kubernetes/kubernetes/issues/57601
automountServiceAccountToken: false

terminationGracePeriodSeconds: 60

# -- Node labels for pod assignment.
nodeSelector: {}
# If you do want to specify node labels, uncomment the following
Expand Down

0 comments on commit 1004de2

Please sign in to comment.