public enum PlatformMode extends Enum<PlatformMode>
Enum Constant and Description |
---|
auto
Detect automatically whether running on OpenShift or Kuberentes.
|
kubernetes
Create resources descriptors for vanilla Kubernetes
|
openshift
Use special OpenShift features like BuildConfigs
|
Modifier and Type | Field and Description |
---|---|
static PlatformMode |
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 PlatformMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlatformMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlatformMode kubernetes
public static final PlatformMode openshift
public static final PlatformMode auto
public static final PlatformMode DEFAULT
public static final String FABRIC8_EFFECTIVE_PLATFORM_MODE
public static PlatformMode[] values()
for (PlatformMode c : PlatformMode.values()) System.out.println(c);
public static PlatformMode 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 © 2016. All rights reserved.