protected static class ServerTemplateProcessing.TemplateConfigAdapter extends KubernetesResource implements ITemplate
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, KIND, LABELS, METADATA_NAME, NAME, NAMESPACE, OBJECTS, PORTS, PROTOCOL, TYPE, VALUE| Constructor and Description |
|---|
TemplateConfigAdapter(ITemplate template,
String namespace) |
| Modifier and Type | Method and Description |
|---|---|
void |
addObjectLabel(String key,
String value)
Add or update a label that is applied to the objects of the
template when it is processed
|
Collection<IResource> |
getItems()
Retrieves the list of resources this template
creates
|
String |
getKind()
Returns the resource kind
|
String |
getName()
Returns the identifier for this resource
|
String |
getNamespace()
Returns the scope of this resource
|
Map<String,String> |
getObjectLabels()
Retrieves the labels that are applied to the objects of the
template when it is processed.
|
Map<String,IParameter> |
getParameters()
Returns a map of parameter names to parameters.
|
boolean |
isMatching(String text)
Returns
true if the given resource contains the given text
in name or tags. |
String |
toString() |
void |
updateParameterValues(Collection<IParameter> parameters)
Update the template's parameter values, with the values from the
collection if a parameter with the same name is found
|
accept, addLabel, asBoolean, asInt, asInt, asMap, asString, asString, equals, get, get, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCapability, getClient, getCreationTimeStamp, getEnvMap, getLabels, getModifiableCapabilities, getNode, getPath, getProject, hashCode, isAnnotatedWith, refresh, set, set, set, set, set, set, set, setAnnotation, setEnvMap, setName, setNamespace, supports, toJson, toJson, toPrettyStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddLabel, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCreationTimeStamp, getLabels, getProject, isAnnotatedWith, setAnnotation, toJson, toJsonaccept, getCapability, supportspublic String getName()
IResourcegetName in interface IResourcegetName in class KubernetesResourcepublic String getNamespace()
IResourcegetNamespace in interface IResourcegetNamespace in class KubernetesResourcepublic String getKind()
IResourcegetKind in interface IResourcegetKind in class KubernetesResourcepublic String toString()
toString in class KubernetesResourcepublic Collection<IResource> getItems()
ITemplatepublic Map<String,IParameter> getParameters()
ITemplategetParameters in interface ITemplatepublic void updateParameterValues(Collection<IParameter> parameters)
ITemplateupdateParameterValues in interface ITemplatepublic Map<String,String> getObjectLabels()
ITemplategetObjectLabels in interface ITemplatepublic void addObjectLabel(String key, String value)
ITemplateaddObjectLabel in interface ITemplatepublic boolean isMatching(String text)
ITemplatetrue if the given resource contains the given text
in name or tags.isMatching in interface ITemplateCopyright © 2016 Red Hat, Inc. All rights reserved.