| ... | ... |
@@ -213,6 +213,9 @@ func deleteDeploymentConfigs(client osclient.Interface, ns string) error {
|
| 213 | 213 |
func deleteBuilds(client osclient.Interface, ns string) error {
|
| 214 | 214 |
items, err := client.Builds(ns).List(labels.Everything(), fields.Everything()) |
| 215 | 215 |
if err != nil {
|
| 216 |
+ if errors.IsNotFound(err) {
|
|
| 217 |
+ return nil |
|
| 218 |
+ } |
|
| 216 | 219 |
return err |
| 217 | 220 |
} |
| 218 | 221 |
for i := range items.Items {
|
| ... | ... |
@@ -227,6 +230,9 @@ func deleteBuilds(client osclient.Interface, ns string) error {
|
| 227 | 227 |
func deleteBuildConfigs(client osclient.Interface, ns string) error {
|
| 228 | 228 |
items, err := client.BuildConfigs(ns).List(labels.Everything(), fields.Everything()) |
| 229 | 229 |
if err != nil {
|
| 230 |
+ if errors.IsNotFound(err) {
|
|
| 231 |
+ return nil |
|
| 232 |
+ } |
|
| 230 | 233 |
return err |
| 231 | 234 |
} |
| 232 | 235 |
for i := range items.Items {
|