-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v6' into refactor/kpops-resouces
- Loading branch information
Showing
12 changed files
with
690 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from __future__ import annotations | ||
|
||
from collections.abc import Iterable, Iterator | ||
from pathlib import Path | ||
|
||
|
||
def collect_pipeline_paths(pipeline_paths: Iterable[Path]) -> Iterator[Path]: | ||
"""Generate paths to pipeline files. | ||
:param pipeline_paths: The list of paths to the pipeline files or directories. | ||
:yields: Path: Paths to pipeline files. If `pipeline_path` file yields the given path. | ||
For a directory it yields all the pipeline.yaml paths. | ||
:raises: ValueError: If `pipeline_path` is neither a file nor a directory. | ||
""" | ||
for pipeline_path in pipeline_paths: | ||
if pipeline_path.is_file(): | ||
yield pipeline_path | ||
elif pipeline_path.is_dir(): | ||
yield from sorted(pipeline_path.glob("**/pipeline*.yaml")) | ||
else: | ||
msg = f"The entered pipeline path '{pipeline_path}' should be a directory or file." | ||
raise ValueError(msg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
tests/pipeline/resources/pipeline-folders/pipeline-1/pipeline.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- type: scheduled-producer | ||
app: | ||
commandLine: | ||
FAKE_ARG: "fake-arg-value" | ||
schedule: "30 3/8 * * *" |
Oops, something went wrong.