Skip to content

Child entities should inherit protection status from the parent entity #568

@Prashansa-K

Description

@Prashansa-K

At the moment, protection status just applies to the parent entity that defines it.
We should extend this to the child entities as well.

Example with event gateways:

event_gateways:
  - ref: egw-cp-for-bc-test
    name: egw-cp-for-bc-test

    kongctl:
      protected: true # this protection label doesn't prevent a user from modifying/deleting the child resource

    backend_clusters:
      - ref: default-backend-cluster
        name: default-backend-cluster
        description: "First Backend Cluster for Test updated description"
        bootstrap_servers:
          - "egw-backend-1.example.com:9094"

If I apply the above config and later on add modifications to backend_clusters or delete them via a sync command, kongctl lets me do so. This is an undesired behaviour.

Same applies to all other entities.

Desired behaviour: A child entity should inherit the protected status of a parent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdeclarativemedium-priorityThis item should be addressed in the medium term time frametriagedThis item has been triaged

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions