@@ -102,21 +102,21 @@ FeatureGate, disable by default
102
102
103
103
## Proposal
104
104
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:
110
106
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
120
120
121
121
122
122
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:
157
157
// - 1Gi for "size" ImagePullProgressType
158
158
// Default: 30
159
159
// +optional
160
- ImagePullProgressInterval string `json:"ImagePullProgressType ,omitempty"`
160
+ ImagePullProgressInterval string `json:"ImagePullProgressInterval ,omitempty"`
161
161
// NoProgressTimeout is a number of seconds after which stalled image download should be reported
162
162
// as an error.
163
163
// Supported values are:
164
164
// - 0 for infinity, effectively no timeout
165
165
// - positive number up to 4294967295 (uint32 max number, approx. 136 years)
166
166
// Default: 10
167
+ // +optional
167
168
NoProgressTimeout int32 `json:"NoProgressTimeout,omitempty"`
168
169
169
170
0 commit comments