public class PodTemplateUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
cmType |
protected static String |
isType |
protected static ConcurrentHashMap<String,String> |
podTemplateToApiType |
protected static ConcurrentHashMap<String,List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>> |
trackedPodTemplates |
| Constructor and Description |
|---|
PodTemplateUtils() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addPodTemplate(BaseWatcher baseWatcher,
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 |
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 List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> |
extractPodTemplatesFromImageStreamTags(io.fabric8.openshift.api.model.ImageStream imageStream) |
static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> |
getPodTemplates() |
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 incomingPod) |
protected static boolean |
hasSlaveLabelOrAnnotation(Map<String,String> map) |
protected static boolean |
isReservedPodTemplateName(String name) |
protected static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> |
onlyTrackPodTemplate(BaseWatcher baseWatcher,
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 |
podTemplateFromData(String name,
String image,
Map<String,String> map) |
static org.csanchez.jenkins.plugins.kubernetes.PodTemplate |
podTemplateInit(String name,
String image,
String label) |
static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> |
podTemplatesFromConfigMap(ConfigMapWatcher configMapWatcher,
io.fabric8.kubernetes.api.model.ConfigMap configMap) |
protected static void |
purgeTemplates(BaseWatcher baseWatcher,
String type,
String uid,
String apiObjName,
String namespace) |
protected static void |
removePodTemplate(Logger LOGGER,
String PT_NOT_OWNED,
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 |
updateTrackedPodTemplatesMap(String uid,
List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> finalSlaveList) |
protected static final String cmType
protected static final String isType
protected static ConcurrentHashMap<String,List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>> trackedPodTemplates
protected static ConcurrentHashMap<String,String> podTemplateToApiType
protected static boolean hasOneAndOnlyOneWithSomethingAfter(String str, String substr)
public static org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplateInit(String name, String image, String label)
public static void removePodTemplate(org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate)
public static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> getPodTemplates()
public static boolean hasPodTemplate(org.csanchez.jenkins.plugins.kubernetes.PodTemplate incomingPod)
public static void addPodTemplate(org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate)
protected static void purgeTemplates(BaseWatcher baseWatcher, String type, String uid, String apiObjName, String namespace)
protected static void updateTrackedPodTemplatesMap(String uid, List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> finalSlaveList)
protected static void trackPodTemplates(String uid, List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> podTemplatesToTrack)
protected static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> onlyTrackPodTemplate(BaseWatcher baseWatcher, String type, String apiObjName, String namespace, List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> podTemplates, org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate)
protected static void addPodTemplate(BaseWatcher baseWatcher, String type, String apiObjName, String namespace, List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> podTemplates, org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate)
protected static void removePodTemplate(Logger LOGGER, String PT_NOT_OWNED, String type, String apiObjName, String namespace, org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate)
protected static boolean isReservedPodTemplateName(String name)
protected static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> getPodTemplatesListFromImageStreams(io.fabric8.openshift.api.model.ImageStream imageStream)
protected static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> extractPodTemplatesFromImageStreamTags(io.fabric8.openshift.api.model.ImageStream imageStream)
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 org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplateFromData(String name, String image, Map<String,String> map)
public static List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> podTemplatesFromConfigMap(ConfigMapWatcher configMapWatcher, io.fabric8.kubernetes.api.model.ConfigMap configMap)
protected static boolean configMapContainsSlave(io.fabric8.kubernetes.api.model.ConfigMap configMap)
Copyright © 2016–2020 Red Hat. All rights reserved.