Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!--
A new scriv changelog fragment.

Uncomment the section that is right (remove the HTML comment wrapper).
For top level release notes, leave all the headers commented out.
-->

<!-- <!-- -->
### Added

- Individual init jobs can now be excluded from execution.

<!--
### Changed

- A bullet item for the Changed category.

-->
<!--
### Fixed

- A bullet item for the Fixed category.

-->
<!--
### Removed

- A bullet item for the Removed category.

-->
5 changes: 4 additions & 1 deletion drydock/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ def get_init_tasks():

render_command = tutor_env.render_str(TUTOR_CONFIG, command)

template["metadata"]["name"] = "drydock-" + template["metadata"]["name"] + "-" + str(i)
template["metadata"]["name"] = f"drydock-{template['metadata']['name']}-{i}"
if template["metadata"]["name"] in excluded_init_jobs:
continue

template["metadata"]["labels"].update(
{
"app.kubernetes.io/component": "drydock-job",
Expand Down
Loading