mirror of
https://github.com/kubevela/kubevela.git
synced 2026-04-05 10:17:16 +00:00
26 lines
997 B
YAML
26 lines
997 B
YAML
apiVersion: core.oam.dev/v1beta1
|
|
kind: Application
|
|
metadata:
|
|
name: busybox
|
|
spec:
|
|
components:
|
|
- name: busybox
|
|
type: webservice
|
|
properties:
|
|
image: busybox
|
|
cmd: ["sleep", "86400"]
|
|
annotations:
|
|
annotation-key: annotation-value
|
|
to-delete-annotation-key: to-delete-annotation-value
|
|
traits:
|
|
# the `annotations` trait will add/delete annotation key/value pair to the
|
|
# labels of the workload and the template inside the spec of the workload (if exists)
|
|
# 1. if original annotations contains the key, value will be overridden
|
|
# 2. if original annotations do not contain the key, value will be added
|
|
# 3. if original annotations contains the key and the value is null, the key will be removed
|
|
- type: annotations
|
|
properties:
|
|
added-annotation-key: added-annotation-value
|
|
annotation-key: modified-annotation-value
|
|
to-delete-annotation-key: null
|