diff --git a/src/lvmapi/tools/kubernetes.py b/src/lvmapi/tools/kubernetes.py index 3c8f017..24328ac 100644 --- a/src/lvmapi/tools/kubernetes.py +++ b/src/lvmapi/tools/kubernetes.py @@ -87,7 +87,7 @@ def get_yaml_file(self, name: str): path = pathlib.Path(config["kubernetes.deployments_path"]) - files = list(path.glob(f"**/{name}*")) + files = list(path.glob(f"**/{name}.y*ml")) if files is None or len(files) == 0: raise ValueError(f"No YAML file found for {name!r}.")