mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-23 22:46:53 +00:00
* Feat(trait): annotation and labels trait should also affect the workload object along with pod * Feat(trait): annotation and labels trait should also affect the workload object along with pod * Feat(trait): annotation and labels trait should also affect the workload object along with pod * Feat(trait): annotation and labels trait should also affect the workload object along with pod * Chore: deprecate containerized workload * Chore: deprecate containerized workload * Chore: run make reviewable as per review comment * Chore: fix import * Chore: merge with master * Chore: merge with master * Chore: remove references for containerized workload * Chore: fix failiing e2e test * Chore: fix failing e2e test * Chore: fix failing e2e test * Chore: fix failing e2e test * Chore: fix e2e tests * Chore: fix e2e tests * Chore: fix e2e tests * Chore: fix e2e tests * Chore: fix e2e tests * Chore: merge with upstream Co-authored-by: Reeta Singh <reetas@twitter.com>
25 lines
528 B
YAML
25 lines
528 B
YAML
apiVersion: core.oam.dev/v1beta1
|
|
kind: TraitDefinition
|
|
metadata:
|
|
name: scaler
|
|
namespace: default
|
|
spec:
|
|
appliesToWorkloads:
|
|
- deployments.apps
|
|
definitionRef:
|
|
name: manualscalertraits.core.oam.dev
|
|
workloadRefPath: spec.workloadRef
|
|
extension:
|
|
template: |-
|
|
outputs: scaler: {
|
|
apiVersion: "core.oam.dev/v1alpha2"
|
|
kind: "ManualScalerTrait"
|
|
spec: {
|
|
replicaCount: parameter.replicas
|
|
}
|
|
}
|
|
parameter: {
|
|
//+short=r
|
|
replicas: *2 | int
|
|
}
|