... | ... |
@@ -15305,7 +15305,7 @@ |
15305 | 15305 |
}, |
15306 | 15306 |
"cancelled": { |
15307 | 15307 |
"type": "boolean", |
15308 |
- "description": "describes if a canceling event was triggered for the build" |
|
15308 |
+ "description": "describes if a cancel event was triggered for the build" |
|
15309 | 15309 |
}, |
15310 | 15310 |
"reason": { |
15311 | 15311 |
"type": "string", |
... | ... |
@@ -70,7 +70,7 @@ type BuildStatus struct { |
70 | 70 |
// Phase is the point in the build lifecycle. |
71 | 71 |
Phase BuildPhase |
72 | 72 |
|
73 |
- // Cancelled describes if a cancelling event was triggered for the build. |
|
73 |
+ // Cancelled describes if a cancel event was triggered for the build. |
|
74 | 74 |
Cancelled bool |
75 | 75 |
|
76 | 76 |
// Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. |
... | ... |
@@ -54,8 +54,8 @@ type BuildStatus struct { |
54 | 54 |
// Phase is the point in the build lifecycle. |
55 | 55 |
Phase BuildPhase `json:"phase" description:"observed point in the build lifecycle"` |
56 | 56 |
|
57 |
- // Cancelled describes if a cancelling event was triggered for the build. |
|
58 |
- Cancelled bool `json:"cancelled,omitempty" description:"describes if a canceling event was triggered for the build"` |
|
57 |
+ // Cancelled describes if a cancel event was triggered for the build. |
|
58 |
+ Cancelled bool `json:"cancelled,omitempty" description:"describes if a cancel event was triggered for the build"` |
|
59 | 59 |
|
60 | 60 |
// Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. |
61 | 61 |
Reason StatusReason `json:"reason,omitempty" description:"brief CamelCase string describing a failure, meant for machine parsing and tidy display in the CLI"` |
... | ... |
@@ -54,7 +54,7 @@ type BuildStatus struct { |
54 | 54 |
// Phase is the point in the build lifecycle. |
55 | 55 |
Phase BuildPhase `json:"phase"` |
56 | 56 |
|
57 |
- // Cancelled describes if a cancelling event was triggered for the build. |
|
57 |
+ // Cancelled describes if a cancel event was triggered for the build. |
|
58 | 58 |
Cancelled bool `json:"cancelled,omitempty"` |
59 | 59 |
|
60 | 60 |
// Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. |
... | ... |
@@ -75,7 +75,7 @@ func (bc *BuildController) CancelBuild(build *buildapi.Build) error { |
75 | 75 |
return nil |
76 | 76 |
} |
77 | 77 |
|
78 |
-// HandleBuild deletes pods for canceled builds and takes new builds and puts |
|
78 |
+// HandleBuild deletes pods for cancelled builds and takes new builds and puts |
|
79 | 79 |
// them in the pending state after creating a corresponding pod |
80 | 80 |
func (bc *BuildController) HandleBuild(build *buildapi.Build) error { |
81 | 81 |
glog.V(4).Infof("Handling build %s/%s", build.Namespace, build.Name) |
... | ... |
@@ -111,10 +111,10 @@ func NewCmdPruneBuilds(f *clientcmd.Factory, parentName, name string, out io.Wri |
111 | 111 |
} |
112 | 112 |
|
113 | 113 |
cmd.Flags().BoolVar(&cfg.Confirm, "confirm", cfg.Confirm, "Specify that build pruning should proceed. Defaults to false, displaying what would be deleted but not actually deleting anything.") |
114 |
- cmd.Flags().BoolVar(&cfg.Orphans, "orphans", cfg.Orphans, "Prune all builds whose associated BuildConfig no longer exists and whose status is complete, failed, error, or canceled.") |
|
114 |
+ cmd.Flags().BoolVar(&cfg.Orphans, "orphans", cfg.Orphans, "Prune all builds whose associated BuildConfig no longer exists and whose status is complete, failed, error, or cancelled.") |
|
115 | 115 |
cmd.Flags().DurationVar(&cfg.KeepYoungerThan, "keep-younger-than", cfg.KeepYoungerThan, "Specify the minimum age of a Build for it to be considered a candidate for pruning.") |
116 | 116 |
cmd.Flags().IntVar(&cfg.KeepComplete, "keep-complete", cfg.KeepComplete, "Per BuildConfig, specify the number of builds whose status is complete that will be preserved.") |
117 |
- cmd.Flags().IntVar(&cfg.KeepFailed, "keep-failed", cfg.KeepFailed, "Per BuildConfig, specify the number of builds whose status is failed, error, or canceled that will be preserved.") |
|
117 |
+ cmd.Flags().IntVar(&cfg.KeepFailed, "keep-failed", cfg.KeepFailed, "Per BuildConfig, specify the number of builds whose status is failed, error, or cancelled that will be preserved.") |
|
118 | 118 |
|
119 | 119 |
return cmd |
120 | 120 |
} |
... | ... |
@@ -154,7 +154,7 @@ func describeBuildDuration(build *buildapi.Build) string { |
154 | 154 |
(build.Status.Phase == buildapi.BuildPhaseCancelled || |
155 | 155 |
build.Status.Phase == buildapi.BuildPhaseFailed || |
156 | 156 |
build.Status.Phase == buildapi.BuildPhaseError) { |
157 |
- // time a build waited for its pod before ultimately being canceled before that pod was created |
|
157 |
+ // time a build waited for its pod before ultimately being cancelled before that pod was created |
|
158 | 158 |
return fmt.Sprintf("waited for %s", build.Status.CompletionTimestamp.Rfc3339Copy().Time.Sub(build.CreationTimestamp.Rfc3339Copy().Time)) |
159 | 159 |
} else if build.Status.StartTimestamp == nil && build.Status.Phase != buildapi.BuildPhaseCancelled { |
160 | 160 |
// time a new build has been waiting for its pod to be created so it can run |
... | ... |
@@ -34,7 +34,7 @@ func retryWhenUnreachable(t *testing.T, f func() error) error { |
34 | 34 |
// Get https://registry.com/v2/: dial tcp: lookup registry.com: no such host |
35 | 35 |
// Get https://registry.com/v2/: dial tcp registry.com:443: getsockopt: connection refused |
36 | 36 |
// Get https://registry.com/v2/: read tcp 127.0.0.1:39849->registry.com:443: read: connection reset by peer |
37 |
- // Get https://registry.com/v2/: net/http: request canceled while waiting for connection |
|
37 |
+ // Get https://registry.com/v2/: net/http: request cancelled while waiting for connection |
|
38 | 38 |
// Get https://registry.com/v2/: net/http: TLS handshake timeout |
39 | 39 |
// the registry "https://registry.com/v2/ " could not be reached |
40 | 40 |
reachable := true |