spec icon indicating copy to clipboard operation
spec copied to clipboard

Is the workload spec in the Component spec filled by developers or operators?

Open doudoutinghua opened this issue 5 years ago • 4 comments

Is the content in the red box filled by developers or operators?

image

image

image

doudoutinghua avatar Jul 15 '20 11:07 doudoutinghua

It should be filled by developers

wonderflow avatar Jul 16 '20 03:07 wonderflow

Yes this is where developers fill in the detail of the container they want to run for a container workload. More generally, for any workload type, developers are responsible for producing a component file.

If that answers your question, @doudoutinghua, I will close this issue out.

vturecek avatar Jul 31 '20 22:07 vturecek

Where is the workload schema defined ? Is it directly in the workload ? I can't easily find a complete example of interactions between a workload and a component.

babin93 avatar Aug 05 '20 18:08 babin93

@babin93 For any application platform build with OAM model, it relies on WorkloadDefinition to discover and register the schema of workload. For example, in OAM Kubernetes , WorkloadDefinition of ContainerizedWorkload points to its Kubernetes CRD.

Note thatWorkloadDefinition is an extensible object so platform builders are encouraged to reference doc link or API spec doc link in that object to help developers understand the workload better.

For ContainerizedWorkload which is part of OAM spec, its schema is also documented in the spec: https://github.com/oam-dev/spec/blob/master/core/workloads/schema/containerized_workload.md

Hope this answered your question and feel free to raise any discussion around the spec.

resouer avatar Aug 05 '20 19:08 resouer