I want to control the deployment sequence of components in the application through workflow. How do I design this workflow? #2571
Unanswered
lclovehoro
asked this question in
Q&A
Replies: 1 comment
-
When component use "rollout" trait, it means that the component workload |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to controll components in the application,I created the following workflow “apply-component”:
`cue:
template: |
import (
"vela/op"
)
When I do not use trait "rollout", I can achieve my purpose normally。
`apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: test
namespace: test
spec:
components:
...
...
workflow:
steps:
type: apply-component
properties:
name: nginx-2
type: apply-application`
However, when I use trait "rollout", the App will remain in the "runningWorkflow" state after publishing the specified components.
I think that after using rollout, the name of the component changed in the deployment, from "nginx-2" to "nginx-2-v1" or "nginx-2-v2", resulting in "op.#Read" can't get the true value, so I want to know about how to design a better workflow to realize the control component when using rollout.
Regarding "vela/op", can provide more details on the official website?
Beta Was this translation helpful? Give feedback.
All reactions