mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-23 17:53:04 +00:00
* [Feature] vela dry-run render results should be affected by override policy and deploy workflowstep Signed-off-by: cezhang <c1zhang.dev@gmail.com> * multiple input files support; policy,workflow support; new flag: merge orphan policy or workflow Signed-off-by: cezhang <c1zhang.dev@gmail.com> * add more tests Signed-off-by: cezhang <c1zhang.dev@gmail.com> * fix comment issues Signed-off-by: cezhang <c1zhang.dev@gmail.com> * add tests Signed-off-by: cezhang <c1zhang.dev@gmail.com> * fix e2e Signed-off-by: cezhang <c1zhang.dev@gmail.com> * fix tests Signed-off-by: cezhang <c1zhang.dev@gmail.com> Signed-off-by: cezhang <c1zhang.dev@gmail.com> Signed-off-by: cezhang <c1zhang.dev@gmail.com> Co-authored-by: cezhang <c1zhang.dev@gmail.com>
50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
apiVersion: core.oam.dev/v1beta1
|
|
kind: ComponentDefinition
|
|
metadata:
|
|
name: myworker
|
|
spec:
|
|
workload:
|
|
definition:
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
schematic:
|
|
cue:
|
|
template: |
|
|
output: {
|
|
apiVersion: "apps/v1"
|
|
kind: "Deployment"
|
|
}
|
|
output: {
|
|
spec: {
|
|
selector: matchLabels: {
|
|
"app.oam.dev/component": context.name
|
|
}
|
|
|
|
template: {
|
|
metadata: labels: {
|
|
"app.oam.dev/component": context.name
|
|
}
|
|
|
|
spec: {
|
|
containers: [{
|
|
name: context.name
|
|
image: parameter.image
|
|
|
|
if parameter["cmd"] != _|_ {
|
|
command: parameter.cmd
|
|
}
|
|
}]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
parameter: {
|
|
// +usage=Which image would you like to use for your service
|
|
// +short=i
|
|
image: string
|
|
// +usage=Commands to run in the container
|
|
cmd?: [...string]
|
|
}
|
|
|