Skip to content

Commit

Permalink
operator: increase termination grace period from 30 to 120 seconds to…
Browse files Browse the repository at this point in the history
… account for hooks
  • Loading branch information
nicolaferraro committed Apr 15, 2022
1 parent db733e5 commit 15cc64c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/go/k8s/pkg/resources/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ var (
ConfigMapHashAnnotationKey = redpandav1alpha1.GroupVersion.Group + "/configmap-hash"
// CentralizedConfigurationHashAnnotationKey contains the hash of the centralized configuration properties that require a restart when changed
CentralizedConfigurationHashAnnotationKey = redpandav1alpha1.GroupVersion.Group + "/centralized-configuration-hash"

// terminationGracePeriodSeconds should account for additional delay introduced by hooks
terminationGracePeriodSeconds int64 = 120
)

// ConfiguratorSettings holds settings related to configurator container and deployment
Expand Down Expand Up @@ -345,6 +348,7 @@ func (r *StatefulSetResource) obj(
},
},
}, r.secretVolumes()...),
TerminationGracePeriodSeconds: &terminationGracePeriodSeconds,
InitContainers: []corev1.Container{
{
Name: configuratorContainerName,
Expand Down

0 comments on commit 15cc64c

Please sign in to comment.