github.com/oam-dev/kubevela@v1.9.11/test/e2e-multicluster-test/testdata/app/app-with-custom-gc-propagation.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: Application 3 metadata: 4 name: gc-propagation 5 spec: 6 components: 7 - type: webservice 8 name: orphan-gc 9 properties: 10 image: busybox 11 cmd: 12 - sleep 13 - '1000000' 14 - type: k8s-objects 15 name: cascading-gc 16 properties: 17 objects: 18 - apiVersion: batch/v1 19 kind: Job 20 spec: 21 template: 22 spec: 23 containers: 24 - name: pi 25 image: perl:5.34.0 26 command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"] 27 restartPolicy: Never 28 backoffLimit: 4 29 policies: 30 - type: garbage-collect 31 properties: 32 rules: 33 - selector: 34 componentNames: ["orphan-gc"] 35 propagation: orphan 36 - selector: 37 componentNames: ["cascading-gc"] 38 propagation: cascading