Skip to content

Commit 06597a7

Browse files
committed
Fixed backtraces when setting up watchers
[0] added log messages when a field doesn't exist in the spec. It uncovered some errors in the amphora controller. Remove the non-existing fields from the watcher [0] #389 JIRA: OSPRH-10725
1 parent 481771b commit 06597a7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

controllers/amphoracontroller_controller.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,11 @@ func (r *OctaviaAmphoraControllerReconciler) findObjectsForSrc(ctx context.Conte
729729

730730
l := log.FromContext(ctx).WithName("Controllers").WithName("Amphora")
731731

732+
allWatchFields := []string{
733+
passwordSecretField,
734+
caBundleSecretNameField,
735+
}
736+
732737
for _, field := range allWatchFields {
733738
crList := &octaviav1.OctaviaAmphoraControllerList{}
734739
listOps := &client.ListOptions{

0 commit comments

Comments
 (0)