Skip to content

Using --- in a | block leads to deployment failure #5076

@mschroeder-fzj

Description

@mschroeder-fzj

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When using --- in a | block the deployment can fail with mapping values are not allowed in this context.

The | block section is checked as YAML instead of read as a string, leading to the line echo "----------" being interpreted as document separator.

Expected Behavior

The content in the | block gets interpreted as string.

Steps To Reproduce

In a Helm Chart create something like:

apiVersion: v1
kind: ConfigMap
metadata:
  name: example-script
data:
  script.sh: |-
    #!/bin/sh
    set -e
    echo "----------"
    echo "text: Hello World"

Environment

- Architecture: amd64
- Fleet Version: 0.15.1
- Cluster:
  - Provider: rke2
  - Kubernetes Version: v1.34.7+rke2r1

Logs

Anything else?

The issue only happend after updateing to version 0.15, in previous version this worked as intended.

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

Status

Blocked

Relationships

None yet

Development

No branches or pull requests

Issue actions