Skip to content

Commit 2158233

Browse files
rodrigonulljdobes
authored andcommitted
RHINENG-23656: update Cyndi additionalFilters to reflect HBI changes
1 parent 50d87fd commit 2158233

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deploy/clowdapp.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,11 +635,12 @@ objects:
635635
- name: "nonCentOS"
636636
type: "com.redhat.insights.kafka.connect.transforms.Filter"
637637
if: "!record.headers().lastWithName('os_name').value().match(/centos/i)"
638-
where: "COALESCE(system_profile_facts->'operating_system'->>'name', '') NOT ILIKE '%centos%'"
638+
join: "LEFT JOIN hbi.system_profiles_static sps ON sps.org_id = h.org_id AND sps.host_id = h.id"
639+
where: "COALESCE(sps.operating_system->>'name', '') NOT ILIKE '%centos%'"
639640
- name: "excludedReporters"
640641
type: "com.redhat.insights.kafka.connect.transforms.Filter"
641642
if: "!record.headers().lastWithName('reporter').value().match(/^(yupana|satellite|discovery|rhsm-conduit)$/i)"
642-
where: "reporter NOT IN ('yupana', 'satellite', 'discovery', 'rhsm-conduit')"
643+
where: "h.reporter NOT IN ('yupana', 'satellite', 'discovery', 'rhsm-conduit')"
643644
testing:
644645
iqePlugin: vulnerability
645646

0 commit comments

Comments
 (0)