Skip to content

Commit

Permalink
Merge pull request #44 from kilosonc/fix/status
Browse files Browse the repository at this point in the history
fix: ready status of pods
  • Loading branch information
kilosonc authored Mar 1, 2023
2 parents 7b36ca4 + dab4702 commit 0d206ba
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/cluster/cd/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,9 @@ type CompactPodMetadata struct {
}

type CompactContainer struct {
Name string `json:"name"`
Image string `json:"image"`
Name string `json:"name"`
Image string `json:"image"`
ReadinessProbe *corev1.Probe `json:"readinessProbe,omitempty"`
}

type CompactPodSpec struct {
Expand Down Expand Up @@ -418,7 +419,8 @@ func Compact(pod corev1.Pod) CompactPod {

func ContainerCompact(container corev1.Container) CompactContainer {
return CompactContainer{
Name: container.Name,
Image: container.Image,
Name: container.Name,
Image: container.Image,
ReadinessProbe: container.ReadinessProbe,
}
}

0 comments on commit 0d206ba

Please sign in to comment.