Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Nov 17, 2024
1 parent 24bfaf9 commit d79c212
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/deployment-slimfaas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ spec:
serviceAccountName: slimfaas
containers:
- name: slimfaas
image: axaguildev/slimfaas:pr-77-761
image: axaguildev/slimfaas:pr-77-762
livenessProbe:
httpGet:
path: /health
Expand Down
3 changes: 2 additions & 1 deletion src/SlimFaas/Kubernetes/KubernetesService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ private static IEnumerable<PodInformation> MapPodInformations(V1PodList v1PodLis
bool? podReady = item.Status.Conditions.FirstOrDefault(c => c.Type == "Ready")?.Status == "True";
// I want the state when the pod is ready to receive http request
bool podReadyHttp = item.Status.Conditions.FirstOrDefault(c => c.Type == "PodScheduled")?.Status == "True";
bool containerReady = item.Status.Conditions.FirstOrDefault(c => c.Type == "ContainersReady")?.Status == "True";

// display pod name
if (item.Metadata.Name.Contains("fibonacci1"))
Expand Down Expand Up @@ -421,7 +422,7 @@ private static IEnumerable<PodInformation> MapPodInformations(V1PodList v1PodLis

string? podName = item.Metadata.Name;
string deploymentName = item.Metadata.OwnerReferences[0].Name;
PodInformation podInformation = new(podName, started, podReady, podIp, deploymentName);
PodInformation podInformation = new(podName, started, containerReady, podIp, deploymentName);
yield return podInformation;
}
}
Expand Down

0 comments on commit d79c212

Please sign in to comment.