mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-16 22:37:16 +00:00
* Apply builtin definition in system:init Fix builtin definitions not installed issue * install builtin definitions * fix OAM runtime installation issue and refactor e2e * fix e2e build issue * manually install oam runtime and builtin capabilities * remove system:init from e2e test
46 lines
1.1 KiB
Go
46 lines
1.1 KiB
Go
package workloaddefinition
|
|
|
|
var ContainerizedWorkload = `apiVersion: core.oam.dev/v1alpha2
|
|
kind: WorkloadDefinition
|
|
metadata:
|
|
name: containerizedworkloads.core.oam.dev
|
|
annotations:
|
|
oam.appengine.info/apiVersion: "core.oam.dev/v1alpha2"
|
|
oam.appengine.info/kind: "ContainerizedWorkload"
|
|
spec:
|
|
definitionRef:
|
|
name: containerizedworkloads.core.oam.dev
|
|
childResourceKinds:
|
|
- apiVersion: apps/v1
|
|
kind: Deployment
|
|
- apiVersion: v1
|
|
kind: Service
|
|
extension:
|
|
template: |
|
|
#Template: {
|
|
apiVersion: "core.oam.dev/v1alpha2"
|
|
kind: "ContainerizedWorkload"
|
|
metadata: name: containerized.name
|
|
spec: {
|
|
containers: [{
|
|
image: containerized.image
|
|
name: containerized.name
|
|
ports: [{
|
|
containerPort: containerized.port
|
|
protocol: "TCP"
|
|
name: "default"
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
containerized: {
|
|
name: string
|
|
// +usage=specify app image
|
|
// +short=i
|
|
image: string
|
|
// +usage=specify port for container
|
|
// +short=p
|
|
port: *6379 | int
|
|
}
|
|
`
|