Class PodTemplateMap
java.lang.Object
org.csanchez.jenkins.plugins.kubernetes.pipeline.PodTemplateMap
A map of
KubernetesCloud -> List of PodTemplate instances.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTemplate(KubernetesCloud cloud, PodTemplate podTemplate) Adds a template for the corresponding cloud instance.static PodTemplateMapget()getTemplates(KubernetesCloud cloud) Returns a read-only view of the templates available for the corresponding cloud instance.voidremoveTemplate(KubernetesCloud cloud, PodTemplate podTemplate)
-
Constructor Details
-
PodTemplateMap
public PodTemplateMap()
-
-
Method Details
-
get
-
getTemplates
Returns a read-only view of the templates available for the corresponding cloud instance.- Parameters:
cloud- The kubernetes cloud instance for which templates are needed- Returns:
- a read-only view of the templates available for the corresponding cloud instance.
-
addTemplate
Adds a template for the corresponding cloud instance.- Parameters:
cloud- The cloud instance.podTemplate- The pod template to add.
-
removeTemplate
-