Skip to content

NGF is reloading NGINX for BackendTLSPolicy with no accepted Gateway #1577

Open
@ciarams87

Description

@ciarams87

Describe the bug
We are reloading after reconciling a BackendTLSPolicy even when there is no Gateway. This is because we treat every upsert/delete of a BackendTLSPolicy as a change. This means we will regenerate nginx config every time a BackendTLSPolicy is created, updated (generation must change), or deleted, even if it does not apply to the accepted Gateway.

To Reproduce
Deploy a BackendTLSPolicy with no Gateway.

Expected behavior
Config should not be rewritten and NGINX should not be reloaded when no NGINX config changes have occurred.

See: #1487

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/performancePerformance relatedbacklogCurrently unprioritized work. May change with user feedback or as the product progresses.bugSomething isn't working

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions