Skip to content

Commit 5da9435

Browse files
authored
Add PodTemplateGroup#addTemplate (#1520)
1 parent e4b7ae9 commit 5da9435

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesCloud.java

+1
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ public List<PodTemplate> getTemplatesFor(@CheckForNull Label label) {
703703
* Add a new template to the cloud
704704
* @param t docker template
705705
*/
706+
@Override
706707
public void addTemplate(PodTemplate t) {
707708
this.templates.add(t);
708709
// t.parent = this;

src/main/java/org/csanchez/jenkins/plugins/kubernetes/PodTemplateGroup.java

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
* A group of pod templates that can be saved together.
44
*/
55
public interface PodTemplateGroup {
6+
7+
/**
8+
* Add the template to the group.
9+
* @param podTemplate the template to add
10+
*/
11+
void addTemplate(PodTemplate podTemplate);
12+
613
/**
714
* Replaces the old template with the new template.
815
* @param oldTemplate the old template to replace

0 commit comments

Comments
 (0)