Package io.fabric8.jenkins.openshiftsync
Class PodTemplateUtils
java.lang.Object
io.fabric8.jenkins.openshiftsync.PodTemplateUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final ConcurrentHashMap<String,
String> protected static final ConcurrentHashMap<String,
List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
addAgents
(List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> slaves, String type, String uid, String apiObjName, String namespace) protected static void
addPodTemplate
(String type, String apiObjName, String namespace, List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> podTemplates, org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate) static void
addPodTemplate
(org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate) protected static void
addPodTemplateFromConfigMap
(io.fabric8.kubernetes.api.model.ConfigMap configMap) protected static void
addPodTemplateFromImageStreamTag
(List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> results, io.fabric8.openshift.api.model.ImageStream imageStream, io.fabric8.openshift.api.model.TagReference tagRef) protected static boolean
configMapContainsSlave
(io.fabric8.kubernetes.api.model.ConfigMap configMap) protected static void
deleteAgents
(List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> slaves, String type, String uid, String apiObjName, String namespace) protected static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
extractPodTemplatesFromImageStreamTags
(io.fabric8.openshift.api.model.ImageStream imageStream) static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
protected static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
getPodTemplatesListFromImageStreams
(io.fabric8.openshift.api.model.ImageStream imageStream) protected static boolean
hasOneAndOnlyOneWithSomethingAfter
(String str, String substr) static boolean
hasPodTemplate
(org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate) protected static boolean
protected static boolean
protected static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
onlyTrackPodTemplate
(String type, String apiObjName, String namespace, List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> podTemplates, org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate) protected static org.csanchez.jenkins.plugins.kubernetes.PodTemplate
static org.csanchez.jenkins.plugins.kubernetes.PodTemplate
podTemplateInit
(String name, String image, String label) static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>
podTemplatesFromConfigMap
(io.fabric8.kubernetes.api.model.ConfigMap configMap) protected static void
purgeTemplates
(String type, String uid, String apiObjName, String namespace) protected static void
removePodTemplate
(String type, String apiObjName, String namespace, org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate) static void
removePodTemplate
(org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate) protected static void
trackPodTemplates
(String uid, List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> podTemplatesToTrack) protected static void
updateAgents
(List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> slaves, String type, String uid, String apiObjName, String namespace) protected static void
updateTrackedPodTemplatesMap
(String uid, List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> finalSlaveList)
-
Field Details
-
CONFIGMAP
- See Also:
-
isType
- See Also:
-
trackedPodTemplates
protected static final ConcurrentHashMap<String,List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>> trackedPodTemplates -
podTemplateToApiType
-
-
Constructor Details
-
PodTemplateUtils
public PodTemplateUtils()
-
-
Method Details
-
hasOneAndOnlyOneWithSomethingAfter
-
podTemplateInit
-
removePodTemplate
public static void removePodTemplate(org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate) -
getPodTemplates
-
hasPodTemplate
public static boolean hasPodTemplate(org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate) -
addPodTemplate
public static void addPodTemplate(org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate) -
purgeTemplates
-
updateTrackedPodTemplatesMap
-
trackPodTemplates
-
onlyTrackPodTemplate
-
addPodTemplate
-
removePodTemplate
-
isReservedPodTemplateName
-
getPodTemplatesListFromImageStreams
protected static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> getPodTemplatesListFromImageStreams(io.fabric8.openshift.api.model.ImageStream imageStream) -
extractPodTemplatesFromImageStreamTags
protected static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> extractPodTemplatesFromImageStreamTags(io.fabric8.openshift.api.model.ImageStream imageStream) -
addPodTemplateFromImageStreamTag
protected static void addPodTemplateFromImageStreamTag(List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> results, io.fabric8.openshift.api.model.ImageStream imageStream, io.fabric8.openshift.api.model.TagReference tagRef) -
podTemplateFromData
-
podTemplatesFromConfigMap
public static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> podTemplatesFromConfigMap(io.fabric8.kubernetes.api.model.ConfigMap configMap) -
configMapContainsSlave
protected static boolean configMapContainsSlave(io.fabric8.kubernetes.api.model.ConfigMap configMap) -
hasSlaveLabelOrAnnotation
-
addAgents
-
updateAgents
-
deleteAgents
-
addPodTemplateFromConfigMap
protected static void addPodTemplateFromConfigMap(io.fabric8.kubernetes.api.model.ConfigMap configMap)
-