Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/mongodb-healthcheck/healthcheck/readiness.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func MongodReadinessCheck(ctx context.Context, cnf *db.Config) error {
var rs mongo.Status
rs, err = client.RSStatus(ctx)
if err != nil {
// We should ignore this error to allow operator to fix the config. This pod should be ready
if errors.Is(err, mongo.ErrInvalidReplsetConfig) {
log.Info("Couldn't connect to mongo due to invalid replset config. Ignoring", "error", err)
return nil, nil
Expand Down
1 change: 1 addition & 0 deletions cmd/mongodb-healthcheck/tool/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func NewConfig(app *kingpin.Application, envUser string, envPassword string) (*d
).Envar(EnvMongoDBNetSSLInsecure).BoolVar(&ssl.Insecure)

conf.SSL = ssl
conf.Direct = true

return conf, nil
}
Expand Down
Loading