[go: nahoru, domu]

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

fix workload status for multiple revision case #190

Merged
merged 2 commits into from
Sep 2, 2020

Conversation

wonderflow
Copy link
Member

For revisionEnabled case, oam runtime will generate multiple workload, while only one workload per component will list in status of AppConfig.

This PR will fix it and list all workloads in status of appconfig.

Signed-off-by: 天元 jianbo.sjb@alibaba-inc.com

Signed-off-by: 天元 <jianbo.sjb@alibaba-inc.com>
})

func readYaml(path string, object runtime.Object) error {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this seems to be a useful helper function, maybe move it to some more common place?

Copy link
Member Author

Choose a reason for hiding this comment

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

it's a small function, and I didn't see we need to use it in our business code, so I leave it here

Copy link
Collaborator

Choose a reason for hiding this comment

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

at least make this available for other tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's put it next time if we need it

test/e2e-test/suite_test.go Show resolved Hide resolved
test/e2e-test/component_version_test.go Show resolved Hide resolved
@wonderflow wonderflow force-pushed the fixstatus branch 2 times, most recently from f338293 to 2f3a367 Compare September 2, 2020 02:48
Signed-off-by: 天元 <jianbo.sjb@alibaba-inc.com>
@ryanzhang-oss ryanzhang-oss merged commit 10d551c into crossplane:master Sep 2, 2020
@wonderflow wonderflow deleted the fixstatus branch September 2, 2020 05:24
zzxwill pushed a commit to zzxwill/oam-kubernetes-runtime that referenced this pull request Sep 10, 2020
* fix workload status for multiple revision case

Signed-off-by: 天元 <jianbo.sjb@alibaba-inc.com>

* add CurrentWorkingRevision flag in workload status

Signed-off-by: 天元 <jianbo.sjb@alibaba-inc.com>
Signed-off-by: zzxwill <zzxwill@gmail.com>
gaius-qi pushed a commit to gaius-qi/oam-kubernetes-runtime that referenced this pull request Nov 10, 2020
* fix workload status for multiple revision case

Signed-off-by: 天元 <jianbo.sjb@alibaba-inc.com>

* add CurrentWorkingRevision flag in workload status

Signed-off-by: 天元 <jianbo.sjb@alibaba-inc.com>
Signed-off-by: gaius.qi <gaius@qiwenbo.com>
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.

None yet

2 participants