Skip to content

api: Clean up the PermissionClaims API in v1alpha2 #3456

@xmudrii

Description

@xmudrii

We introduced new API versions of APIExports and APIBindings (v1alpha2) which includes PermissionClaims as well. We should use this opportunity to define this API properly and clean up the deprecated/unused fields.

  • Consider removing the All field in favor of an empty label selector
    All bool `json:"all,omitempty"`
  • Remove the ResourceSelector field as it's no implemented
    // resourceSelector is a list of claimed resource selectors.
    //
    // +optional
    ResourceSelector []ResourceSelector `json:"resourceSelector,omitempty"`
  • Add a new field that will be used for all of: all (empty label selector), label selectors, resource selectors

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/api-changeCategorizes issue or PR as related to adding, removing, or otherwise changing an API

    Type

    No type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions