Skip to content

Commit e882a8c

Browse files
committed
Resolve review comments
1 parent 99479f1 commit e882a8c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

controllers/operator/authentication/ldap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/mongodb/mongodb-kubernetes/pkg/util/stringutil"
1010
)
1111

12-
var LDAPPlainMechanism = &ldapAuthMechanism{}
12+
var LDAPPlainMechanism Mechanism = &ldapAuthMechanism{}
1313

1414
type ldapAuthMechanism struct{}
1515

controllers/operator/authentication/scramsha.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
)
1010

1111
var (
12-
MongoDBCRMechanism = AutomationConfigScramSha{MechanismName: MongoDBCR}
13-
ScramSha1Mechanism = AutomationConfigScramSha{MechanismName: ScramSha1}
14-
ScramSha256Mechanism = AutomationConfigScramSha{MechanismName: ScramSha256}
12+
MongoDBCRMechanism Mechanism = AutomationConfigScramSha{MechanismName: MongoDBCR}
13+
ScramSha1Mechanism Mechanism = AutomationConfigScramSha{MechanismName: ScramSha1}
14+
ScramSha256Mechanism Mechanism = AutomationConfigScramSha{MechanismName: ScramSha256}
1515
)
1616

1717
// AutomationConfigScramSha applies all the changes required to configure SCRAM-SHA authentication

controllers/operator/authentication/scramsha_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
func TestAgentsAuthentication(t *testing.T) {
1515
type TestConfig struct {
16-
mechanism AutomationConfigScramSha
16+
mechanism Mechanism
1717
}
1818
tests := map[string]TestConfig{
1919
"SCRAM-SHA-1": {

controllers/operator/authentication/x509.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/mongodb/mongodb-kubernetes/pkg/util/stringutil"
1111
)
1212

13-
var MongoDBX509Mechanism = ConnectionX509{}
13+
var MongoDBX509Mechanism Mechanism = ConnectionX509{}
1414

1515
type ConnectionX509 struct{}
1616

0 commit comments

Comments
 (0)