You could use configmap to package your js and upload your js to local directory of apiconnect domain in datapower cr. similiar like this:
kubectl create configmap apicdomain-local --from-file=apic-domain-local.tar.gz
and add in gateway cr of apic connect operator:
spec:
...
additionalDomainConfig:
- name: apiconnect
config:
- "empty"
local:
- "apicdomain-local"
------------------------------
Gang Wu
------------------------------
Original Message:
Sent: Wed November 16, 2022 05:37 AM
From: Hamza Bayar
Subject: Add common/shared utility libraries in Gatewascript IBM API Connect v10 on Cloud Pack for integration
I will add a script to use it in the same way on gatwayscripts on my different APIs. I came up with the idea of adding this script as a common/shared library with CommonJs, but I couldn't find the gatewayscript system directory (local and store) to add my script on my APIC instance on CP4I.
------------------------------
Hamza Bayar
------------------------------