File tree 4 files changed +6
-6
lines changed
controllers/operator/authentication 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 9
9
"github.com/mongodb/mongodb-kubernetes/pkg/util/stringutil"
10
10
)
11
11
12
- var LDAPPlainMechanism = & ldapAuthMechanism {}
12
+ var LDAPPlainMechanism Mechanism = & ldapAuthMechanism {}
13
13
14
14
type ldapAuthMechanism struct {}
15
15
Original file line number Diff line number Diff line change 9
9
)
10
10
11
11
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 }
15
15
)
16
16
17
17
// AutomationConfigScramSha applies all the changes required to configure SCRAM-SHA authentication
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import (
13
13
14
14
func TestAgentsAuthentication (t * testing.T ) {
15
15
type TestConfig struct {
16
- mechanism AutomationConfigScramSha
16
+ mechanism Mechanism
17
17
}
18
18
tests := map [string ]TestConfig {
19
19
"SCRAM-SHA-1" : {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
10
10
"github.com/mongodb/mongodb-kubernetes/pkg/util/stringutil"
11
11
)
12
12
13
- var MongoDBX509Mechanism = ConnectionX509 {}
13
+ var MongoDBX509Mechanism Mechanism = ConnectionX509 {}
14
14
15
15
type ConnectionX509 struct {}
16
16
You can’t perform that action at this time.
0 commit comments