diff --git a/robusta_krr/core/models/config.py b/robusta_krr/core/models/config.py index 6ad5804..d7c9297 100644 --- a/robusta_krr/core/models/config.py +++ b/robusta_krr/core/models/config.py @@ -101,6 +101,11 @@ def validate_namespaces(cls, v: Union[list[str], Literal["*"]]) -> Union[list[st if v == []: return "*" + if isinstance(v, list): + for val in v: + if val.startswith("*"): + raise ValueError("Namespace's values cannot start with an asterisk (*)") + return [val.lower() for val in v] @pd.validator("resources", pre=True)