public enum RuntimeMode extends Enum<RuntimeMode>
Enum Constant and Description |
---|
auto
Detect automatically whether running cluster is OpenShift or Kuberentes.
|
kubernetes
Build Docker images and use plain Deployments for deployment
onto cluster.
|
openshift
Use special OpenShift features like BuildConfigs, DeploymentConfigs
ImageStreams and S2I builds while deploying onto cluster.
|
Modifier and Type | Field and Description |
---|---|
static RuntimeMode |
DEFAULT |
static String |
FABRIC8_EFFECTIVE_PLATFORM_MODE |
Modifier and Type | Method and Description |
---|---|
String |
getLabel() |
boolean |
isAuto() |
static boolean |
isOpenShiftMode(Properties properties)
Returns true if the given maven properties indicate running in OpenShift platform mode
|
static RuntimeMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RuntimeMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RuntimeMode kubernetes
public static final RuntimeMode openshift
public static final RuntimeMode auto
public static final RuntimeMode DEFAULT
public static final String FABRIC8_EFFECTIVE_PLATFORM_MODE
public static RuntimeMode[] values()
for (RuntimeMode c : RuntimeMode.values()) System.out.println(c);
public static RuntimeMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isAuto()
public String getLabel()
public static boolean isOpenShiftMode(Properties properties)
Copyright © 2020. All rights reserved.