public abstract class DatabaseDeployer<T extends DatabaseDeployer,C extends DatabaseController> extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
dbType |
private io.fabric8.kubernetes.api.model.apps.Deployment |
deployment |
private static org.slf4j.Logger |
LOGGER |
private io.fabric8.openshift.client.OpenShiftClient |
ocp |
private OpenShiftUtils |
ocpUtils |
private String |
project |
private List<io.fabric8.kubernetes.api.model.Service> |
services |
| Constructor and Description |
|---|
DatabaseDeployer(String dbType,
io.fabric8.openshift.client.OpenShiftClient ocp) |
| Modifier and Type | Method and Description |
|---|---|
C |
deploy() |
abstract C |
getController(io.fabric8.kubernetes.api.model.apps.Deployment deployment,
List<io.fabric8.kubernetes.api.model.Service> services,
String dbType,
io.fabric8.openshift.client.OpenShiftClient ocp) |
abstract T |
getThis() |
T |
withDeployment(io.fabric8.kubernetes.api.model.apps.Deployment deployment) |
T |
withDeployment(String yamlPath) |
T |
withProject(String project) |
T |
withServices(Collection<io.fabric8.kubernetes.api.model.Service> services) |
T |
withServices(String... yamlPath) |
private static final org.slf4j.Logger LOGGER
private final io.fabric8.openshift.client.OpenShiftClient ocp
private final OpenShiftUtils ocpUtils
private final String dbType
private String project
private io.fabric8.kubernetes.api.model.apps.Deployment deployment
private List<io.fabric8.kubernetes.api.model.Service> services
public DatabaseDeployer(String dbType, io.fabric8.openshift.client.OpenShiftClient ocp)
public T withDeployment(io.fabric8.kubernetes.api.model.apps.Deployment deployment)
public T withServices(Collection<io.fabric8.kubernetes.api.model.Service> services)
public C deploy()
public abstract T getThis()
Copyright © 2021 JBoss by Red Hat. All rights reserved.