79347135

Date: 2025-01-10 22:06:35
Score: 2
Natty:
Report link

Thanks to @vladimir-botka's hint mentioning the template lookup plugin is a string, I figured an easy fix:

storage:
  accessModes:
    {{ modes | to_nice_yaml | trim | indent(4) }}
  resources:
    requests:
      storage: 5Gi

The trim takes care of the problematic code output:

ok: [localhost] =>
  msg: |-
    storage:
      accessModes:
        - ReadWriteOnce
      resources:
        requests:
          storage: 50Gi
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • User mentioned (1): @vladimir-botka's
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Floren