Skip to content

Bug: bake fails when Helm Chart source file contains leading (SPDX copyright header) comments #117

@edgarvonk

Description

@edgarvonk

What happened?

We want our Helm Chart source files to start with SPDX Copyright header files like:

#
# SPDX-FileCopyrightText: 2024 XXX
# SPDX-License-Identifier: EUPL-1.2+
#

apiVersion: v1
kind: ServiceAccount
[..]

However when we add these to our files the azure/k8s-bake@v3 fails to bake the Helm Chart because it incorrectly prepends the first line after the comments with a # like so:

# Source: templates/serviceaccount.yaml
#
# SPDX-FileCopyrightText: 2024 XXX
# SPDX-License-Identifier: EUPL-1.2+
#apiVersion: v1
kind: ServiceAccount

This seems a bug to me because comments in Helm Chart yaml files are quite normal and should be supported I think?

Version

  • I am using the latest version

Runner

ubuntu-latest

Relevant log output

---
# Source: zaakafhandelcomponent/templates/serviceaccount.yaml
#
# SPDX-FileCopyrightText: 2022 Atos, 2024 Lifely
# SPDX-License-Identifier: EUPL-1.2+
#apiVersion: v1
kind: ServiceAccount

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions