-
Task
-
Resolution: Done
-
Major
-
None
-
None
Summary
Refactor the reconciliation of ClusterLogging and ClusterLogforwarder to a "higher" level in the call stack in preparation to support multi cluster logforwarding. The goal of this change is to reduce code duplication and to minimize the dependency between both objects since this feature will introduce ClusterLogforwarding objects that do not "pair" with a ClusterLogging object.
Acceptance Criteria
- Verify there is no regressions between before and after this change:
- Verify ClusterLogging(ns=openshift-logging,name=instance) deploys collectors and logstorage
- Verify ClusterLogging(ns=openshift-logging,name=instance) with collection and ClusterLogforwarder(ns=openshift-logging,name=instance) deploys collector
- Verify ClusterLogforwarder(ns=openshift-logging,name=instance) with pipeline ref to default deploys nothing given there is not a deployed default logstore
- Verify deleting ClusterLogforwarder, removes the collectors when there is no default logStore specified