One-time Delivery (Coordinate with Multi-Controllers)

    However, sometimes, you might want to use KubeVela Application to dispatch jobs and recycle jobs, but also want to leave those resources mutable after the workflow is finished. In this case, you can use the following apply-once policy. Some use cases:

    1. Working with HPA, which will change the deployment replicas.
    2. Working with Istio, which will change the deployment containers.
    3. Other controllers…
    1. kind: Application
    2. metadata:
    3. name: apply-once-app
    4. spec:
    5. - name: hello-world
    6. type: webservice
    7. properties:
    8. image: oamdev/hello-world
    9. - type: scaler
    10. properties:
    11. replicas: 3
    12. - name: apply-once
    13. type: apply-once
    14. properties:
    15. enable: true
    16. rules:
    17. path: ["spec.replicas"]
    18. selector:

    In this case, only support changing the replicas field by other controllers, such as HPA. The selector rule support: componentNames,componentTypes,oamTypes,resourceNames,resourceTypes and traitTypes.