Skip to content

Commit

Permalink
Fix custom dashboard yaml parsing (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrfox authored Oct 24, 2023
1 parent 7657327 commit 4b4e941
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion roles/default/kiali-deploy/tasks/snake_camel_case.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
{% set kiali_vars=kiali_vars | combine({'deployment': {'affinity': {'pod': current_cr.spec.deployment.affinity.pod }}}, recursive=True) %}
{% endif %}
{# #}
{# custom_dashboards #}
{% if kiali_vars.custom_dashboards is defined and kiali_vars.custom_dashboards | length > 0 %}
{% set _=kiali_vars.pop('custom_dashboards') %}
{% set kiali_vars=kiali_vars | combine({'custom_dashboards': current_cr.spec.custom_dashboards }, recursive=True) %}
{% endif %}
{# #}
{# deployment.affinity.pod_anti #}
{% if kiali_vars.deployment.affinity is defined and kiali_vars.deployment.affinity.pod_anti is defined and kiali_vars.deployment.affinity.pod_anti | length > 0 %}
{% set _=kiali_vars['deployment']['affinity'].pop('pod_anti') %}
Expand Down Expand Up @@ -119,4 +125,4 @@
{% set kiali_vars=kiali_vars | combine({'deployment': {'security_context': current_cr.spec.deployment.security_context}}, recursive=True) %}
{% endif %}
{# #}
{{ kiali_vars }}
{{ kiali_vars }}
8 changes: 7 additions & 1 deletion roles/v1.73/kiali-deploy/tasks/snake_camel_case.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
{% set kiali_vars=kiali_vars | combine({'deployment': {'affinity': {'pod': current_cr.spec.deployment.affinity.pod }}}, recursive=True) %}
{% endif %}
{# #}
{# custom_dashboards #}
{% if kiali_vars.custom_dashboards is defined and kiali_vars.custom_dashboards | length > 0 %}
{% set _=kiali_vars.pop('custom_dashboards') %}
{% set kiali_vars=kiali_vars | combine({'custom_dashboards': current_cr.spec.custom_dashboards }, recursive=True) %}
{% endif %}
{# #}
{# deployment.affinity.pod_anti #}
{% if kiali_vars.deployment.affinity is defined and kiali_vars.deployment.affinity.pod_anti is defined and kiali_vars.deployment.affinity.pod_anti | length > 0 %}
{% set _=kiali_vars['deployment']['affinity'].pop('pod_anti') %}
Expand Down Expand Up @@ -119,4 +125,4 @@
{% set kiali_vars=kiali_vars | combine({'deployment': {'security_context': current_cr.spec.deployment.security_context}}, recursive=True) %}
{% endif %}
{# #}
{{ kiali_vars }}
{{ kiali_vars }}

0 comments on commit 4b4e941

Please sign in to comment.