Skip to content

fix: GenerateKubeYAML and GeneratePodmanVolumes should return error #17

@pavelanni

Description

@pavelanni

From code review of PR #15.

GenerateKubeYAML and GeneratePodmanVolumes in pkg/collection/collection.go take io.Writer but call fmt.Fprintf without checking the returned error. As library functions, they should return error so callers can handle write failures.

Current: func GenerateKubeYAML(w io.Writer, col *SkillCollection, mountRoot string)
Proposed: func GenerateKubeYAML(w io.Writer, col *SkillCollection, mountRoot string) error

Low risk since CLI callers write to stdout, but correct for library consumers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions