public class Templates extends Object
Constructor and Description |
---|
Templates() |
Modifier and Type | Method and Description |
---|---|
static void |
addTemplateObject(io.fabric8.openshift.api.model.template.Template template,
io.fabric8.kubernetes.api.model.HasMetadata object) |
protected static void |
combineParameters(List<io.fabric8.openshift.api.model.template.Parameter> parameters,
List<io.fabric8.openshift.api.model.template.Parameter> otherParameters) |
static Object |
combineTemplates(io.fabric8.kubernetes.api.model.KubernetesList kubernetesList)
Allows a list of resources to be combined into a single Template if one or more templates are contained inside the list
or just return the unchanged list if no templates are present.
|
static Object |
combineTemplates(io.fabric8.kubernetes.api.model.KubernetesList kubernetesList,
List<io.fabric8.kubernetes.api.model.HasMetadata> items)
If we have any templates inside the items then lets unpack them and combine any parameters
|
static io.fabric8.openshift.api.model.template.Template |
combineTemplates(io.fabric8.openshift.api.model.template.Template firstTemplate,
io.fabric8.openshift.api.model.template.Template template) |
static void |
overrideTemplateParameters(io.fabric8.openshift.api.model.template.Template template,
Map<String,String> properties,
String propertyNamePrefix)
Lets allow template parameters to be overridden with a Properties object
|
static io.fabric8.kubernetes.api.model.KubernetesList |
processTemplatesLocally(io.fabric8.openshift.api.model.template.Template entity)
Lets locally process the templates so that we can process templates on any kubernetes environment
|
public static Object combineTemplates(io.fabric8.kubernetes.api.model.KubernetesList kubernetesList)
public static io.fabric8.openshift.api.model.template.Template combineTemplates(io.fabric8.openshift.api.model.template.Template firstTemplate, io.fabric8.openshift.api.model.template.Template template)
protected static void combineParameters(List<io.fabric8.openshift.api.model.template.Parameter> parameters, List<io.fabric8.openshift.api.model.template.Parameter> otherParameters)
public static void addTemplateObject(io.fabric8.openshift.api.model.template.Template template, io.fabric8.kubernetes.api.model.HasMetadata object)
public static Object combineTemplates(io.fabric8.kubernetes.api.model.KubernetesList kubernetesList, List<io.fabric8.kubernetes.api.model.HasMetadata> items)
kubernetesList
- items
- public static void overrideTemplateParameters(io.fabric8.openshift.api.model.template.Template template, Map<String,String> properties, String propertyNamePrefix)
public static io.fabric8.kubernetes.api.model.KubernetesList processTemplatesLocally(io.fabric8.openshift.api.model.template.Template entity) throws IOException
IOException
Copyright © 2011–2015 Red Hat. All rights reserved.