Skip to content

Commit

Permalink
Merge pull request #2253 from ks-ci-bot/cherry-pick-2251-to-release-3.4
Browse files Browse the repository at this point in the history
[release-3.4] Fix the bug of too many spaces in an array
  • Loading branch information
ImitationImmortal committed Oct 30, 2023
2 parents d9812ad + 90eeaff commit 6291524
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions roles/common/templates/custom-values-opensearch-data.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -260,20 +260,20 @@ imagePullSecrets: []

{% if common.opensearch.nodeSelector is defined and common.opensearch.nodeSelector is not none %}
nodeSelector:
{{ common.opensearch.nodeSelector | to_nice_yaml(indent=2) | indent(4) }}
{{ common.opensearch.nodeSelector | to_nice_yaml(indent=2) | indent(2) }}
{% elif nodeSelector is defined and nodeSelector is not none %}
nodeSelector:
{{ nodeSelector | to_nice_yaml(indent=2) | indent(4) }}
{{ nodeSelector | to_nice_yaml(indent=2) | indent(2) }}
{% else %}
nodeSelector: {}
{% endif %}

{% if common.opensearch.tolerations is defined and common.opensearch.tolerations is not none %}
tolerations:
{{ common.opensearch.tolerations | to_nice_yaml(indent=2) | indent(4) }}
{{ common.opensearch.tolerations | to_nice_yaml(indent=2) | indent(2) }}
{% elif tolerations is defined and tolerations is not none %}
tolerations:
{{ tolerations | to_nice_yaml(indent=2) | indent(4) }}
{{ tolerations | to_nice_yaml(indent=2) | indent(2) }}
{% else %}
tolerations: []
{% endif %}
Expand Down
12 changes: 6 additions & 6 deletions roles/common/templates/custom-values-opensearch-master.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ antiAffinityTopologyKey: "kubernetes.io/hostname"
antiAffinity: "soft"


{% if common.es.nodeAffinity is defined and common.es.nodeAffinity is not none %}
{% if common.opensearch.nodeAffinity is defined and common.opensearch.nodeAffinity is not none %}
nodeAffinity:
{{ common.opensearch.nodeAffinity | to_nice_yaml(indent=2) | indent(4) }}
{{ common.opensearch.nodeAffinity | to_nice_yaml(indent=2) | indent(2) }}
{% else %}
nodeAffinity: {}
{% endif %}
Expand Down Expand Up @@ -282,20 +282,20 @@ schedulerName: ""
imagePullSecrets: []
{% if common.opensearch.nodeSelector is defined and common.opensearch.nodeSelector is not none %}
nodeSelector:
{{ common.opensearch.nodeSelector | to_nice_yaml(indent=2) | indent(4) }}
{{ common.opensearch.nodeSelector | to_nice_yaml(indent=2) | indent(2) }}
{% elif nodeSelector is defined and nodeSelector is not none %}
nodeSelector:
{{ nodeSelector | to_nice_yaml(indent=2) | indent(4) }}
{{ nodeSelector | to_nice_yaml(indent=2) | indent(2) }}
{% else %}
nodeSelector: {}
{% endif %}

{% if common.opensearch.tolerations is defined and common.opensearch.tolerations is not none %}
tolerations:
{{ common.opensearch.tolerations | to_nice_yaml(indent=2) | indent(4) }}
{{ common.opensearch.tolerations | to_nice_yaml(indent=2) | indent(2) }}
{% elif tolerations is defined and tolerations is not none %}
tolerations:
{{ tolerations | to_nice_yaml(indent=2) | indent(4) }}
{{ tolerations | to_nice_yaml(indent=2) | indent(2) }}
{% else %}
tolerations: []
{% endif %}
Expand Down

0 comments on commit 6291524

Please sign in to comment.