diff --git a/api/compute/v1alpha1/common.go b/api/compute/v1alpha1/common.go index c09bbb3c..45a3cf71 100644 --- a/api/compute/v1alpha1/common.go +++ b/api/compute/v1alpha1/common.go @@ -177,7 +177,7 @@ type PodPolicy struct { // TerminationGracePeriodSeconds is the amount of time that kubernetes will give // for a pod before terminating it. - TerminationGracePeriodSeconds int64 `json:"terminationGracePeriodSeconds,omitempty"` + TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` // List of volumes that can be mounted by containers belonging to the pod. // More info: https://kubernetes.io/docs/concepts/storage/volumes diff --git a/controllers/spec/common.go b/controllers/spec/common.go index 18c56180..f8fac93c 100644 --- a/controllers/spec/common.go +++ b/controllers/spec/common.go @@ -416,7 +416,7 @@ func makePodTemplate(container *corev1.Container, filebeatContainer *corev1.Cont Spec: corev1.PodSpec{ InitContainers: initContainers, Containers: containers, - TerminationGracePeriodSeconds: &policy.TerminationGracePeriodSeconds, + TerminationGracePeriodSeconds: policy.TerminationGracePeriodSeconds, Volumes: volumes, NodeSelector: policy.NodeSelector, Affinity: policy.Affinity,