Skip to content

Validate groups list. #1143

Closed
Closed
@guettli

Description

@guettli

I had accidentally added the version to the group: groups=example.com/v1beta1

Broken:

//+kubebuilder:webhook:path=/validate-example-com-v1beta1-foo,mutating=false,failurePolicy=fail,sideEffects=None,groups=example.com/v1beta1,resources=foos,verbs=create;update,versions=v1beta1,name=validation.example.syself.com,admissionReviewVersions={v1,v1beta1}

After removing "v1beta1" it worked.

Good:

//+kubebuilder:webhook:path=/validate-example-com-v1beta1-foo,mutating=false,failurePolicy=fail,sideEffects=None,groups=example.com,resources=foos,verbs=create;update,versions=v1beta1,name=validation.example.syself.com,admissionReviewVersions={v1,v1beta1}

It would be nice if the controller-tools would detect that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions