Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor the spec documentation with better structure: #406

Merged
merged 3 commits into from
Sep 16, 2020

Conversation

resouer
Copy link
Member

@resouer resouer commented Sep 15, 2020

  1. Clarify the intention that workload type is the NAME of workload definition.
  2. Clarify ContainerizedWorkload as schema of Server workload type.
  3. Create placeholder for Task workload type.
  4. Fix several bugs
  5. Remove SPEC_WORKING_DRAFT.md.
  6. Rename SPEC_LATEST_STABLE.md to SPEC.md
  7. Move specification components as part of SPEC.md, not readme.

@resouer resouer requested review from wonderflow and removed request for technosophos and vturecek September 15, 2020 23:55
@resouer resouer force-pushed the spec-refactor branch 2 times, most recently from 656be86 to d8eef93 Compare September 16, 2020 00:35
1. Clarify the intention that workload type is the NAME of workload definition.
2. Clarify ContainerizedWorkload as schema of Server workload type.
3. Create placeholder for Task workload type.
4. Fix several bugs
5. Remove SPEC_WORKING_DRAFT.md.
6. Rename SPEC_LATEST_STABLE.md to SPEC.md
7. Move specification components as part of SPEC.md, not readme.
3.component.md Outdated Show resolved Hide resolved
4.workload_definitions.md Outdated Show resolved Hide resolved
4.workload_definitions.md Show resolved Hide resolved
Copy link
Member

@hongchaodeng hongchaodeng left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@wonderflow wonderflow left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +42 to +46
|-|-|-|
|`workload.oam.dev/replicable`|boolean|Whether they are replicable. If not, no replication or scaling traits may be assigned.|
|`workload.oam.dev/daemonized`|boolean|Whether they are daemonized. For daemon types, if the workload exits, this is considered a fault, and the system must fix it. For non-daemonized types, exit is considered a success if no error is reported.|
|`workload.oam.dev/exposed`|boolean|Whether they are exposed, i.e. have a service endpoint with a stable name for network traffic. Workload types that have a service endpoint need a virtual IP address (VIP) with a DNS name to represent the component as a whole, addressable within their network scope and can be assigned traffic routing traits.|
|`workload.oam.dev/podspecable`|boolean|Whether this workload can be addressed by Kubernetes `PodSpec`. If yes, the implementation could manipulate the workload by leveraging `PodSpec` structure, instead of being agnostic of the workload's schematic. |
Copy link
Member

Choose a reason for hiding this comment

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

just for clarify, we haven't implemented this label mechanism yet.

resouer and others added 2 commits September 16, 2020 08:51
Co-authored-by: Hongchao Deng <[email protected]>
@resouer resouer merged commit 87502d2 into oam-dev:master Sep 16, 2020
@resouer resouer deleted the spec-refactor branch September 16, 2020 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants