Skip to content

Commit

Permalink
OPS-0 Fix bug with deprecated parameter in indent filter (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
snovikov authored Oct 26, 2021
1 parent b70dc13 commit 1462f03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/cluster.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ spec:
insecureRegistry: 100.64.0.0/10
{% if 'kube_api_server' in cluster and cluster.kube_api_server %}
kubeAPIServer:
{{ cluster.kube_api_server | to_nice_yaml(indent=2) | indent(width=4, indentfirst=True) }}
{{ cluster.kube_api_server | to_nice_yaml(indent=2) | indent(width=4, first=True) }}
{% endif %}
{% if 'file_assets' in cluster and cluster.file_assets %}
fileAssets:
{{ cluster.file_assets | to_nice_yaml(indent=2) | indent(width=4, indentfirst=True) }}
{{ cluster.file_assets | to_nice_yaml(indent=2) | indent(width=4, first=True) }}
{% endif %}
{% if 'additionalPolicies' in cluster and cluster.additionalPolicies and
( 'node' in cluster.additionalPolicies and cluster.additionalPolicies.node or
'master' in cluster.additionalPolicies and cluster.additionalPolicies.master ) %}
additionalPolicies:
{% if 'node' in cluster.additionalPolicies and cluster.additionalPolicies.node %}
node: |
{{ cluster.additionalPolicies.node | from_json | to_nice_json(indent=2) | indent(width=6, indentfirst=True) }}
{{ cluster.additionalPolicies.node | from_json | to_nice_json(indent=2) | indent(width=6, first=True) }}
{% endif %}
{% if 'master' in cluster.additionalPolicies and cluster.additionalPolicies.master %}
master: |
{{ cluster.additionalPolicies.master | from_json | to_nice_json(indent=2) | indent(width=6, indentfirst=True) }}
{{ cluster.additionalPolicies.master | from_json | to_nice_json(indent=2) | indent(width=6, first=True) }}
{% endif %}
{% endif %}
etcdClusters:
Expand Down

0 comments on commit 1462f03

Please sign in to comment.