Skip to content

Commit 53451d3

Browse files
Change type of TerminationGracePeriodSeconds to *int64 (#778)
* Change type of TerminationGracePeriodSeconds to *int64 * Generate code
1 parent 699c054 commit 53451d3

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

api/compute/v1alpha1/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ type PodPolicy struct {
177177

178178
// TerminationGracePeriodSeconds is the amount of time that kubernetes will give
179179
// for a pod before terminating it.
180-
TerminationGracePeriodSeconds int64 `json:"terminationGracePeriodSeconds,omitempty"`
180+
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"`
181181

182182
// List of volumes that can be mounted by containers belonging to the pod.
183183
// More info: https://kubernetes.io/docs/concepts/storage/volumes

api/compute/v1alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controllers/spec/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ func makePodTemplate(container *corev1.Container, filebeatContainer *corev1.Cont
416416
Spec: corev1.PodSpec{
417417
InitContainers: initContainers,
418418
Containers: containers,
419-
TerminationGracePeriodSeconds: &policy.TerminationGracePeriodSeconds,
419+
TerminationGracePeriodSeconds: policy.TerminationGracePeriodSeconds,
420420
Volumes: volumes,
421421
NodeSelector: policy.NodeSelector,
422422
Affinity: policy.Affinity,

0 commit comments

Comments
 (0)