Class EphemeralAgentsConfigurationImpl
- java.lang.Object
-
- com.atlassian.bamboo.agent.ephemeral.EphemeralAgentsConfigurationImpl
-
- All Implemented Interfaces:
EphemeralAgentsConfiguration
,Serializable
@Immutable public class EphemeralAgentsConfigurationImpl extends Object implements EphemeralAgentsConfiguration, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
LABEL_DEFAULT_VAL
static int
PODS_CLEANUP_DELAY_IN_SECONDS_DEFAULT_VAL
-
Constructor Summary
Constructors Constructor Description EphemeralAgentsConfigurationImpl(boolean enabled)
EphemeralAgentsConfigurationImpl(boolean enabled, @NotNull String labelSuffix)
EphemeralAgentsConfigurationImpl(boolean enabled, String pathToConfig, String label, boolean podsCleanUpEnabled, Integer podsCleanUpDelay)
EphemeralAgentsConfigurationImpl(@NotNull String labelSuffix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getLabel()
String
getPathToConfig()
Integer
getPodsCleanUpDelay()
int
hashCode()
boolean
isEnabled()
boolean
isPodsCleanUpEnabled()
String
toString()
-
-
-
Field Detail
-
PODS_CLEANUP_DELAY_IN_SECONDS_DEFAULT_VAL
public static final int PODS_CLEANUP_DELAY_IN_SECONDS_DEFAULT_VAL
- See Also:
- Constant Field Values
-
LABEL_DEFAULT_VAL
public static final String LABEL_DEFAULT_VAL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EphemeralAgentsConfigurationImpl
public EphemeralAgentsConfigurationImpl(boolean enabled, String pathToConfig, String label, boolean podsCleanUpEnabled, Integer podsCleanUpDelay)
-
EphemeralAgentsConfigurationImpl
public EphemeralAgentsConfigurationImpl(boolean enabled)
-
EphemeralAgentsConfigurationImpl
public EphemeralAgentsConfigurationImpl(boolean enabled, @NotNull @NotNull String labelSuffix)
-
EphemeralAgentsConfigurationImpl
public EphemeralAgentsConfigurationImpl(@NotNull @NotNull String labelSuffix)
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceEphemeralAgentsConfiguration
- Returns:
- true if feature is enabled
-
getPathToConfig
public String getPathToConfig()
- Specified by:
getPathToConfig
in interfaceEphemeralAgentsConfiguration
- Returns:
- path to kubectl config file with credentials and cluster access settings. Path is relative to Bamboo Shared Home root.
-
getLabel
public String getLabel()
- Specified by:
getLabel
in interfaceEphemeralAgentsConfiguration
- Returns:
- resources label Bamboo use to fetch related pods as managable by Bamboo
-
isPodsCleanUpEnabled
public boolean isPodsCleanUpEnabled()
- Specified by:
isPodsCleanUpEnabled
in interfaceEphemeralAgentsConfiguration
- Returns:
- true if the cleanup of stale ephemeral agents' pods is enabled, false otherwise
-
getPodsCleanUpDelay
public Integer getPodsCleanUpDelay()
- Specified by:
getPodsCleanUpDelay
in interfaceEphemeralAgentsConfiguration
- Returns:
- number of seconds between two cleanup calls
-
-