update_secret
Update a Kubernetes Secret by patching its stringData. Existing keys not included in the request are dropped; read them first to preserve.
Instructions
Updates an existing Secret by patching its stringData. KNOWN LIMITATION: The Kubernetes API never returns stringData on read (it is write-only); the API server stores values as base64 in the data field. This means the client-side merge only contains the keys passed in args.stringData — existing keys not included in the request will be silently dropped. If you need to preserve existing keys, read them first via get_secret and re-supply all values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | If true, simulates the action without making changes | |
| cluster | No | Target cluster name (default: 'default') | |
| namespace | Yes | The Kubernetes namespace | |
| secretName | Yes | The name of the Secret to update | |
| stringData | Yes | Plain text key-value pairs to merge into the Secret. Will be encoded automatically. |