Skip to content

Commit

Permalink
fix: only attempt to bind automatically if marked as auto bindable
Browse files Browse the repository at this point in the history
  • Loading branch information
metacosm committed Feb 20, 2020
1 parent 14719a1 commit 119f654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/component/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (in *Component) CreateOrUpdate() (err error) {
c, err := dependentCap.Fetch()
condition := dependentCap.GetCondition(c, err)
if condition == nil || (condition.Type != v1beta1.DependentLinked && condition.Type != v1beta1.DependentLinking) {
if condition.IsReady() {
if required.AutoBindable && condition.IsReady() {
// the capability is not already linked or linking and ready so link it
condition.Type = v1beta1.DependentLinking
pod, err := in.FetchUpdatedDependent(framework.TypePredicateFor(podGVK))
Expand Down

0 comments on commit 119f654

Please sign in to comment.