Skip to content

make partition-id variable

Relationships to reference-data often have to be swapped via look-up tables, which has been demonstrated in JOLT. However, the partition-id (the part before the first colon) will be variable and cannot be hardcoded in the JOLT specification. In the auto-generated examples partition-id is set to namespace. This is currently hardcoded in the JOLT but will only work if the partition-id is in fact set to namespace, which it usually isn't. We faced the same challenge in the reference value manifests, where OSDU introduced a variable {{NAMESPACE}}, which needs to be replaced by the correct context during real operations. One way of achieving this is to use an environment variable to inject the actual partition-id into the upgrade.