Skip to content

Envtest does not register or run webhooks #563

Closed
@alastor-erinyes

Description

@alastor-erinyes

Currently the kubebuilder book shows how to write a defaulting/validating webhook, but it doesn't give any envtest examples for how to test it (only a light explanation of how to deploy it to a real cluster).

We should provide a method for testing webhooks the same way we provide a means of testing the controller and types using envtest.

Metadata

Metadata

Labels

kind/featureCategorizes issue or PR as related to a new feature.lifecycle/activeIndicates that an issue or PR is actively being worked on by a contributor.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions