Skip to content

Commit

Permalink
Merge pull request #11532 from coreydaley/github_3309_unexpected_fata…
Browse files Browse the repository at this point in the history
…l_error_image_change_controller

Merged by openshift-bot
  • Loading branch information
OpenShift Bot authored Oct 26, 2016
2 parents 2163c30 + c40707a commit 7cd5ade
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
5 changes: 1 addition & 4 deletions pkg/build/controller/factory/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,7 @@ func (factory *ImageChangeControllerFactory) Create() controller.RunnableControl
RetryManager: controller.NewQueueRetryManager(
queue,
cache.MetaNamespaceKeyFunc,
retryFunc("ImageStream update", func(err error) bool {
_, isFatal := err.(buildcontroller.ImageChangeControllerFatalError)
return isFatal
}),
retryFunc("ImageStream update", nil),
flowcontrol.NewTokenBucketRateLimiter(1, 10),
),
Handle: func(obj interface{}) error {
Expand Down
10 changes: 0 additions & 10 deletions pkg/build/controller/image_change_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@ import (
imageapi "github.com/openshift/origin/pkg/image/api"
)

// ImageChangeControllerFatalError represents a fatal error while handling an image change
type ImageChangeControllerFatalError struct {
Reason string
Err error
}

func (e ImageChangeControllerFatalError) Error() string {
return fmt.Sprintf("fatal error handling ImageStream change: %s, root error was: %s", e.Reason, e.Err.Error())
}

// ImageChangeController watches for changes to ImageRepositories and triggers
// builds when a new version of a tag referenced by a BuildConfig
// is available.
Expand Down

0 comments on commit 7cd5ade

Please sign in to comment.