Skip to content

Commit

Permalink
[COST-4429] Add lower around cluster alias tag check for OCP Azure (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
cgoodfred authored Nov 16, 2023
1 parent 40d9dbb commit 96961fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ SELECT azure.uuid as azure_uuid,
AND (
(strpos(lower(azure.tags), 'openshift_project') !=0 AND strpos(lower(azure.tags), lower(ocp.namespace)) != 0)
OR (strpos(lower(azure.tags), 'openshift_node') != 0 AND strpos(lower(azure.tags),lower(ocp.node)) != 0)
OR (strpos(lower(azure.tags), 'openshift_cluster') != 0 AND (strpos(lower(azure.tags), lower(ocp.cluster_id)) != 0 OR strpos(azure.tags, lower(ocp.cluster_alias)) != 0))
OR (strpos(lower(azure.tags), 'openshift_cluster') != 0 AND (strpos(lower(azure.tags), lower(ocp.cluster_id)) != 0 OR strpos(lower(azure.tags), lower(ocp.cluster_alias)) != 0))
OR (azure.matched_tag != '' AND any_match(split(azure.matched_tag, ','), x->strpos(ocp.pod_labels, replace(x, ' ')) != 0))
OR (azure.matched_tag != '' AND any_match(split(azure.matched_tag, ','), x->strpos(ocp.volume_labels, replace(x, ' ')) != 0))
)
Expand Down

0 comments on commit 96961fc

Please sign in to comment.