Skip to content

Commit 8046f43

Browse files
committed
Update keps/sig-node/3542-cri-image-pulling-with-progress-notification/README.md
1 parent 6c54bc9 commit 8046f43

File tree

1 file changed

+16
-15
lines changed
  • keps/sig-node/3542-cri-image-pulling-with-progress-notification

1 file changed

+16
-15
lines changed

keps/sig-node/3542-cri-image-pulling-with-progress-notification/README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -102,21 +102,21 @@ FeatureGate, disable by default
102102

103103
## Proposal
104104

105-
We propose introducing new (additional, not replacing old one) API for requesting image pull,
106-
that will return stream with periodic updates sent through it to the client until completion or
107-
a timeout without download progress is reached.
108-
109-
The image pull request parameters will contain:
105+
We propose:
110106

111-
- the type of granularty based on which the client wants to receive updates about the progress:
112-
- time-based
113-
- size-based
114-
- none
115-
- frequency of the updates (if any) respectively to the granularity type:
116-
- every N seconds
117-
- every N Kibibytes of the total image size being downloaded
118-
- no-progress timeout
119-
- number of seconds during which if completely no data transfer was ongoing, failure should be reported
107+
- extending existing ImagePull call with optional parameter:
108+
- no-progress timeout: number of seconds during which if completely no data transfer was ongoing, failure should be reported
109+
- introducing new (additional, not replacing old one) API for requesting image pull,
110+
that will return stream with periodic updates sent through it to the client until completion or
111+
a timeout without download progress is reached. The image pull with progress request parameters will contain:
112+
- image pull request data structure, including new optional no-progress timeout field
113+
- the type of granularty based on which the client wants to receive updates about the progress:
114+
- time-based
115+
- size-based
116+
- none
117+
- frequency of the updates (if any) respectively to the granularity type:
118+
- every N seconds
119+
- every N amount of data downloaded of the total image size, e.g. 1Gi
120120

121121

122122
If / when it is possible to reliably determine percentage of the progress in the runtime,
@@ -157,13 +157,14 @@ Suggested new Kubelet config fields are these:
157157
// - 1Gi for "size" ImagePullProgressType
158158
// Default: 30
159159
// +optional
160-
ImagePullProgressInterval string `json:"ImagePullProgressType,omitempty"`
160+
ImagePullProgressInterval string `json:"ImagePullProgressInterval,omitempty"`
161161
// NoProgressTimeout is a number of seconds after which stalled image download should be reported
162162
// as an error.
163163
// Supported values are:
164164
// - 0 for infinity, effectively no timeout
165165
// - positive number up to 4294967295 (uint32 max number, approx. 136 years)
166166
// Default: 10
167+
// +optional
167168
NoProgressTimeout int32 `json:"NoProgressTimeout,omitempty"`
168169

169170

0 commit comments

Comments
 (0)