Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/k8shandler/forwarding.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ func isForwardingEnabled(cluster *logging.ClusterLogging) bool {

func (clusterRequest *ClusterLoggingRequest) generateCollectorConfig() (config string, err error) {

if clusterRequest.cluster == nil || clusterRequest.cluster.Spec.Collection == nil {
logger.Warnf("skipping collection config generation as 'collection' section is not specified in the CLO's CR")
return "", nil
}

switch clusterRequest.cluster.Spec.Collection.Logs.Type {
case logging.LogCollectionTypeFluentd:
break
Expand Down
Loading