Skip to content

Commit

Permalink
Use common logic to handle observedgen for Rev (#7985)
Browse files Browse the repository at this point in the history
  • Loading branch information
whaught authored May 26, 2020
1 parent ed4c276 commit 7e8e489
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/serving/v1/revision_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
)

// +genclient
// +genreconciler
// +genreconciler:krshapedlogic=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// Revision is an immutable snapshot of code and configuration. A revision
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pkg/reconciler/revision/revision.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ func (c *Reconciler) ReconcileKind(ctx context.Context, rev *v1.Revision) pkgrec
"Revision becomes ready upon all resources being ready")
}

rev.Status.ObservedGeneration = rev.Generation
return nil
}

Expand Down

0 comments on commit 7e8e489

Please sign in to comment.