Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

feat(component):Add observedGeneration to represent Component #205

Merged
merged 9 commits into from
Sep 28, 2020

Conversation

Ghostbaby
Copy link
Contributor

Add observedGeneration to represent Component

Fix #91

Signed-off-by: zhuhuijun [email protected]

Copy link
Member

@wonderflow wonderflow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a test for this feature

@Ghostbaby
Copy link
Contributor Author

copy

Ghostbaby added a commit to Ghostbaby/oam-kubernetes-runtime that referenced this pull request Sep 16, 2020
Add observedGeneration to represent Component

Fix crossplane#205

Signed-off-by: zhuhuijun <[email protected]>
Ghostbaby added a commit to Ghostbaby/oam-kubernetes-runtime that referenced this pull request Sep 16, 2020
Add observedGeneration to represent Component

Fix crossplane#205

Signed-off-by: zhuhuijun <[email protected]>
Add observedGeneration to represent Component

Fix crossplane#205

Signed-off-by: zhuhuijun <[email protected]>
Copy link
Member

@wonderflow wonderflow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM, please fix the conflict, thanks!

@wonderflow wonderflow merged commit 0668b56 into crossplane:master Sep 28, 2020
@@ -228,6 +228,7 @@ func (r *OAMApplicationReconciler) Reconcile(req reconcile.Request) (result reco

// execute the posthooks at the end no matter what
defer func() {
updateObservedGeneration(ac)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An afterthought: I don't think this is the right place to update ObservedGeneration. Because this will always update even if the reconciliation failed.

Note that I will be fixing this shortly.

@wonderflow @Ghostbaby

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reconcile failed also need to add observed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add observedGeneration to represent Component and AppConfig has reconciled
3 participants