File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
keps/sig-node/3542-cri-image-pulling-with-progress-notification Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -258,15 +258,22 @@ The granularity type and interval should be configurable through kubelet-config.
258
258
Suggested new Kubelet config fields are these:
259
259
260
260
// ImagePullProgressType is the type of ImagePullProgressInterval.
261
+ // Supported values are
262
+ // - "time" for tunrime to report progress every ImagePullProgressInterval seconds
263
+ // - "size" for runtime to report progress every ImagePullProgressInterval <binarySI quantity> (e.g. 1Gi)
261
264
// Default: "time"
262
265
// +optional
263
266
ImagePullProgressType string `json:"ImagePullProgressType,omitempty"`
264
- // ImagePullProgressInterval is an interval of type ImagePullProgressType, based on which the
265
- // runtime should send back to kubelet image pulling progress reports, that will be published
266
- // as Pod events.
267
+ // ImagePullProgressInterval is a quantity value of how often the runtime should send back to
268
+ // kubelet image pulling progress reports, that will be published as Pod events.
269
+ // This option is used together with ImagePullProgressType in ImageService to fill Interval and
270
+ // GranularityType fields respectively in PullImageWithProgressRequest in CRI PullImageWithProgress.
271
+ // ImagePullProgressInterval is treated as seconds if ImagePullProgressType is "time".
272
+ // ImagePullProgressInterval is treated as binarySI quantity if ImagePullProgressType is "size".
273
+ // call.
267
274
// Default: 30
268
275
// +optional
269
- ImagePullProgressInterval uint64 `json:"ImagePullProgressType,omitempty"`
276
+ ImagePullProgressInterval string `json:"ImagePullProgressType,omitempty"`
270
277
271
278
This will be easy to use in CRI-compliant command-line-tools as well as kubelet to monitor the
272
279
progress and publish events to the Pod object
You can’t perform that action at this time.
0 commit comments