helm-upgrade
Upgrade a Helm release in Kubernetes by specifying the release name and chart reference, with optional namespace and values overrides.
Instructions
Upgrade a Helm release
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the release | |
| chart | Yes | The chart reference (repo/chart or path) | |
| namespace | No | The namespace of the release (optional, defaults to current context namespace) | |
| values | No | Values to override (YAML string) |
Implementation Reference
- server.js:2142-2151 (handler)The handler logic for the 'helm-upgrade' tool. It constructs a 'helm upgrade' command using the provided release name, chart, namespace, and values, executes it via execAsync, and returns the stdout or a success message.case "helm-upgrade": { const { name, chart, namespace, values } = args; const nsArg = namespace ? `-n ${namespace}` : ""; const valuesArg = values ? `-f <(echo '${values}')` : ""; const cmd = `helm upgrade ${name} ${chart} ${nsArg} ${valuesArg}`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || `Helm release ${name} upgraded` }] }; }
- server.js:1208-1233 (registration)The tool registration entry in the 'tools' array, including name, description, and inputSchema which defines the parameters for the helm-upgrade tool.{ name: "helm-upgrade", description: "Upgrade a Helm release", inputSchema: { type: "object", properties: { name: { type: "string", description: "The name of the release" }, chart: { type: "string", description: "The chart reference (repo/chart or path)" }, namespace: { type: "string", description: "The namespace of the release (optional, defaults to current context namespace)" }, values: { type: "string", description: "Values to override (YAML string)" } }, required: ["name", "chart"] } },
- server.js:1211-1232 (schema)The inputSchema definition for the helm-upgrade tool, specifying the structure and requirements for input arguments.inputSchema: { type: "object", properties: { name: { type: "string", description: "The name of the release" }, chart: { type: "string", description: "The chart reference (repo/chart or path)" }, namespace: { type: "string", description: "The namespace of the release (optional, defaults to current context namespace)" }, values: { type: "string", description: "Values to override (YAML string)" } }, required: ["name", "chart"] }