Skip to content

Commit cf08be7

Browse files
committed
bump compare version check to 1.21
1 parent 3550700 commit cf08be7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/psmdb/container.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func container(ctx context.Context, cr *api.PerconaServerMongoDB, replset *api.R
6666
}...)
6767
}
6868

69-
if cr.CompareVersion("1.20.0") >= 0 { // TODO change this to 1.21
69+
if cr.CompareVersion("1.21.0") >= 0 {
7070
volumes = append(volumes, corev1.VolumeMount{
7171
Name: config.MongodDataLogsVolClaimName,
7272
MountPath: config.MongodContainerDataLogsDir,
@@ -175,7 +175,7 @@ func container(ctx context.Context, cr *api.PerconaServerMongoDB, replset *api.R
175175
container.Command = []string{config.BinMountPath + "/ps-entry.sh"}
176176
}
177177

178-
if cr.CompareVersion("1.20.0") >= 0 {
178+
if cr.CompareVersion("1.21.0") >= 0 {
179179
if cr.IsLogCollectorEnabled() {
180180
container.Env = append(container.Env, corev1.EnvVar{
181181
Name: "LOGCOLLECTOR_ENABLED",

pkg/psmdb/statefulset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func StatefulSpec(ctx context.Context, cr *api.PerconaServerMongoDB, replset *ap
294294
containers = append(containers, *pmmC)
295295
}
296296

297-
if cr.CompareVersion("1.20.0") >= 0 { // TODO: change this to 1.21
297+
if cr.CompareVersion("1.21.0") >= 0 {
298298
logCollectorCs, err := logcollector.Containers(cr)
299299
if err != nil {
300300
log.Error(err, "error preparing logcollector containers")

0 commit comments

Comments
 (0)