Skip to content

Handle External API Types for Webhooks #4201

@camilamacedo86

Description

@camilamacedo86

What do you want to happen?

Currently, Kubebuilder has support for handling external API types when scaffolding controllers, as addressed in PR #4171. However, there is no equivalent support for webhooks when dealing with external API types.

To maintain consistency, we need to ensure that external API types are properly handled for webhooks as well, similar to how core types are managed. For reference, see the discussion around handling core types: Issue #2141.

What needs to happen:

  • Add support for external API types in webhooks, similar to the approach implemented for controllers.
  • Ensure that webhook scaffolding correctly identifies and handles external API types during the generation process.

Acceptance Criteria:

  • External API types should be supported when scaffolding webhooks.
  • Tests should cover cases where external API types are used in the webhook scaffolding process.
  • We must have en example added to the testdata samples for single and multigroup layout.

Extra Labels

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions