public class Controller extends Object
Constructor and Description |
---|
Controller() |
Controller(KubernetesClient kubernetes) |
Modifier and Type | Method and Description |
---|---|
String |
apply(File file) |
void |
apply(Object dto,
String sourceName)
Applies the given DTOs onto the Kubernetes master
|
void |
applyBuildConfig(BuildConfig entity,
String sourceName) |
void |
applyConfig(Config config,
String sourceName) |
void |
applyDeploymentConfig(DeploymentConfig entity,
String sourceName) |
void |
applyEntity(Object dto,
String sourceName)
Applies the given DTOs onto the Kubernetes master
|
void |
applyImageRepository(ImageRepository entity,
String sourceName) |
String |
applyJson(byte[] json)
Applies the given JSON to the underlying REST APIs in a single operation without needing to explicitly parse first.
|
String |
applyJson(File json)
Applies the given JSON to the underlying REST APIs in a single operation without needing to explicitly parse first.
|
String |
applyJson(InputStream json)
Applies the given JSON to the underlying REST APIs in a single operation without needing to explicitly parse first.
|
String |
applyJson(String json)
Applies the given JSON to the underlying REST APIs in a single operation without needing to explicitly parse first.
|
void |
applyList(com.fasterxml.jackson.databind.JsonNode entity,
String sourceName) |
void |
applyPod(Pod pod,
String sourceName) |
void |
applyReplicationController(ReplicationController replicationController,
String sourceName) |
void |
applyService(Service serviceSchema,
String sourceName) |
void |
applyTemplateConfig(com.fasterxml.jackson.databind.JsonNode entity,
String sourceName) |
String |
applyYaml(File yaml)
Applies the given YAML to the underlying REST APIs in a single operation without needing to explicitly parse first.
|
String |
applyYaml(String yaml)
Applies the given YAML to the underlying REST APIs in a single operation without needing to explicitly parse first.
|
String |
getNamespace() |
protected boolean |
isRunning(Pod entity) |
protected boolean |
isRunning(ReplicationController entity) |
protected boolean |
isRunning(Service entity) |
void |
setNamespace(String namespace) |
public Controller()
public Controller(KubernetesClient kubernetes)
public String apply(File file) throws IOException
IOException
public String applyJson(byte[] json) throws IOException
IOException
public String applyJson(String json) throws IOException
IOException
public String applyJson(File json) throws IOException
IOException
public String applyYaml(String yaml) throws IOException
IOException
public String applyYaml(File yaml) throws IOException
IOException
public String applyJson(InputStream json) throws IOException
IOException
public void apply(Object dto, String sourceName) throws IOException
IOException
public void applyEntity(Object dto, String sourceName)
public void applyTemplateConfig(com.fasterxml.jackson.databind.JsonNode entity, String sourceName)
public void applyBuildConfig(BuildConfig entity, String sourceName)
public void applyDeploymentConfig(DeploymentConfig entity, String sourceName)
public void applyImageRepository(ImageRepository entity, String sourceName)
public void applyConfig(Config config, String sourceName) throws IOException
IOException
public void applyList(com.fasterxml.jackson.databind.JsonNode entity, String sourceName) throws IOException
IOException
public void applyReplicationController(ReplicationController replicationController, String sourceName)
public String getNamespace()
public void setNamespace(String namespace)
protected boolean isRunning(Pod entity)
protected boolean isRunning(ReplicationController entity)
protected boolean isRunning(Service entity)
Copyright © 2011–2015 Red Hat. All rights reserved.