-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1465 from scherler/JENKINS-72261
- Loading branch information
Showing
3 changed files
with
42 additions
and
10 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
21 changes: 21 additions & 0 deletions
21
src/main/java/org/csanchez/jenkins/plugins/kubernetes/PodTemplateGroup.java
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,21 @@ | ||
package org.csanchez.jenkins.plugins.kubernetes; | ||
/** | ||
* A group of pod templates that can be saved together. | ||
*/ | ||
public interface PodTemplateGroup { | ||
/** | ||
* Replaces the old template with the new template. | ||
* @param oldTemplate the old template to replace | ||
* @param newTemplate the new template to replace with | ||
*/ | ||
void replaceTemplate(PodTemplate oldTemplate, PodTemplate newTemplate); | ||
/** | ||
* Removes the template from the group. | ||
* @param podTemplate the template to remove | ||
*/ | ||
void removeTemplate(PodTemplate podTemplate); | ||
/** | ||
* @return the URL to redirect to after the template is saved. | ||
*/ | ||
String getPodTemplateGroupUrl(); | ||
} |