Skip to content

Support building multiple Kaniko variants (executor, debug, warmer) from single repository #3

@kingdonb

Description

@kingdonb

Priority: High (Required for complete Kaniko support)

Description:
Kaniko has multiple build targets in its Makefile (make images includes executor, debug, warmer, etc.) but the current directory-based system assumes one image per directory. Need to design enhanced build-config.yaml format to support multiple targets.

Current Limitation:

  • kaniko/ directory only builds debug variant
  • Need all Kaniko variants for complete replacement
  • Directory naming becomes awkward (kaniko-executor/, kaniko-debug/)

Proposed Solution:
Enhanced build-config.yaml with targets array:

upstream_repo: https://github.com/chainguard-dev/kaniko
upstream_ref: v1.25.3
dockerfile_path: deploy/Dockerfile

targets:
  - name: executor
    target: executor
    additional_tags: [latest, v1.25.3]
  - name: debug  
    target: debug
    additional_tags: [debug-latest, debug-v1.25.3]

Source Documents (for cleanup consideration):

  • /AGENTS.md - Lines 159-171 (Issue 3: Multi-Target Kaniko Builds)
  • /SPEC.md - Lines 160-180 (Kaniko-Specific Considerations)

Research Required:

  • Examine Kaniko Makefile structure
  • Identify all available build targets
  • Design matrix build job generation
  • Test with actual Kaniko repository

Acceptance Criteria:

  • Enhanced build-config.yaml format implemented
  • Multiple images generated from single repository
  • All Kaniko variants (executor, debug, warmer) buildable
  • Proper tagging for each variant
  • Multi-arch support for all variants

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions