Skip to content

Commit 59fe206

Browse files
rodrigonullMichaelMraka
authored andcommitted
RHINENG-23656: update Cyndi additionalFilters to reflect HBI changes
1 parent 50a0d9e commit 59fe206

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

deploy/clowdapp.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,16 +542,21 @@ objects:
542542
cyndi:
543543
enabled: true
544544
appName: patch
545-
insightsOnly: true
545+
insightsOnly: false
546546
additionalFilters:
547+
- name: "insightsOnly"
548+
type: "com.redhat.insights.kafka.connect.transforms.Filter"
549+
if: "record.headers().lastWithName('insights_id').value() && record.headers().lastWithName('insights_id').value() != '00000000-0000-0000-0000-000000000000'"
550+
where: "h.insights_id != '00000000-0000-0000-0000-000000000000'::uuid"
547551
- name: "nonCentOS"
548552
type: "com.redhat.insights.kafka.connect.transforms.Filter"
549553
if: "!record.headers().lastWithName('os_name').value().match(/centos/i)"
550-
where: "COALESCE(system_profile_facts->'operating_system'->>'name', '') NOT ILIKE '%centos%'"
554+
join: "LEFT JOIN hbi.system_profiles_static sps ON sps.org_id = h.org_id AND sps.host_id = h.id"
555+
where: "COALESCE(sps.operating_system->>'name', '') NOT ILIKE '%centos%'"
551556
- name: "excludedReporters"
552557
type: "com.redhat.insights.kafka.connect.transforms.Filter"
553558
if: "!record.headers().lastWithName('reporter').value().match(/^(yupana|satellite|discovery|rhsm-conduit)$/i)"
554-
where: "reporter NOT IN ('yupana', 'satellite', 'discovery', 'rhsm-conduit')"
559+
where: "h.reporter NOT IN ('yupana', 'satellite', 'discovery', 'rhsm-conduit')"
555560
testing:
556561
iqePlugin: patchman
557562

0 commit comments

Comments
 (0)