Skip to content

Validate warnings in webhook unit tests #8732

Closed
@sbueringer

Description

@sbueringer

What would you like to be added (User Story)?

Note: This is a follow-up to: #8007 (specifically: #8007 (comment))

CR v0.15 extended the validating webhook interfaces to allow returning warnings. In the initial bump PR we just ignored the warning return parameter. Goal of this task is to extend our unit tests to validate that warnings are nil (as of today we never return warnings.

Detailed Description

The following commits shows all places where we adapted unit tests to ignore the warning return parameter: ea0dc4d

Anything else you would like to add?

No response

Label(s) to be applied

/kind cleanup
/area testing
One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels.

Metadata

Metadata

Labels

area/testingIssues or PRs related to testingkind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions