Skip to main content
Glama

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
NameRequiredDescriptionDefault
nameYesThe name of the release
chartYesThe chart reference (repo/chart or path)
namespaceNoThe namespace of the release (optional, defaults to current context namespace)
valuesNoValues to override (YAML string)

Implementation Reference

  • 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"] } },
  • 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"] }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thekaranpargaie/kube-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server