Skip to content

Commit

Permalink
set default empty Lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
DionJones615 committed Nov 12, 2024
1 parent ca8b545 commit c59901b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/jenkins_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,11 @@ func (r *JenkinsReconciler) setDefaults(jenkins *v1alpha2.Jenkins) (requeue bool
changed = true
jenkinsContainer.LivenessProbe = resources.NewProbe(containerProbeURI, containerProbePortName, corev1.URISchemeHTTP, 80, 5, 12)
}
if jenkinsContainer.Lifecycle == nil {
logger.Info("Setting default Jenkins lifecycle")
changed = true
jenkinsContainer.Lifecycle = &corev1.Lifecycle{}
}
if len(jenkinsContainer.Command) == 0 {
logger.Info("Setting default Jenkins container command")
changed = true
Expand Down

0 comments on commit c59901b

Please sign in to comment.