Skip to content

Commit 38e4a27

Browse files
committed
nit: replace unused parameters
1 parent c0f60aa commit 38e4a27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

controllers/operator/authentication/ldap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func (l *ldapAuthMechanism) GetName() MechanismName {
1818
return LDAPPlain
1919
}
2020

21-
func (l *ldapAuthMechanism) EnableAgentAuthentication(ctx context.Context, client kubernetesClient.Client, conn om.Connection, opts Options, log *zap.SugaredLogger) error {
21+
func (l *ldapAuthMechanism) EnableAgentAuthentication(_ context.Context, _ kubernetesClient.Client, conn om.Connection, opts Options, log *zap.SugaredLogger) error {
2222
log.Info("Configuring LDAP authentication")
2323
err := conn.ReadUpdateAutomationConfig(func(ac *om.AutomationConfig) error {
2424
if err := ac.EnsureKeyFileContents(); err != nil {

controllers/operator/authentication/x509.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func (x *connectionX509) GetName() MechanismName {
1818
return MongoDBX509
1919
}
2020

21-
func (x *connectionX509) EnableAgentAuthentication(ctx context.Context, client kubernetesClient.Client, conn om.Connection, opts Options, log *zap.SugaredLogger) error {
21+
func (x *connectionX509) EnableAgentAuthentication(_ context.Context, _ kubernetesClient.Client, conn om.Connection, opts Options, log *zap.SugaredLogger) error {
2222
log.Info("Configuring x509 authentication")
2323
err := conn.ReadUpdateAutomationConfig(func(ac *om.AutomationConfig) error {
2424
if err := ac.EnsureKeyFileContents(); err != nil {

0 commit comments

Comments
 (0)