feat: expose jenkins master terminationGracePeriodSeconds (#1012)

Co-authored-by: brokenpip3 <brokenpip3@gmail.com>
This commit is contained in:
DionJones615
2024-06-11 23:57:48 +02:00
committed by GitHub
co-authored by brokenpip3
parent 061995a65c
commit 18197e66b7
10 changed files with 54 additions and 11 deletions
+7
View File
@@ -386,6 +386,13 @@ type JenkinsMaster struct {
// HostAliases for Jenkins master pod and SeedJob agent
// +optional
HostAliases []corev1.HostAlias `json:"hostAliases,omitempty"`
// The grace period is the duration in seconds after the processes running in the pod are sent
// a termination signal and the time when the processes are forcibly halted with a kill signal.
// Set this value longer than the expected cleanup time for your process.
// Defaults to 30 seconds.
// +optional
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"`
}
// Service defines Kubernetes service attributes
+5
View File
@@ -368,6 +368,11 @@ func (in *JenkinsMaster) DeepCopyInto(out *JenkinsMaster) {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.TerminationGracePeriodSeconds != nil {
in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds
*out = new(int64)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JenkinsMaster.