You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.
As we have used OAM in more use cases now, traits can hardly doing anything if we don't have any consensus. So I propose we should setup a base line for OAM standard workload, so that OAM traits will be able to work more smoothly with standard workload.
Note that, this doesn't mean non-standard workload can not work, any extended workload can still run under the control of OAM runtime, but have to do extra traits‘ implementation for these non-standard workload.
Characteristics of the standard workload
labels
Standard workload instance should have at least these three labels, it will be automatically added by OAM runtime:
observedGeneration field of status in K8s object is widely used in K8s built-in resource. It reflects the generation of the most recently observed Object.
LastTransactionTime
A time field indicating when was the workload object was reconciled, mostly used for judging if it's timeout.
Config Hash
indicating whether it's configuration(something out of the spec, for example Configmap or Secret)is dynamically changed.
Ports (PodSpec?)
A standard workload should expose it's ports.
TODO..
The text was updated successfully, but these errors were encountered:
As we have used OAM in more use cases now, traits can hardly doing anything if we don't have any consensus. So I propose we should setup a base line for OAM standard workload, so that OAM traits will be able to work more smoothly with standard workload.
Note that, this doesn't mean non-standard workload can not work, any extended workload can still run under the control of OAM runtime, but have to do extra traits‘ implementation for these non-standard workload.
Characteristics of the standard workload
labels
Standard workload instance should have at least these three labels, it will be automatically added by OAM runtime:
Replica
Standard workload should have replica as a K8s sub resource
And make replica as part of status including
replicas
,unavailableReplicas
andupdatedReplicas
.ObservedGeneration
observedGeneration
field of status in K8s object is widely used in K8s built-in resource. It reflects the generation of the most recently observed Object.LastTransactionTime
A time field indicating when was the workload object was reconciled, mostly used for judging if it's timeout.
Config Hash
indicating whether it's configuration(something out of the spec, for example Configmap or Secret)is dynamically changed.
Ports (PodSpec?)
A standard workload should expose it's ports.
TODO..
The text was updated successfully, but these errors were encountered: