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

[WIP]Component versioning fix and e2e tests #171

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

captainroy-hy
Copy link
Contributor

Signed-off-by: roy wang <seiwy2010@gmail.com>
allow multiple revisions of one component

unit test & e2e test

Signed-off-by: roy wang <seiwy2010@gmail.com>
Signed-off-by: roy wang <seiwy2010@gmail.com>
Comment on lines +147 to +148
Name: revisionName,
Namespace: curComp.Namespace,
Copy link
Member

Choose a reason for hiding this comment

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

could you help split the namespace in a separated PR as a BUG fix, thanks.

Copy link
Contributor Author

@captainroy-hy captainroy-hy Aug 9, 2020

Choose a reason for hiding this comment

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

Sure, I will fix it in another PR.

Comment on lines +376 to +387
- revisionName: example-component-1
traits:
- apiversion:core.oam.dev/v1alpha2
kind: ManualScaler
spec:
replicaCount: 3
- revisionName: example-component-2
traits:
- apiversion:core.oam.dev/v1alpha2
kind: ManualScaler
spec:
replicaCount: 2
Copy link
Member

Choose a reason for hiding this comment

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

We are considering it's an anti-pattern, as we could use two different components to do the same thing. Using different revisions of one component seems don't bring any extra bonus.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, before the proposal is ready, let's suspend this PR. But I will separate e2e test covering current versioning mechanism into another PR as well as the fix of #170.

Copy link
Member

Choose a reason for hiding this comment

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

Cool, we can hold this PR until we have a conclusion on that issue

@captainroy-hy captainroy-hy changed the title Component versioning fix and e2e tests [WIP]Component versioning fix and e2e tests Aug 19, 2020
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.

[BUG] missing namespace setting when create ControllerRevision
2 participants