@Test public void testGetConnectedShellClient () throws IOException, ApiException { KubernetesPodContainer kubernetesPodContainer = mock(KubernetesPodContainer.class); platform.getConnectedShellClient(kubernetesPodContainer); }
@Override public ShellClient getConnectedShellClient (KubernetesPodContainer container) { log.debug("Creating shell client into {}", v(DATADOG_CONTAINER_KEY, container)); return KubernetesShellClient.builder().withApiClient(apiClient) .withContainerName(container.getTargetedSubcontainer()) .withPodName(container.getPodName()) .withNamespace(container.getNamespace()) .build(); }
KubernetesPlatform extends Platform implements ShellBasedExperiment<KubernetesPodContainer> { @Override public ShellClient getConnectedShellClient (KubernetesPodContainer container) { log.debug("Creating shell client into {}", v(DATADOG_CONTAINER_KEY, container)); return KubernetesShellClient.builder().withApiClient(apiClient) .withContainerName(container.getTargetedSubcontainer()) .withPodName(container.getPodName()) .withNamespace(container.getNamespace()) .build(); } }
KubernetesPlatform extends Platform implements ShellBasedExperiment<KubernetesPodContainer> { @Override public ShellClient getConnectedShellClient (KubernetesPodContainer container) { log.debug("Creating shell client into {}", v(DATADOG_CONTAINER_KEY, container)); return KubernetesShellClient.builder().withApiClient(apiClient) .withContainerName(container.getTargetedSubcontainer()) .withPodName(container.getPodName()) .withNamespace(container.getNamespace()) .build(); } @Autowired  KubernetesPlatform(ApiClient apiClient); }
KubernetesPlatform extends Platform implements ShellBasedExperiment<KubernetesPodContainer> { @Override public ShellClient getConnectedShellClient (KubernetesPodContainer container) { log.debug("Creating shell client into {}", v(DATADOG_CONTAINER_KEY, container)); return KubernetesShellClient.builder().withApiClient(apiClient) .withContainerName(container.getTargetedSubcontainer()) .withPodName(container.getPodName()) .withNamespace(container.getNamespace()) .build(); } @Autowired  KubernetesPlatform(ApiClient apiClient); String getNamespace(); void setNamespace(String namespace); ContainerHealth checkHealth(KubernetesPodContainer kubernetesPodContainer); @Override ApiStatus getApiStatus(); @Override PlatformLevel getPlatformLevel(); @Override PlatformHealth getPlatformHealth(); @Override boolean isContainerRecycled(Container container); ContainerHealth replicaSetRecovered(KubernetesPodContainer kubernetesPodContainer); boolean isDesiredReplicas(KubernetesPodContainer instance); @Override void recycleContainer(KubernetesPodContainer container); boolean deletePod(KubernetesPodContainer instance); @Override ShellClient getConnectedShellClient(KubernetesPodContainer container); }
KubernetesPlatform extends Platform implements ShellBasedExperiment<KubernetesPodContainer> { @Override public ShellClient getConnectedShellClient (KubernetesPodContainer container) { log.debug("Creating shell client into {}", v(DATADOG_CONTAINER_KEY, container)); return KubernetesShellClient.builder().withApiClient(apiClient) .withContainerName(container.getTargetedSubcontainer()) .withPodName(container.getPodName()) .withNamespace(container.getNamespace()) .build(); } @Autowired  KubernetesPlatform(ApiClient apiClient); String getNamespace(); void setNamespace(String namespace); ContainerHealth checkHealth(KubernetesPodContainer kubernetesPodContainer); @Override ApiStatus getApiStatus(); @Override PlatformLevel getPlatformLevel(); @Override PlatformHealth getPlatformHealth(); @Override boolean isContainerRecycled(Container container); ContainerHealth replicaSetRecovered(KubernetesPodContainer kubernetesPodContainer); boolean isDesiredReplicas(KubernetesPodContainer instance); @Override void recycleContainer(KubernetesPodContainer container); boolean deletePod(KubernetesPodContainer instance); @Override ShellClient getConnectedShellClient(KubernetesPodContainer container);  }