-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EVEREST-1836 PSMDB 1.19.0 #648
EVEREST-1836 PSMDB 1.19.0 #648
Conversation
# Conflicts: # go.mod # go.sum
# Conflicts: # .github/workflows/ci.yml # go.mod # go.sum # internal/controller/providers/psmdb/applier.go
// 1-node cluster, former 1-node cluster, a cluster with deprecated AllowUnsafeConfiguration | ||
value := p.DB.Spec.Engine.Replicas == 1 || p.PerconaServerMongoDB.Spec.UnsafeConf || p.DB.Spec.AllowUnsafeConfiguration | ||
p.PerconaServerMongoDB.Spec.UnsafeConf = value | ||
p.PerconaServerMongoDB.Spec.UnsafeConf = false | ||
useInsecureSize := p.DB.Spec.Engine.Replicas == 1 || p.DB.Spec.AllowUnsafeConfiguration | ||
p.PerconaServerMongoDB.Spec.Unsafe = psmdbv1.UnsafeFlags{ | ||
TLS: p.DB.Spec.AllowUnsafeConfiguration, | ||
MongosSize: useInsecureSize, | ||
ReplsetSize: useInsecureSize, | ||
TerminationGracePeriod: p.DB.Spec.AllowUnsafeConfiguration, | ||
BackupIfUnhealthy: p.DB.Spec.AllowUnsafeConfiguration, | ||
} | ||
if p.DB.Spec.AllowUnsafeConfiguration { | ||
p.PerconaServerMongoDB.Spec.TLS = &psmdbv1.TLSSpec{ | ||
Mode: psmdbv1.TLSModeDisabled, | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using p.DB.Spec.AllowUnsafeConfiguration
for backward compatibility with the already existing clusters on the Everest side. However on the psmdb side we don't use p.PerconaServerMongoDB.Spec.UnsafeConf
anymore but use more specific psmdbv1.UnsafeFlags
flags.
Here is how psmdb handles psmdbv1.UnsafeFlags
, that's why to make the old clusters work correctly we also need to set .PerconaServerMongoDB.Spec.TLS
for them.
CHANGE DESCRIPTION
Problem:
EVEREST-1836
Add support for PSMDB 1.19.0
Related pull requests
CHECKLIST
Helm chart
Jira
Tests