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:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEphemeralAgentsConfigurationImpl
(boolean enabled) EphemeralAgentsConfigurationImpl
(boolean enabled, @NotNull String labelSuffix) EphemeralAgentsConfigurationImpl
(boolean enabled, String pathToConfig, String label, boolean podsCleanUpEnabled, Integer podsCleanUpDelay) EphemeralAgentsConfigurationImpl
(boolean enabled, String pathToConfig, String label, boolean podsCleanUpEnabled, Integer podsCleanUpDelay, Integer waitForEphemeralAgentDuration) EphemeralAgentsConfigurationImpl
(@NotNull String labelSuffix) -
Method Summary
-
Field Details
-
PODS_CLEANUP_DELAY_IN_SECONDS_DEFAULT_VAL
public static final int PODS_CLEANUP_DELAY_IN_SECONDS_DEFAULT_VAL- See Also:
-
LABEL_DEFAULT_VAL
- See Also:
-
WAITING_FOR_EPHEMERAL_AGENT_DURATION_IN_SECONDS_DEFAULT_VAL
public static final int WAITING_FOR_EPHEMERAL_AGENT_DURATION_IN_SECONDS_DEFAULT_VAL- See Also:
-
-
Constructor Details
-
EphemeralAgentsConfigurationImpl
-
EphemeralAgentsConfigurationImpl
-
EphemeralAgentsConfigurationImpl
public EphemeralAgentsConfigurationImpl(boolean enabled) -
EphemeralAgentsConfigurationImpl
-
EphemeralAgentsConfigurationImpl
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceEphemeralAgentsConfiguration
- Returns:
- true if feature is enabled
-
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
- 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
- Specified by:
getPodsCleanUpDelay
in interfaceEphemeralAgentsConfiguration
- Returns:
- number of seconds between two cleanup calls
-
getWaitForEphemeralAgentDuration
public int getWaitForEphemeralAgentDuration()- Specified by:
getWaitForEphemeralAgentDuration
in interfaceEphemeralAgentsConfiguration
- Returns:
- number of seconds the build will wait for the ephemeral agent to come up before other agent types are considered.
-
equals
-
hashCode
public int hashCode() -
toString
-