Skip to content

Is it possible to support ignoring nested fields? #57

@lsne

Description

@lsne

I want to ignore the env field of the first container of the POD in the StatefulSet
for example: spec.template.spec.containers[0].env

But it doesn't work if I set it like this:
patch.IgnoreField("spec.template.spec.containers[0].env")

patch.IgnoreField() can only ignore the fields of the first layer.

Can you support fields that ignore nested levels?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions