Commit 122650f
authored
Set Terminal Condition if ACK Terminal Error (#318)
Set terminal condition if ACK Terminal Error is thrown.
ACK Terminal errors can be used to set terminal conditions
if controller validations fail.
```
if *latestStatus == "create-failed" {
return nil, ackerr.TerminalError.New(errors.New("cluster cannot be updated as its status is not 'available'."))
}
```
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.1 parent 4bbc4f1 commit 122650f
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
221 | | - | |
222 | | - | |
| 222 | + | |
| 223 | + | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
230 | | - | |
| 231 | + | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
| |||
0 commit comments