trying to duplicate a stack and apply it to all servers #470
Replies: 3 comments 3 replies
-
The issue is with the typings you use, they are not valid. You can review all actual schemas in the client docs, for example CreateStack https://docs.rs/komodo_client/latest/komodo_client/api/write/struct.CreateStack.html |
Beta Was this translation helpful? Give feedback.
3 replies
-
I’m not sure if you ever got this working, so in case it’s helpful, I was trying to do the same thing and worked out how to make it happen. |
Beta Was this translation helpful? Give feedback.
0 replies
-
thank you |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello,
I am trying to deploy an action that will grab any stack with a tag auto-deploy .... and servers with the same tag. will auto deploy the stacks to each server. Since we can assign multiple servers to one stack, i duplicate the baseline and assign and deploy to each server.
I am getting stuck with this error and i tried different way but i cant get it to work
❌ Failed to create stack for "vaultwarden": { status: 422, result: { error: "Failed to deserialize the JSON body into the target type: params: missing field
nameat line 1 column 786", trace: [] } }
the code is as follow
`async function deployToAllServers() {
try {
// Define the tag you want to filter servers by
const specificTag = "auto-deploy"; // Change this to your desired tag
} catch (err) {
console.error("❌ Error during deployment process:", err);
}
}
await deployToAllServers();
`
any idea where my syntax issue is ?
Beta Was this translation helpful? Give feedback.
All reactions