Skip to content

Commit 5523be3

Browse files
authored
Merge pull request kubernetes#77419 from alculquicondor/feature/fake-runtime-handler
Store runtimeHandler for the PodSandboxStatus in FakeRuntimeService
2 parents caad163 + d077d21 commit 5523be3

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

staging/src/k8s.io/cri-api/pkg/apis/testing/fake_runtime_service.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,9 @@ func (r *FakeRuntimeService) RunPodSandbox(config *runtimeapi.PodSandboxConfig,
181181
Network: &runtimeapi.PodSandboxNetworkStatus{
182182
Ip: FakePodSandboxIP,
183183
},
184-
Labels: config.Labels,
185-
Annotations: config.Annotations,
184+
Labels: config.Labels,
185+
Annotations: config.Annotations,
186+
RuntimeHandler: runtimeHandler,
186187
},
187188
RuntimeHandler: runtimeHandler,
188189
}
@@ -253,12 +254,13 @@ func (r *FakeRuntimeService) ListPodSandbox(filter *runtimeapi.PodSandboxFilter)
253254
}
254255

255256
result = append(result, &runtimeapi.PodSandbox{
256-
Id: s.Id,
257-
Metadata: s.Metadata,
258-
State: s.State,
259-
CreatedAt: s.CreatedAt,
260-
Labels: s.Labels,
261-
Annotations: s.Annotations,
257+
Id: s.Id,
258+
Metadata: s.Metadata,
259+
State: s.State,
260+
CreatedAt: s.CreatedAt,
261+
Labels: s.Labels,
262+
Annotations: s.Annotations,
263+
RuntimeHandler: s.RuntimeHandler,
262264
})
263265
}
264266

0 commit comments

Comments
 (0)