github.com/oam-dev/kubevela@v1.9.11/test/e2e-test/testdata/app/app_garbage_collect.yaml (about)

     1  apiVersion: core.oam.dev/v1beta1
     2  kind: Application
     3  metadata:
     4    name: garbage-collect-app
     5  spec:
     6    components:
     7      - name: hello-world
     8        type: webservice
     9        properties:
    10          image: crccheck/hello-world
    11        traits:
    12          - type: expose
    13            properties:
    14              port: [8000]
    15    policies:
    16      - name: garbage-collect
    17        type: garbage-collect
    18        properties:
    19          keepLegacyResource: true
    20          rules:
    21            - selector:
    22                traitTypes:
    23                  - expose
    24              strategy: onAppDelete
    25      - name: apply-once
    26        type: apply-once
    27        properties:
    28          enable: true