k8s-docker-ops.html
button: {
onclick: function() {
$.ajax({
url: "inject/" + this.id,
method: "POST",
data: JSON.stringify({
msg: {
operation: ""
}
}),
contentType: "application/json",
success: function(resp) {
RED.notify("ok", "success");
}
});
}
},
node.on('input', async function(msg) {
const operation = msg.operation || '';
const params = msg.params || {};
**k8s-docker-ops.js**
node.log(`Received operation: ${operation}`);
node.log(`Parameters: ${JSON.stringify(params)}`);
node.log(`msg: ${JSON.stringify(msg)}`);
log
30 Dec 18:52:59 - [info] [k8s-docker-ops:4e2ca4f113aeebd7] Received operation:
30 Dec 18:52:59 - [info] [k8s-docker-ops:4e2ca4f113aeebd7] Parameters: {}
30 Dec 18:52:59 - [info] [k8s-docker-ops:4e2ca4f113aeebd7] msg: {"_msgid":"e42659bd820a79de"}