Skip to content

Commit

Permalink
[k8s] Specify namespace when listing Pods
Browse files Browse the repository at this point in the history
  • Loading branch information
Adelbert Chang authored and Adelbert Chang committed Sep 25, 2018
1 parent e1bb6a3 commit 172f21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/Kubectl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ final class Kubectl(mode: KubernetesMode) {

def getPods(namespace: NamespaceName, stackName: StackName): IO[List[HealthStatus]] = {
implicit val healthStatusDecoder = healthStatusDecodeJson
exec(List("kubectl", "get", "pods", "-l", s"stackName=${stackName.toString}", "-o", "json"), emptyStdin)
exec(List("kubectl", "get", "pods", "-l", s"stackName=${stackName.toString}", "-n", namespace.root.asString, "-o", "json"), emptyStdin)
.flatMap(_.output)
.flatMap { stdout =>
IO.fromEither(for {
Expand Down

0 comments on commit 172f21f

Please sign in to comment.