Skip to content

Commit

Permalink
Merge pull request #2059 from junotx/fix-prom-indent
Browse files Browse the repository at this point in the history
fix prometheus nodeSelector indent
  • Loading branch information
ks-ci-bot committed Aug 5, 2022
2 parents c1e9df5 + 9bbedfd commit fbaf071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/ks-monitor/templates/prometheus-prometheus.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ spec:
app.kubernetes.io/version: {{ prometheus_tag | replace("v", "") }}
{% if monitoring.nodeSelector is defined and monitoring.nodeSelector is not none %}
nodeSelector:
{{ monitoring.nodeSelector | to_nice_yaml(indent=2) | indent(8) }}
{{ monitoring.nodeSelector | to_nice_yaml(indent=2) | indent(4) }}
{% elif nodeSelector is defined and nodeSelector is not none %}
nodeSelector:
{{ nodeSelector | to_nice_yaml(indent=2) | indent(8) }}
{{ nodeSelector | to_nice_yaml(indent=2) | indent(4) }}
{% else %}
nodeSelector:
kubernetes.io/os: linux
Expand Down

0 comments on commit fbaf071

Please sign in to comment.