Skip to content

Chart "raw": improve regex to split objects in input templates#39

Merged
Brawdunoir merged 14 commits into
AvistoTelecom:mainfrom
LeonoreMangold:patch-1
Apr 13, 2026
Merged

Chart "raw": improve regex to split objects in input templates#39
Brawdunoir merged 14 commits into
AvistoTelecom:mainfrom
LeonoreMangold:patch-1

Conversation

@LeonoreMangold

@LeonoreMangold LeonoreMangold commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

Issue found when trying to create a ConfigMap containing a certificate bundle with:

templates:
  - |
    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: se-ca-bundle
      labels:
        app.kubernetes.io/instance: kube-prometheus-stack
    data:
      se-ca-bundle.crt: {{ .Values.seCertBundle | quote }}

seCertBundle: |
  -----BEGIN CERTIFICATE-----
  xxx
  -----END CERTIFICATE-----

The "---" characters in the "-----BEGIN CERTIFICATE-----" are interpreted by the chart as a separator between distinct Kubernetes manifests, thus breaking the rendering of the ConfigMap.

@LeonoreMangold LeonoreMangold changed the title Chart "raw": fix regex to split objects in input templates Chart "raw": improve regex to split objects in input templates Mar 26, 2026
Neewolag
Neewolag previously approved these changes Apr 2, 2026
@LeonoreMangold

Copy link
Copy Markdown
Contributor Author

@Neewolag Sorry I had left an little mistake in my regex, I've just fixed it.

@Neewolag

Neewolag commented Apr 2, 2026

Copy link
Copy Markdown
Collaborator

Oh yes, that was a sneaky one

Neewolag
Neewolag previously approved these changes Apr 2, 2026
@Brawdunoir
Brawdunoir merged commit c322404 into AvistoTelecom:main Apr 13, 2026
3 checks passed
@LeonoreMangold
LeonoreMangold deleted the patch-1 branch April 13, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants