Skip to content

Commit

Permalink
start support for init containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Bianco95 committed May 16, 2024
1 parent 76d635d commit 6896f3e
Show file tree
Hide file tree
Showing 3 changed files with 367 additions and 302 deletions.
14 changes: 8 additions & 6 deletions pkg/common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ type PodCreateRequests struct {

// PodStatus is a simplified v1.Pod struct, holding only necessary variables to uniquely identify a job/service in the sidecar. It is used to request
type PodStatus struct {
PodName string `json:"name"`
PodUID string `json:"UID"`
PodNamespace string `json:"namespace"`
Containers []v1.ContainerStatus `json:"containers"`
PodName string `json:"name"`
PodUID string `json:"UID"`
PodNamespace string `json:"namespace"`
Containers []v1.ContainerStatus `json:"containers"`
InitContainers []v1.ContainerStatus `json:"initContainers"`
}

// RetrievedContainer is used in InterLink to rearrange data structure in a suitable way for the sidecar
Expand All @@ -31,8 +32,9 @@ type RetrievedContainer struct {

// RetrievedPoData is used in InterLink to rearrange data structure in a suitable way for the sidecar
type RetrievedPodData struct {
Pod v1.Pod `json:"pod"`
Containers []RetrievedContainer `json:"container"`
Pod v1.Pod `json:"pod"`
Containers []RetrievedContainer `json:"container"`
InitContainers []RetrievedContainer `json:"initContainer"`
}

// InterLinkConfig holds the whole configuration
Expand Down
Loading

0 comments on commit 6896f3e

Please sign in to comment.