Skip to content

Commit

Permalink
Add PodTemplateGroup#addTemplate (#1520)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dohbedoh authored Mar 12, 2024
1 parent e4b7ae9 commit 5da9435
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,7 @@ public List<PodTemplate> getTemplatesFor(@CheckForNull Label label) {
* Add a new template to the cloud
* @param t docker template
*/
@Override
public void addTemplate(PodTemplate t) {
this.templates.add(t);
// t.parent = this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
* A group of pod templates that can be saved together.
*/
public interface PodTemplateGroup {

/**
* Add the template to the group.
* @param podTemplate the template to add
*/
void addTemplate(PodTemplate podTemplate);

/**
* Replaces the old template with the new template.
* @param oldTemplate the old template to replace
Expand Down

0 comments on commit 5da9435

Please sign in to comment.