Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7da8c77

Browse files
committedSep 26, 2024·
Merge branch 'master' into fix-remoteObjRV-log
2 parents 286d3f8 + 56e6f09 commit 7da8c77

File tree

1 file changed

+7
-0
lines changed
  • internal/controllers/database

1 file changed

+7
-0
lines changed
 

‎internal/controllers/database/sync.go

+7
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,13 @@ func shouldIgnoreDatabaseChange(database *resources.DatabaseBuilder) resources.I
371371
}
372372
}
373373

374+
if sec, ok := oldObj.(*corev1.Secret); ok {
375+
// Do not update already existing secret data for encryption
376+
if (len(sec.StringData) > 0) || (len(sec.Data) > 0) {
377+
return true
378+
}
379+
}
380+
374381
if sec, ok := oldObj.(*corev1.Secret); ok {
375382
// Do not update already existing secret data for encryption
376383
if (len(sec.StringData) > 0) || (len(sec.Data) > 0) {

0 commit comments

Comments
 (0)
Please sign in to comment.