-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a values.yaml for OpenStackDataPlaneDeployment #158
Conversation
84ea1f7
to
3c2bba8
Compare
ebb6498
to
2b57a07
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GIving a try right now with a scale-out scenario:
- first deploy will happen with "vanilla" name
- second deploy will add a compute and update the deployment name via a user provided "kustomization" in the ci-framework.
Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com>
++ It works as expected. Note that the CI Framework needs to inject a custom wait_conditions to catch the new name, buuut... it's a thing, and that change makes automated scaling-out possible! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
This feature is needed, especially in HCI scenario, when we want to scale-out the deployment: in order to do so, we have to create a new OpenStackDataPlaneDeployment resource, with a new name to trigger the deployment of the new compute(s). In such a use-case, using [1] and the following parameters, we're able to wait for the right resource to be ready: ```YAML cifmw_architecture_user_kustomize: stage_2: edpm-values: data: deployment: name: edpm-scale-out cifmw_architecture_wait_condition: stage_2: - >- oc -n openstack wait osdpd edpm-scale-out --for condition=Ready --timeout=1500s ``` In this example, the first snippet will inject a user kustomization in the ci_gen_kustomize_values role in order to override the resource name. The second snippet will then inject a new wait_condition to the existing one. When the deployment hits the wait_conditions loop, it will pass over the first one (since it's already done), and run the second condition until it ends. [1] openstack-k8s-operators/architecture#158
This feature is needed, especially in HCI scenario, when we want to scale-out the deployment: in order to do so, we have to create a new OpenStackDataPlaneDeployment resource, with a new name to trigger the deployment of the new compute(s). In such a use-case, using [1] and the following parameters, we're able to wait for the right resource to be ready: ```YAML cifmw_architecture_user_kustomize: stage_2: edpm-values: data: deployment: name: edpm-scale-out cifmw_architecture_wait_condition: stage_2: - >- oc -n openstack wait osdpd edpm-scale-out --for condition=Ready --timeout=1500s ``` In this example, the first snippet will inject a user kustomization in the ci_gen_kustomize_values role in order to override the resource name. The second snippet will then inject a new wait_condition to the existing one. When the deployment hits the wait_conditions loop, it will pass over the first one (since it's already done), and run the second condition until it ends. [1] openstack-k8s-operators/architecture#158
This feature is needed, especially in HCI scenario, when we want to scale-out the deployment: in order to do so, we have to create a new OpenStackDataPlaneDeployment resource, with a new name to trigger the deployment of the new compute(s). In such a use-case, using [1] and the following parameters, we're able to wait for the right resource to be ready: ```YAML cifmw_architecture_user_kustomize: stage_2: edpm-values: data: deployment: name: edpm-scale-out cifmw_architecture_wait_condition: stage_2: - >- oc -n openstack wait osdpd edpm-scale-out --for condition=Ready --timeout=1500s ``` In this example, the first snippet will inject a user kustomization in the ci_gen_kustomize_values role in order to override the resource name. The second snippet will then inject a new wait_condition to the existing one. When the deployment hits the wait_conditions loop, it will pass over the first one (since it's already done), and run the second condition until it ends. [1] openstack-k8s-operators/architecture#158
This feature is needed, especially in HCI scenario, when we want to scale-out the deployment: in order to do so, we have to create a new OpenStackDataPlaneDeployment resource, with a new name to trigger the deployment of the new compute(s). In such a use-case, using [1] and the following parameters, we're able to wait for the right resource to be ready: ```YAML cifmw_architecture_user_kustomize: stage_2: edpm-values: data: deployment: name: edpm-scale-out cifmw_architecture_wait_condition: stage_2: - >- oc -n openstack wait osdpd edpm-scale-out --for condition=Ready --timeout=1500s ``` In this example, the first snippet will inject a user kustomization in the ci_gen_kustomize_values role in order to override the resource name. The second snippet will then inject a new wait_condition to the existing one. When the deployment hits the wait_conditions loop, it will pass over the first one (since it's already done), and run the second condition until it ends. [1] openstack-k8s-operators/architecture#158
No description provided.