cloud-pipeline
cloud-pipeline copied to clipboard
Improve pipectl install command to be able to deploy Cloud-Pipeline out of point-in-time configuration
Approach
Based on #3588 results let's implement a way to specify such directory as an input for pipectl install command.
- If such option (-pc/--point-in-time-configuration) was provided,
installcommand should be launched with:- List of service from
cp-serices.jsonenabled cp-config-global.propertiesshould be used asinstall-configdockers-manifestfrom point-in-time configuration should be used instead of innerdockers-manifestfrom pipectl binary- Bear in mind that
dockers-manifestfrom point-in-time configuration has slightly different structure (additional level in directory structure due to docker-registry folder) So, code should be adjusted to be able to work with both versions ofdockers-manifestfolder
- Bear in mind that
system-preferences.jsonshould be used on the final stage of the installation.installprocess should iterate over this list and update corresponding items with these values.
- List of service from
Let's introduce additional option (should take effect only when -pc/--point-in-time-configuration enabled)
-pcm/--point-in-time-configuration-modules (example of possible value: services,tools)
depending on this setting we will define which modules we should grab and apply from pitc:
- if
-pcmisn't present - apply all all modules - else - check that module is enabled in this setting
Let's also change approach to save registered users:
Instead of use GET /users let's use POST /user/export with all flags enabled
Then let's use this csv file in pipectl install from pitc and utilize POST /users/import method to register this list of users, if configured