Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error encountered during apko build with stakater-reloader.yaml #1477

Open
Ailsa-Wu opened this issue Jan 14, 2025 · 0 comments
Open

Error encountered during apko build with stakater-reloader.yaml #1477

Ailsa-Wu opened this issue Jan 14, 2025 · 0 comments

Comments

@Ailsa-Wu
Copy link

Description

I encountered an error when trying to build an image using apko with the configuration file found at: https://github.com/wolfi-dev/os/blob/main/stakater-reloader.yaml. The error seems related to unrecognized fields in the YAML configuration.

Steps to Reproduce

  1. Clone the configuration file from stakater-reloader.yaml.

  2. Run the following Docker command:

    docker run --rm -v ${PWD}:/work -w /work cgr.dev/chainguard/apko build wolfi-reloader-apko.yaml wolfi-reloader:test wolfi-reloader.tar
  3. The following error is returned:

    Error: failed to load image configuration: failed to parse image configuration: yaml: unmarshal errors:
      line 1: field package not found in type types.ImageConfiguration
      line 11: cannot unmarshal !!map into string
      line 17: field pipeline not found in type types.ImageConfiguration
      line 33: field subpackages not found in type types.ImageConfiguration
      line 42: field update not found in type types.ImageConfiguration
      line 49: field test not found in type types.ImageConfiguration
    

Additionally, when attempting to use the --debug flag, the following error occurs:

Error: unknown flag: --debug

Environment

  • apko version: 0.22.6
  • GitCommit: 995ee5a
  • GoVersion: go1.23.4
  • Platform: linux/arm64
  • Docker command executed on: [Your OS and version, e.g., Ubuntu 20.04]

Expected Behavior

The apko build command should properly parse the provided YAML configuration and begin the build process without errors.

Actual Behavior

The command fails with the aforementioned unmarshal errors, indicating unrecognized fields and an unknown flag.

Additional Context

Please let me know if there's a newer configuration template or documentation update that might resolve these issues. Any suggestions or workarounds are appreciated.

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

No branches or pull requests

1 participant