mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
* add vela edit * vela def group commands * 1. change scheme of definition cue 2. add vela def tests 3. reformat * fix render template bugs * add definition examples (migrated from serverless iac) * retrigger github ci Co-authored-by: Yin Da <yinda@B-2943Q05P-1738.local>
36 lines
810 B
YAML
36 lines
810 B
YAML
apiVersion: core.oam.dev/v1beta1
|
|
kind: Application
|
|
metadata:
|
|
name: application-with-configmap
|
|
spec:
|
|
components:
|
|
- name: busybox-runner
|
|
type: worker
|
|
properties:
|
|
image: busybox
|
|
cmd:
|
|
- sleep
|
|
- '1000'
|
|
traits:
|
|
- type: annotations
|
|
properties:
|
|
annotation-a: annotation-A
|
|
- type: configmap
|
|
properties:
|
|
volumes:
|
|
- name: read-only-configmap
|
|
mountPath: /read-only-configmap
|
|
readOnly: true
|
|
data:
|
|
dataA: a
|
|
dataB: b
|
|
- name: default-configmap
|
|
mountPath: /default-configmap
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: default-configmap
|
|
data:
|
|
data1: "1"
|
|
data2: "2" |