Skip to content

Commit 10da9cf

Browse files
authored
fix json naming of auditLogRotate (#1599)
1 parent 1f36c73 commit 10da9cf

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

Diff for: api/v1/mongodbcommunity_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ type AgentConfiguration struct {
374374
LogRotate *automationconfig.CrdLogRotate `json:"logRotate,omitempty"`
375375
// +optional
376376
// AuditLogRotate if enabled, will enable AuditLogRotate for all processes.
377-
AuditLogRotate *automationconfig.CrdLogRotate `json:"AuditLogRotate,omitempty"`
377+
AuditLogRotate *automationconfig.CrdLogRotate `json:"auditLogRotate,omitempty"`
378378
// +optional
379379
// SystemLog configures system log of mongod
380380
SystemLog *automationconfig.SystemLog `json:"systemLog,omitempty"`

Diff for: api/v1/zz_generated.deepcopy.go

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ spec:
7474
description: AgentConfiguration sets options for the MongoDB automation
7575
agent
7676
properties:
77-
AuditLogRotate:
77+
auditLogRotate:
7878
description: AuditLogRotate if enabled, will enable AuditLogRotate
7979
for all processes.
8080
properties:

Diff for: test/e2e/mongodbtests/mongodbtests.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ func ConnectionStringSecretIsCleanedUp(ctx context.Context, mdb *mdbv1.MongoDBCo
800800
return func(t *testing.T) {
801801
connectionStringSecret := corev1.Secret{}
802802
newErr := e2eutil.TestClient.Get(ctx, types.NamespacedName{Name: removedConnectionString, Namespace: mdb.Namespace}, &connectionStringSecret)
803-
803+
804804
assert.EqualError(t, newErr, fmt.Sprintf("secrets \"%s\" not found", removedConnectionString))
805805
}
806806
}

0 commit comments

Comments
 (0)