Package io.fabric8.jenkins.openshiftsync
Class PodTemplateUtils
java.lang.Object
io.fabric8.jenkins.openshiftsync.PodTemplateUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected 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 voidaddAgents(List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> slaves, String type, String uid, String apiObjName, String namespace) protected static voidaddPodTemplate(String type, String apiObjName, String namespace, List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> podTemplates, org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate) static voidaddPodTemplate(org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate) protected static voidaddPodTemplateFromConfigMap(io.fabric8.kubernetes.api.model.ConfigMap configMap) protected static voidaddPodTemplateFromImageStreamTag(List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> results, io.fabric8.openshift.api.model.ImageStream imageStream, io.fabric8.openshift.api.model.TagReference tagRef) protected static booleanconfigMapContainsSlave(io.fabric8.kubernetes.api.model.ConfigMap configMap) protected static voiddeleteAgents(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 booleanhasOneAndOnlyOneWithSomethingAfter(String str, String substr) static booleanhasPodTemplate(org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate) protected static booleanprotected static booleanprotected 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.PodTemplatestatic org.csanchez.jenkins.plugins.kubernetes.PodTemplatepodTemplateInit(String name, String image, String label) static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>podTemplatesFromConfigMap(io.fabric8.kubernetes.api.model.ConfigMap configMap) protected static voidpurgeTemplates(String type, String uid, String apiObjName, String namespace) protected static voidremovePodTemplate(String type, String apiObjName, String namespace, org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate) static voidremovePodTemplate(org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate) protected static voidtrackPodTemplates(String uid, List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> podTemplatesToTrack) protected static voidupdateAgents(List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> slaves, String type, String uid, String apiObjName, String namespace) protected static voidupdateTrackedPodTemplatesMap(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)
-