update descriptions of capabilities

This commit is contained in:
Hongchao Deng
2020-11-13 12:38:45 -08:00
parent 4e7af35e61
commit b0c9e4b78a
16 changed files with 24 additions and 34 deletions
@@ -3,11 +3,11 @@ kind: TraitDefinition
metadata:
name: autoscale
annotations:
definition.oam.dev/description: "Automatically scale workloads"
definition.oam.dev/description: "Automatically scale the app following certain triggers or metrics"
spec:
appliesToWorkloads:
- webservice
- backend
- worker
workloadRefPath: spec.workloadRef
definitionRef:
name: autoscalers.standard.oam.dev
@@ -2,13 +2,12 @@ apiVersion: core.oam.dev/v1alpha2
kind: TraitDefinition
metadata:
annotations:
definition.oam.dev/description: "Scale replica for workload"
definition.oam.dev/description: "Manually scale the app"
name: scaler
spec:
appliesToWorkloads:
- webservice
- containerizedworkloads.core.oam.dev
- deployments.apps
- worker
definitionRef:
name: manualscalertraits.core.oam.dev
workloadRefPath: spec.workloadRef
@@ -3,16 +3,12 @@ kind: TraitDefinition
metadata:
name: metric
annotations:
definition.oam.dev/description: "Add metric monitoring for workload"
definition.oam.dev/description: "Configure metrics targets to be monitored for the app"
spec:
appliesToWorkloads:
- webservice
- backend
- task
- containerizedworkloads.core.oam.dev
- clonesetworkloads.apps.kruise.io
- deployments.apps
- statefulsets.apps
definitionRef:
name: metricstraits.standard.oam.dev
workloadRefPath: spec.workloadRef
@@ -2,10 +2,11 @@ apiVersion: core.oam.dev/v1alpha2
kind: TraitDefinition
metadata:
name: rollout
annotations:
definition.oam.dev/description: "Configure canary deployment strategy to release the app"
spec:
appliesToWorkloads:
- podspecworkload.standard.oam.dev
- deployments.apps
- webservice
definitionRef:
name: canaries.flagger.app
workloadRefPath: spec.targetRef
@@ -3,11 +3,10 @@ kind: TraitDefinition
metadata:
name: route
annotations:
definition.oam.dev/description: "Add a route for workload"
definition.oam.dev/description: "Configure route policy to the app"
spec:
appliesToWorkloads:
- webservice
- deployments.apps
workloadRefPath: spec.workloadRef
definitionRef:
name: routes.standard.oam.dev
@@ -3,7 +3,7 @@ kind: WorkloadDefinition
metadata:
name: task
annotations:
definition.oam.dev/description: "One-time task/job"
definition.oam.dev/description: "One-off task to run a piece of code or script to completion"
spec:
definitionRef:
name: jobs
@@ -3,7 +3,7 @@ kind: WorkloadDefinition
metadata:
name: webservice
annotations:
definition.oam.dev/description: "Long running service with network routes"
definition.oam.dev/description: "Long-running scalable service with stable endpoint to receive external traffic"
spec:
definitionRef:
name: deployments.apps
@@ -3,7 +3,7 @@ kind: WorkloadDefinition
metadata:
name: worker
annotations:
definition.oam.dev/description: "Backend worker without ports exposed"
definition.oam.dev/description: "Long-running scalable backend worker without network endpoint"
spec:
definitionRef:
name: deployments.apps
@@ -3,11 +3,11 @@ kind: TraitDefinition
metadata:
name: autoscale
annotations:
definition.oam.dev/description: "Automatically scale workloads"
definition.oam.dev/description: "Automatically scale the app following certain triggers or metrics"
spec:
appliesToWorkloads:
- webservice
- backend
- worker
workloadRefPath: spec.workloadRef
definitionRef:
name: autoscalers.standard.oam.dev
@@ -2,13 +2,12 @@ apiVersion: core.oam.dev/v1alpha2
kind: TraitDefinition
metadata:
annotations:
definition.oam.dev/description: "Scale replica for workload"
definition.oam.dev/description: "Manually scale the app"
name: scaler
spec:
appliesToWorkloads:
- webservice
- containerizedworkloads.core.oam.dev
- deployments.apps
- worker
definitionRef:
name: manualscalertraits.core.oam.dev
workloadRefPath: spec.workloadRef
+1 -5
View File
@@ -3,16 +3,12 @@ kind: TraitDefinition
metadata:
name: metric
annotations:
definition.oam.dev/description: "Add metric monitoring for workload"
definition.oam.dev/description: "Configure metrics targets to be monitored for the app"
spec:
appliesToWorkloads:
- webservice
- backend
- task
- containerizedworkloads.core.oam.dev
- clonesetworkloads.apps.kruise.io
- deployments.apps
- statefulsets.apps
definitionRef:
name: metricstraits.standard.oam.dev
workloadRefPath: spec.workloadRef
+3 -2
View File
@@ -2,10 +2,11 @@ apiVersion: core.oam.dev/v1alpha2
kind: TraitDefinition
metadata:
name: rollout
annotations:
definition.oam.dev/description: "Configure canary deployment strategy to release the app"
spec:
appliesToWorkloads:
- podspecworkload.standard.oam.dev
- deployments.apps
- webservice
definitionRef:
name: canaries.flagger.app
workloadRefPath: spec.targetRef
+1 -2
View File
@@ -3,11 +3,10 @@ kind: TraitDefinition
metadata:
name: route
annotations:
definition.oam.dev/description: "Add a route for workload"
definition.oam.dev/description: "Configure route policy to the app"
spec:
appliesToWorkloads:
- webservice
- deployments.apps
workloadRefPath: spec.workloadRef
definitionRef:
name: routes.standard.oam.dev
+1 -1
View File
@@ -3,7 +3,7 @@ kind: WorkloadDefinition
metadata:
name: task
annotations:
definition.oam.dev/description: "One-time task/job"
definition.oam.dev/description: "One-off task to run a piece of code or script to completion"
spec:
definitionRef:
name: jobs
@@ -3,7 +3,7 @@ kind: WorkloadDefinition
metadata:
name: webservice
annotations:
definition.oam.dev/description: "Long running service with network routes"
definition.oam.dev/description: "Long-running scalable service with stable endpoint to receive external traffic"
spec:
definitionRef:
name: deployments.apps
+1 -1
View File
@@ -3,7 +3,7 @@ kind: WorkloadDefinition
metadata:
name: worker
annotations:
definition.oam.dev/description: "Backend worker without ports exposed"
definition.oam.dev/description: "Long-running scalable backend worker without network endpoint"
spec:
definitionRef:
name: deployments.apps