mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 21:23:12 +01:00
chore: review
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
This commit is contained in:
parent
89e486cce0
commit
d23bfecb04
@ -236,7 +236,6 @@ func reconcilePodSpec(
|
|||||||
}
|
}
|
||||||
|
|
||||||
baseProbe := &corev1.Probe{
|
baseProbe := &corev1.Probe{
|
||||||
PeriodSeconds: 10,
|
|
||||||
FailureThreshold: 3,
|
FailureThreshold: 3,
|
||||||
ProbeHandler: corev1.ProbeHandler{
|
ProbeHandler: corev1.ProbeHandler{
|
||||||
Exec: &corev1.ExecAction{
|
Exec: &corev1.ExecAction{
|
||||||
@ -245,15 +244,12 @@ func reconcilePodSpec(
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
readinessProbe := baseProbe.DeepCopy()
|
|
||||||
readinessProbe.InitialDelaySeconds = 10
|
|
||||||
|
|
||||||
// fixed values
|
// fixed values
|
||||||
sidecarConfig.Name = "plugin-barman-cloud"
|
sidecarConfig.Name = "plugin-barman-cloud"
|
||||||
sidecarConfig.Image = viper.GetString("sidecar-image")
|
sidecarConfig.Image = viper.GetString("sidecar-image")
|
||||||
sidecarConfig.ImagePullPolicy = cluster.Spec.ImagePullPolicy
|
sidecarConfig.ImagePullPolicy = cluster.Spec.ImagePullPolicy
|
||||||
sidecarConfig.ReadinessProbe = readinessProbe.DeepCopy()
|
|
||||||
sidecarConfig.LivenessProbe = baseProbe.DeepCopy()
|
sidecarConfig.LivenessProbe = baseProbe.DeepCopy()
|
||||||
|
sidecarConfig.StartupProbe = baseProbe.DeepCopy()
|
||||||
|
|
||||||
// merge the main container envs if they aren't already set
|
// merge the main container envs if they aren't already set
|
||||||
for _, container := range spec.Containers {
|
for _, container := range spec.Containers {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user