Skip to content

Commit daa7918

Browse files
rebtooramartyasinha
authored andcommitted
[kustomize_deploy]: Fix InstallPlan approval when deployment_version is empty
Check both 'is defined' and 'length > 0' for deployment_version so empty strings correctly fall through to approve any unapproved manual InstallPlan instead of filtering for 'openstack-operator.' (no version). Signed-off-by: Roberto Alfieri <ralfieri@redhat.com>
1 parent ac8c7aa commit daa7918

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

roles/kustomize_deploy/tasks/install_plan.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
register: _cifmw_kustomize_deploy_install_plans
2929
until: >
3030
(
31-
cifmw_ci_gen_kustomize_values_deployment_version is defined
31+
cifmw_ci_gen_kustomize_values_deployment_version is defined and
32+
cifmw_ci_gen_kustomize_values_deployment_version | length > 0
3233
) | ternary(
3334
(
3435
_cifmw_kustomize_deploy_install_plans.resources |
@@ -52,7 +53,8 @@
5253
_cifmw_kustomize_deploy_installplan_name: >-
5354
{{
5455
(
55-
cifmw_ci_gen_kustomize_values_deployment_version is defined
56+
cifmw_ci_gen_kustomize_values_deployment_version is defined and
57+
cifmw_ci_gen_kustomize_values_deployment_version | length > 0
5658
) | ternary(
5759
(
5860
_cifmw_kustomize_deploy_install_plans.resources
@@ -76,7 +78,8 @@
7678
_selected_installplan: >-
7779
{{
7880
(
79-
cifmw_ci_gen_kustomize_values_deployment_version is defined
81+
cifmw_ci_gen_kustomize_values_deployment_version is defined and
82+
cifmw_ci_gen_kustomize_values_deployment_version | length > 0
8083
) | ternary(
8184
(
8285
_cifmw_kustomize_deploy_install_plans.resources

0 commit comments

Comments
 (0)