Skip to content
Back to skills

Kustomize Knowledge Patch

ASecurity

Kustomize

  • 25 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
developmentgoexpressapi

Works with

  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill kustomize-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kustomize Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Kustomize Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-kustomize-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-kustomize-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: kustomize-knowledge-patch
description: Kustomize
version: "5.8.3"
license: MIT
metadata:
  author: Nevaberry
---


# Kustomize Knowledge Patch

Load this skill when editing Kustomize configurations, using replacements or
Helm charts, handling patch files, or evaluating upgrade behavior.

## Reference index

| Reference | Topics |
| --- | --- |
| [Edit Commands](references/edit-commands.md) | Label flags, multiple labels, adding transformer configurations, removing components |
| [Helm Charts](references/helm-charts.md) | Chart prereleases, namespace propagation, Helm v3 and v4 |
| [Replacements](references/replacements.md) | Literal values, embedded YAML or JSON, regular expressions in selectors |
| [Transformers and Patch Files](references/transformers-and-patches.md) | Image volumes, empty patch files, strategic-merge deletes, patch options API |
| [Upgrade and Namespace Propagation](references/upgrade-and-namespaces.md) | Child namespaces, fetched OpenAPI formats, Go build version reporting, upgrades in kubectl |

## Upgrade and validation checks

### Child namespace inheritance

Kustomize 5.8.0 can fail to propagate namespaces to child kustomizations.
If builds depend on that inheritance, wait for a patch release before upgrading.

Kustomize 5.8.1 restores namespace propagation to child kustomizations.
Builds that rely on namespace inheritance can upgrade to this release.

### Fetched OpenAPI schemas

Kustomize reports an error when it fetches an OpenAPI schema in a format
other than JSON. Serve remote schemas as JSON when referencing them through
`openapi.path`.

### Kustomize embedded in kubectl

Kustomize v5.8.3 removes dependencies and compressed blobs that interfered
with upgrading the version embedded in `kubectl`.

See [Upgrade and Namespace Propagation](references/upgrade-and-namespaces.md)
for the corresponding release attributions and version-reporting behavior.

## Replacements

### Copy a literal string

Set `sourceValue` on a replacement to copy a literal string into its target
fields. This example sets the existing `data.LOG_LEVEL` field in the
`app-settings` ConfigMap.

```yaml
replacements:
- sourceValue: "info"
  targets:
  - select:
      kind: ConfigMap
      name: app-settings
    fieldPaths:
    - data.LOG_LEVEL
```

### Traverse embedded YAML or JSON

A replacement target field path can traverse YAML or JSON stored as a
string in a manifest. This example copies a hostname into the nested
`config.hostname` field of the JSON stored under the target ConfigMap's
`config.json` data key.

```yaml
replacements:
- source:
    kind: ConfigMap
    name: source-configmap
    fieldPath: data.HOSTNAME
  targets:
  - select:
      kind: ConfigMap
      name: target-configmap
    fieldPaths:
    - data.config\\.json.config.hostname
```

### Match names with a regular expression

Replacement selectors support regular expressions. Set `name: "app-.*"`
under a replacement target's `select` to match resources whose names start
with `app-`.

See [Replacements](references/replacements.md) for release attributions.

## Helm charts

### Consider prerelease chart versions

Set `version: devel` on a `helmCharts` entry to let Helm consider prerelease
chart versions when pulling the chart.

### Use the kustomization's namespace

The kustomization's top-level `namespace` passes through to `helmCharts`.
Chart entries can omit their own `namespace` when they should use the
kustomization's namespace.

### Render with Helm v3 or v4

Kustomize can render charts declared in `helmCharts` with either Helm v3
or Helm v4.

See [Helm Charts](references/helm-charts.md) for release attributions.

## Edit commands

### Keep the force flag when switching label commands

`kustomize edit add labels` handles `-f` the same way as
`kustomize edit add commonLabels`, so scripts can keep the flag when
switching commands.

### Add multiple labels without selectors

`kustomize edit add labels --without-selector` can add multiple labels in a
single invocation without raising a duplicate-key error.

### Register a transformer configuration

Use `kustomize edit add configuration` to register a transformer
configuration file under `configurations` in `kustomization.yaml`.

```sh
kustomize edit add configuration transformer-config.yaml
```

### Remove a component

Use `kustomize edit remove component` with the component path listed under
`components` in `kustomization.yaml`.

```sh
kustomize edit remove component ../components/metrics
```

See [Edit Commands](references/edit-commands.md) for release attributions.

## Transformers and patch files

### Override an image volume reference

The `images` transformer updates the `image.reference` field on image-backed
volumes. This example changes a volume reference of
`registry.example.com/assets:v1` to `registry.example.com/assets:v2`.

```yaml
images:
- name: registry.example.com/assets
  newTag: v2
```

### Use placeholder patch files

A referenced patch file containing only blank lines or YAML comments is
accepted as a no-op, so it can serve as a placeholder.

### Put multiple deletes in one patch file

A single strategic-merge patch file can contain multiple `$patch: delete`
documents without causing `kustomize build` to panic.

### Populate patch options programmatically

The API adds `PatchArgs` for populating patch options programmatically.

See [Transformers and Patch Files](references/transformers-and-patches.md)
for release attributions.

## Version reporting for Go builds

When the build-time version flag and Go dependency metadata provide no
version, `kustomize version` falls back to the main module version embedded
in the binary (`BuildInfo.Main.Version`).

See [Upgrade and Namespace Propagation](references/upgrade-and-namespaces.md)
for the version-reporting attribution.

Files in this skill

  • SKILL.md6.2 KB
  • coverage.json618 B
  • references/edit-commands.md498 B
  • references/helm-charts.md960 B
  • references/replacements.md1.4 KB
  • references/transformers-and-patches.md943 B
  • references/upgrade-and-namespaces.md835 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.