Skip to content

Remove not implemented WebHooks #1667

@guettli

Description

@guettli

/kind feature

Some CRDs have a webHook, although they are not implemented.

For example:

type hetznerBareMetalRemediationWebhook struct{}

....

func (*hetznerBareMetalRemediationWebhook) Default(_ context.Context, _ runtime.Object) error {
	return nil
}

The related methods (for Default/Create/Update/Delete) exist, but they all do nothing.

We can remove that code.

Above type is only an example. Afaik there are several types without a webhook implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions