updating values into cmdb_key_value

Richa10
Tera Contributor

Hello,

We have received a requirement to discover additional labels and tag of OpenShift container. I have added an extension to the OOTB Kubernetes pattern and trying to add the newly discovered key and labels into the table cmdb_key_value.

 After running the scan, my extension part will create the new records into table- cmdb_key_value but the old\existing records of cmdb_key_value get removed.

 I want to append new records into the table- cmdb_key_value without removing old\existing records.

Is there any chang I need to do into the table or anything else into the pattern?

 

 

4 REPLIES 4

Ram Devanathan1
ServiceNow Employee
ServiceNow Employee

you cant have a ci, with 2 tags having same key. i guess this is your question? if your key is new then a new record will be created. if it is an existing key, the record willbe updated 

All records are new and I am trying to union table with table cmdb_key_value.

But I don't see the new records though the records are unique. 

When I debug pattern I can see all records in the target table. 

find_real_file.png

 

Hi,

At the end it will be attached. Have you seen that?

Check for the hosting rules as well i am not sure but just an heads up.


Thanks,
Ashutosh

I checked it and there was no records (which I am expecting) found at the end.

any other step\operation I can perform to add records into the table?