Skip to content

Methods that accept a string such as inNamespace, withName, loclResourceVersion, and so on should consistently check the provided argument #4057

@manusa

Description

@manusa

Description

Currently, we have different validations scattered around the methods that accept a single String argument such as inNamespace, withName, and so on.

We should be consistent and perform the same validation across the code-base. Ideally an Utils.isNotBlank method should be used for null, 0-length, or blank String check.


It can be - but we aren't doing that check with the other inNamespace, or other string name, locations. Ideally we would be consistent about not accepting empty / null anywhere a name was expected - so maybe a separate issue to cover that.

Originally posted by @shawkins in #4027 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions