Skip to content

Strategic merge patches change the order of containers #5904

Open
@shapirus

Description

@shapirus

What happened?

If only one container out of multiple is referenced in the patch, then the order of the containers in the output is changed.

Refer to #3912, it has all the info.

That issue was auto-closed for inactivity, but the bug still exists.

What did you expect to happen?

The original order of containers has to be preserved.

How can we reproduce it (as minimally and precisely as possible)?

See the original ticket.

Expected output

See the original ticket.

Actual output

See the original ticket.

Kustomize version

5.2.1

Operating system

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions