Skip to content

patchesStrategicMerge for non-kubernetes resources #742

Description

@johnhny

Hi everybody 👋

I'm curious how to use Kustomize patchesStrategicMerge to patch non-kubernetes resources.

I created a tiny example project, to demonstrate the issue:
https://github.com/johnhny/kustomize-patch-non-k8s

  1. A k8s deployment with a patch that should MERGE into the original deployment.yml
  2. A non-k8s resource ("bee") with a patch that should MERGE into the original bee.yml

When you run and compare these two configurations like:

diff <(kustomize build bee) <(kustomize build deployment)

... you will notice, that Kustomize/patchesStrategicMerge is not merging but replacing the original tree in the bee.yml:
image
For the k8s-deployment patch, all works like expected 👍

Can you give us a hint, how we can get this to work in the same way for a non-k8s resource?

Thank you,
Arno

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions