oam-kubernetes-runtime icon indicating copy to clipboard operation
oam-kubernetes-runtime copied to clipboard

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

Open wonderflow opened this issue 5 years ago • 4 comments

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.

wonderflow avatar Oct 15 '20 06:10 wonderflow

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.

BBialeckiACR avatar Oct 20 '20 20:10 BBialeckiACR

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

wonderflow avatar Oct 21 '20 13:10 wonderflow

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

BBialeckiACR avatar Oct 21 '20 20:10 BBialeckiACR

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

resouer avatar Oct 22 '20 19:10 resouer