Class KubernetesExecutor
java.lang.Object
com.atlassian.bamboo.agent.ephemeral.KubernetesExecutor
- Direct Known Subclasses:
LoggingKubernetesExecutor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull DeleteAgentPodResult
deleteAgentPod
(@Nullable String pathToConfig, @NotNull String podName) @NotNull DeleteAgentPodsResult
deleteAgentPods
(@NotNull EphemeralAgentsConfiguration config) @NotNull DeleteAgentPodsResult
deleteAgentPods
(@Nullable String pathToConfig, @NotNull List<String> podNames) @NotNull DeleteAgentPodsResult
deleteAgentPodsIfNotInPhase
(@NotNull EphemeralAgentsConfiguration config, @NotNull List<PodPhase> podPhasesToSkip) @NotNull DeleteAgentPodsResult
deleteNonActiveAgentPods
(@NotNull EphemeralAgentsConfiguration config) describePod
(@NotNull EphemeralAgentsConfiguration config, @NotNull String podName) getPod
(@NotNull EphemeralAgentsConfiguration config, @NotNull String podName) @NotNull PodContainerLogsResult
getPodContainerLogs
(@Nullable String pathToConfig, @NotNull String podName, @NotNull Optional<String> containerName, @NotNull Optional<Integer> resultsLimit, @NotNull Optional<String> afterTimestamp) getPodJsonResults
(@NotNull EphemeralAgentsConfiguration config) getPods
(@NotNull EphemeralAgentsConfiguration config) @NotNull LaunchAgentPodResult
launchAgentPod
(@Nullable String pathToConfig, @NotNull File fileWithPodTemplate) @NotNull LaunchAgentPodResult
launchAgentPod
(@Nullable String pathToConfig, @NotNull File fileWithPodTemplate, @NotNull String podName, @NotNull String launchingPurposeKey, @NotNull String templateName, int retryCounter, int maxRetries) @NotNull TestConnectionResult
testConnection
(@Nullable String pathToConfig)
-
Constructor Details
-
KubernetesExecutor
-
-
Method Details
-
testConnection
@NotNull public @NotNull TestConnectionResult testConnection(@Nullable @Nullable String pathToConfig) -
launchAgentPod
@NotNull public @NotNull LaunchAgentPodResult launchAgentPod(@Nullable @Nullable String pathToConfig, @NotNull @NotNull File fileWithPodTemplate) -
launchAgentPod
-
getPods
-
getPodJsonResults
-
getPod
public String getPod(@NotNull @NotNull EphemeralAgentsConfiguration config, @NotNull @NotNull String podName) -
describePod
public String describePod(@NotNull @NotNull EphemeralAgentsConfiguration config, @NotNull @NotNull String podName) throws KubernetesExecutorException - Throws:
KubernetesExecutorException
-
deleteAgentPod
@NotNull public @NotNull DeleteAgentPodResult deleteAgentPod(@Nullable @Nullable String pathToConfig, @NotNull @NotNull String podName) -
deleteAgentPods
@NotNull public @NotNull DeleteAgentPodsResult deleteAgentPods(@NotNull @NotNull EphemeralAgentsConfiguration config) -
deleteAgentPods
@NotNull public @NotNull DeleteAgentPodsResult deleteAgentPods(@Nullable @Nullable String pathToConfig, @NotNull @NotNull List<String> podNames) -
deleteAgentPodsIfNotInPhase
@NotNull public @NotNull DeleteAgentPodsResult deleteAgentPodsIfNotInPhase(@NotNull @NotNull EphemeralAgentsConfiguration config, @NotNull @NotNull List<PodPhase> podPhasesToSkip) -
deleteNonActiveAgentPods
@NotNull public @NotNull DeleteAgentPodsResult deleteNonActiveAgentPods(@NotNull @NotNull EphemeralAgentsConfiguration config) -
getPodContainerLogs
-