diff --git a/api/v1/mongodbcommunity_types.go b/api/v1/mongodbcommunity_types.go index cd91000c1..f1e7f8710 100644 --- a/api/v1/mongodbcommunity_types.go +++ b/api/v1/mongodbcommunity_types.go @@ -374,7 +374,7 @@ type AgentConfiguration struct { LogRotate *automationconfig.CrdLogRotate `json:"logRotate,omitempty"` // +optional // AuditLogRotate if enabled, will enable AuditLogRotate for all processes. - AuditLogRotate *automationconfig.CrdLogRotate `json:"AuditLogRotate,omitempty"` + AuditLogRotate *automationconfig.CrdLogRotate `json:"auditLogRotate,omitempty"` // +optional // SystemLog configures system log of mongod SystemLog *automationconfig.SystemLog `json:"systemLog,omitempty"` diff --git a/api/v1/zz_generated.deepcopy.go b/api/v1/zz_generated.deepcopy.go index 40a547fef..bf58f2b77 100644 --- a/api/v1/zz_generated.deepcopy.go +++ b/api/v1/zz_generated.deepcopy.go @@ -34,6 +34,11 @@ func (in *AgentConfiguration) DeepCopyInto(out *AgentConfiguration) { *out = new(automationconfig.CrdLogRotate) **out = **in } + if in.AuditLogRotate != nil { + in, out := &in.AuditLogRotate, &out.AuditLogRotate + *out = new(automationconfig.CrdLogRotate) + **out = **in + } if in.SystemLog != nil { in, out := &in.SystemLog, &out.SystemLog *out = new(automationconfig.SystemLog) diff --git a/config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml b/config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml index 95d8e4c32..e7c3faa69 100644 --- a/config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml +++ b/config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml @@ -74,7 +74,7 @@ spec: description: AgentConfiguration sets options for the MongoDB automation agent properties: - AuditLogRotate: + auditLogRotate: description: AuditLogRotate if enabled, will enable AuditLogRotate for all processes. properties: diff --git a/test/e2e/mongodbtests/mongodbtests.go b/test/e2e/mongodbtests/mongodbtests.go index be14a3c30..b52e8639e 100644 --- a/test/e2e/mongodbtests/mongodbtests.go +++ b/test/e2e/mongodbtests/mongodbtests.go @@ -800,7 +800,7 @@ func ConnectionStringSecretIsCleanedUp(ctx context.Context, mdb *mdbv1.MongoDBCo return func(t *testing.T) { connectionStringSecret := corev1.Secret{} newErr := e2eutil.TestClient.Get(ctx, types.NamespacedName{Name: removedConnectionString, Namespace: mdb.Namespace}, &connectionStringSecret) - + assert.EqualError(t, newErr, fmt.Sprintf("secrets \"%s\" not found", removedConnectionString)) } }