We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
PodTemplateGroup#addTemplate
1 parent e4b7ae9 commit 5da9435Copy full SHA for 5da9435
src/main/java/org/csanchez/jenkins/plugins/kubernetes/KubernetesCloud.java
@@ -703,6 +703,7 @@ public List<PodTemplate> getTemplatesFor(@CheckForNull Label label) {
703
* Add a new template to the cloud
704
* @param t docker template
705
*/
706
+ @Override
707
public void addTemplate(PodTemplate t) {
708
this.templates.add(t);
709
// t.parent = this;
src/main/java/org/csanchez/jenkins/plugins/kubernetes/PodTemplateGroup.java
@@ -3,6 +3,13 @@
3
* A group of pod templates that can be saved together.
4
5
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
13
/**
14
* Replaces the old template with the new template.
15
* @param oldTemplate the old template to replace
0 commit comments