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

[Feature] Give a mechanism to leave workload alive when it's component not used in AppConfig #248

Open
wonderflow opened this issue Oct 15, 2020 · 4 comments

Comments

@wonderflow
Copy link
Member

A Component could be some kinds of resource like Database or Storage system. Once an app not need this component, it may be deleted from AppConfig but the resource should keep alive for a period of time for security or other needs.

@BBialeckiACR
Copy link

I believe this is exactly why my concept of entrypoints needs to be implemented. Then these can be specified in separate app configs and referred to as component entrypoints in another.
But we had also thought of this as something that could be specified in a custom trait.

@wonderflow
Copy link
Member Author

@BBialeckiACR Yes, a custom trait is much better as we don't need to add any concepts to current OAM spec.

@BBialeckiACR
Copy link

The issue with a custom trait is that there can be no default value define by a developer and this is left in the hands of the implementation

@resouer
Copy link
Contributor

resouer commented Oct 22, 2020

@BBialeckiACR I'm thinking maybe it's possible to define default values in TraitDefinition (as we already did in kubevela's implementation).

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

No branches or pull requests

3 participants