mirror of
https://github.com/kubevela/kubevela.git
synced 2026-03-03 02:01:05 +00:00
solve failed test add compatibility test for old crd add app ns for cli modify compatibility test solve compatibility problem add testing for GetDefinition func with cluster scope CRD generate code for compatibility-test move testdata generate to makefile optimize ci pipeline for compatibility-test
41 lines
961 B
YAML
41 lines
961 B
YAML
apiVersion: core.oam.dev/v1alpha2
|
|
kind: WorkloadDefinition
|
|
metadata:
|
|
name: deployments.testapps
|
|
namespace: vela-system
|
|
labels:
|
|
usecase: forplugintest
|
|
spec:
|
|
definitionRef:
|
|
name: deployments.apps
|
|
extension:
|
|
template: |
|
|
output: {
|
|
apiVersion: "apps/v1"
|
|
kind: "Deployment"
|
|
metadata: name: context.name
|
|
spec: {
|
|
containers: [{
|
|
image: parameter.image
|
|
name: context.name
|
|
env: parameter.env
|
|
ports: [{
|
|
containerPort: parameter.port
|
|
protocol: "TCP"
|
|
name: "default"
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
parameter: {
|
|
// +usage=Which image would you like to use for your service
|
|
// +short=i
|
|
image: string
|
|
// +usage=Which port do you want customer traffic sent to
|
|
// +short=p
|
|
port: *8080 | int
|
|
env: [...{
|
|
name: string
|
|
value: string
|
|
}]
|
|
} |