Skip to content

Reject Cilium network policies with unknown fields #12516

@pchaigno

Description

@pchaigno

Every once in a while, we spend time debugging policy issues with users where the cause end up being a malformed Cilium network policy (usually an YAML indentation problem). These happen because we don't reject policies with unknown fields.

In #11638 (comment), @christarazi mentioned that we would need to set preserveUnknownFields: false to fix this.

Related: #11142

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/k8sImpacts the kubernetes API, or kubernetes -> cilium internals translation layers.kind/enhancementThis would improve or streamline existing functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions