rollout-history
View deployment rollout history to track changes, identify issues, and manage Kubernetes deployments effectively.
Instructions
Show the rollout history of a deployment
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deployment | Yes | The name of the deployment to check history for | |
| namespace | No | The namespace of the deployment (optional, defaults to current context namespace) |
Implementation Reference
- server.js:1692-1700 (handler)Handler function for the 'rollout-history' tool. Executes 'kubectl rollout history deployment/{deployment}' with optional namespace and returns the stdout as text content.case "rollout-history": { const { deployment, namespace } = args; const nsArg = namespace ? `-n ${namespace}` : ""; const cmd = `kubectl rollout history deployment/${deployment} ${nsArg}`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || "No rollout history found" }] }; }
- server.js:462-478 (schema)Input schema and tool registration definition for 'rollout-history' in the tools list returned by ListToolsRequestHandler.name: "rollout-history", description: "Show the rollout history of a deployment", inputSchema: { type: "object", properties: { deployment: { type: "string", description: "The name of the deployment to check history for" }, namespace: { type: "string", description: "The namespace of the deployment (optional, defaults to current context namespace)" } }, required: ["deployment"] } },
- server.js:1392-1394 (registration)Registration of the ListToolsRequestHandler which returns the tools array containing the 'rollout-history' tool definition.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });