Bulk Edit
This feature helps you to update Deployment Template, ConfigMaps & Secrets for multiple apps in one go! You can filter the apps on the basis of environments, global flag, and app names(we provide support for both substrings included and excluded in the app name).
Overview
Need to make some common changes across multiple devtron applications? Bulk Edit allows you to do that.
Eg. You can change the value for MaxReplicas
in Deployment Templates of multiple Devtron applications or you can add key-value pairs in multiple ConfigMaps & Secrets.
Support
Bulk edit is currently supported for:
Deployment Template
ConfigMaps
Secrets
Steps:
Click on the
Bulk Edit
option in the main navigation. This is where you can write and execute scripts to perform bulk updates in Devtron objects.
To help you get started, a script template is provided under the
See Samples
section.
Copy and Paste the
Sample Script
in the code editor and make desired changes. ReferPayload Configuration
in the Readme to understand the parameters.
Example
Example below will select all applications having abc and xyz
present in their name and out of those will exclude applications having abcd and xyza
in their name. Since global flag is false and envId 23 is provided, it will make changes in envId 23 and not in global deployment template for this application.
If you want to update globally then please set global: true
. If you have provided an envId but deployment template, configMap or secret is not overridden for that particular environment then it will not apply the changes. Also, of all the provided names of configMaps/secrets, for every app & environment override only the names that are present in them will be considered.
Sample Script
This is the piece of code which works as the input and has to be pasted in the code editor for achieving bulk updation task.
Payload Configuration
The following tables list the configurable parameters of the Payload component in the Script and their description along with example. Also, if you do not need to apply updates on all the tasks, i.e. Deployment Template, ConfigMaps & Secrets, leave the Spec object empty for that respective task.
Once you have modified the script, you can click on the
Show Impacted Objects
button to see the names of all applications that will be modified when the script isRun
.
Click on the
Run
button to execute the script. Status/Output of the script execution will be shown in theOutput
section of the bottom drawer.
Last updated