If you have an existing profile defined as a .opf file, you can generate a new ConfigMap definition from this using the
scripts/profiles/profile_to_configmap.sh
script.
This script takes in a comma separated list of profiles and outputs the text definition of the ConfigMap. You can either save the output to a file, or send it immediately to the cluster as follows:
./scripts/profiles/profile_to_configmap.sh -p /path/to/profile.opf | kubectl apply -f -
Currently the script produces ConfigMaps with a fixed naming structure. For
example if you create a ConfigMap from a profile called name.opf, the generated name is onload-name-profile.