In Detail, the .JS file contains MongoDB commands like below,
db = db.getSiblingDB('records')
db.createCollection("collection_new");
db.collection_new.insertMany([
{ capped : true, size : 5242880, max : 5000 },
{ capped : false, size : 5242880, max : 8000 },
{ capped : false, size : 5242880, max : 5000 },
{ capped : true, size : 5242880, max : 8000 }
])
Now, instead of converting this .JS file into a standalone .yaml configmap file, I want to create a configmap which refers to the .JS file. Also, I do not want to add the raw data inside the configmap because the above commands are just a small part of the JS file. The main file contains approx. 400-500 lines.