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, toPrettyString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addLabel, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCreationTimeStamp, getLabels, getProject, isAnnotatedWith, setAnnotation, toJson, toJson
accept, getCapability, supports
public String getName()
IResource
getName
in interface IResource
getName
in class KubernetesResource
public String getNamespace()
IResource
getNamespace
in interface IResource
getNamespace
in class KubernetesResource
public String getKind()
IResource
getKind
in interface IResource
getKind
in class KubernetesResource
public String toString()
toString
in class KubernetesResource
public Collection<IResource> getItems()
ITemplate
public Map<String,IParameter> getParameters()
ITemplate
getParameters
in interface ITemplate
public void updateParameterValues(Collection<IParameter> parameters)
ITemplate
updateParameterValues
in interface ITemplate
public Map<String,String> getObjectLabels()
ITemplate
getObjectLabels
in interface ITemplate
public void addObjectLabel(String key, String value)
ITemplate
addObjectLabel
in interface ITemplate
public boolean isMatching(String text)
ITemplate
true
if the given resource contains the given text
in name or tags.isMatching
in interface ITemplate
Copyright © 2016 Red Hat, Inc. All rights reserved.