Skip to content

Fix ComposabilityRequest webhook validator for controller-runtime API - #46

Merged
hase1128 merged 2 commits into
CoHDI:mainfrom
NekoHK:fix/typed-composabilityrequest-validator
Jul 10, 2026
Merged

hase1128 merged 2 commits into
CoHDI:mainfrom
NekoHK:fix/typed-composabilityrequest-validator

Conversation

@NekoHK

@NekoHK NekoHK commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • migrate the ComposabilityRequest webhook validator to the typed admission.Validator interface
  • update webhook registration to use the current controller-runtime API
  • remove obsolete runtime object type assertions
  • update controller-tools to v0.21.0 for Go 1.26 compatibility

Why

The previous webhook implementation used the deprecated untyped webhook.CustomValidator interface and was incompatible with the current controller-runtime API.

Additionally, controller-tools v0.16.1 depended on an older golang.org/x/tools version that could not compile with Go 1.26.

NekoHK added 2 commits July 10, 2026 13:47
Signed-off-by: Ko Kai <ko.kai@jp.fujitsu.com>
Signed-off-by: Ko Kai <ko.kai@jp.fujitsu.com>
@NekoHK
NekoHK force-pushed the fix/typed-composabilityrequest-validator branch from e776cf5 to bf7dde9 Compare July 10, 2026 04:47
@hase1128
hase1128 merged commit 44f98e6 into CoHDI:main Jul 10, 2026
5 checks passed
@shogom2

shogom2 commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

@mgazz
This is a follow-up notification. Ideally, this should have been reviewed by you, but since it was only a minor fix to address a compatibility issue introduced by a Dependabot update, we went ahead and merged it on our side. Just wanted to keep you informed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants