Skip to content

UDS bundle fails to create with optionalComponent (k3s for zarf init package) #1318

@MxNxPx

Description

@MxNxPx

Environment

Device and OS: OS: macOS 26.2 arm64
App version: v0.28.0 and v0.28.1
Kubernetes distro being used: N/A
Other:

Steps to reproduce

When using v0.28.0 or v0.28.1 of the UDS cli, a bundle containing the zarf init package with the optional component for k3s fails.

# verify UDS cli version 0.28.0 or 0.28.1
uds version

# define a UDS bundle yaml
cat <<'EOF'>./uds-bundle.yaml
kind: UDSBundle
metadata:
  name: test
  version: 0.1.0
packages:
  - name: init
    repository: ghcr.io/zarf-dev/packages/init
    ref: v0.71.1
    optionalComponents:
      - k3s
EOF

# attempt creating the UDS bundle - fails
uds create --confirm -l debug

# revert to older UDS cli version
brew uninstall uds
brew install defenseunicorns/tap/uds@0.27.21
brew pin defenseunicorns/tap/uds@0.27.21
brew list --pinned

# reattempt creating the UDS bundle - succeeds
uds create --confirm -l debug

Expected result

# uds create --confirm -l debug -a amd64
2026-02-12 11:11:11 DBG logger successfully initialized cfg.level=debug cfg.format=console cfg.destination=os.Stderr cfg.color=true

 NOTE  Saving log file to
       /var/folders/vp/x2g345_n1yx6fzx501q1k5rc0000gp/T/uds-2026-02-12-11-11-11-762410191.log
2026-02-12 11:11:11 INF Creating bundle...
  DEBUG   2026-02-12T11:11:11-05:00  -  bundler.New({
            "CreateOpts": {
              "SourceDirectory": "/Users/palassis/code/scratch/uds-cli-issue",
              "Output": "",
              "SigningKeyPath": "",
              "SigningKeyPassword": "",
              "BundleFile": "uds-bundle.yaml",
              "Version": "",
              "Name": ""
            },
            "DeployOpts": {
              "Resume": false,
              "Source": "",
              "Config": "",
              "Packages": [],
              "PublicKeyPath": "",
              "setVariables": null,
              "Variables": null,
              "SharedVariables": null,
              "Retries": 3,
              "Options": null
            },
            "PublishOpts": {
              "Source": "",
              "Destination": "",
              "Version": ""
            },
            "PullOpts": {
              "OutputDirectory": "",
              "PublicKeyPath": "",
              "Source": ""
            },
            "InspectOpts": {
              "PublicKeyPath": "",
              "Source": "",
              "IncludeSBOM": false,
              "ExtractSBOM": false,
              "ListImages": false,
              "ListVariables": false,
              "IsYAMLFile": false
            },
            "RemoveOpts": {
              "Source": "",
              "Packages": []
            },
            "DevDeployOpts": {
              "FlavorInput": "",
              "Flavor": null,
              "ForceCreate": false,
              "Ref": {}
            }
          })
  DEBUG   2026-02-12T11:11:11-05:00  -  Reading YAML at /Users/palassis/code/scratch/uds-cli-issue/uds-bundle.yaml


  🎁 BUNDLE DEFINITION


kind: UDSBundle
metadata:
  name: test
  version: 0.1.0
packages:
- name: init
  repository: ghcr.io/zarf-dev/packages/init
  ref: v0.71.1
  optionalComponents:
  - k3s

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  DEBUG   2026-02-12T11:11:13-05:00  -  Validating package: {
            "name": "init",
            "repository": "ghcr.io/zarf-dev/packages/init",
            "ref": "v0.71.1",
            "optionalComponents": [
              "k3s"
            ]
          }
  ✔  Bundle Validated


  🐕 Fetching Packages

  DEBUG   2026-02-12T11:11:13-05:00  -  Bundling test to /var/folders/vp/x2g345_n1yx6fzx501q1k5rc0000gp/T/zarf-1869665163
  ⠹  Fetching init package layer metadata (package 1 of 1) (0s)
  ✔  Fetched package: init

  🚧 Building Bundle

  DEBUG   2026-02-12T11:11:17-05:00  -  Pushed uds-bundle.yaml: {
            "mediaType": "application/vnd.zarf.layer.v1.blob",
            "digest": "sha256:4ea99417bdb6d6f4162a38c9150c43f66a1ddbe324954d395dd2c71c85d77461",
            "size": 397,
            "annotations": {
              "org.opencontainers.image.title": "uds-bundle.yaml"
            }
          }
  ✔  Created bundle archive at: /Users/palassis/code/scratch/uds-cli-issue/uds-bundle-test-arm64-0.1.0.tar.zst

Actual Result

# uds create --confirm -l debug -a amd64
2026-02-12 11:22:38 DBG logger successfully initialized cfg.level=debug cfg.format=console cfg.destination=os.Stderr cfg.color=true

 NOTE  Saving log file to
       /var/folders/vp/x2g345_n1yx6fzx501q1k5rc0000gp/T/uds-2026-02-12-11-22-38-1582340170.log
2026-02-12 11:22:38 INF Creating bundle...
  DEBUG   2026-02-12T11:22:38-05:00  -  bundler.New({
            "CreateOpts": {
              "SourceDirectory": "/Users/palassis/code/scratch/uds-cli-issue",
              "Output": "",
              "SigningKeyPath": "",
              "SigningKeyPassword": "",
              "BundleFile": "uds-bundle.yaml",
              "Version": "",
              "Name": ""
            },
            "DeployOpts": {
              "Resume": false,
              "Source": "",
              "Config": "",
              "Packages": [],
              "PublicKeyPath": "",
              "setVariables": null,
              "Variables": null,
              "SharedVariables": null,
              "Retries": 3,
              "Options": null
            },
            "PublishOpts": {
              "Source": "",
              "Destination": "",
              "Version": ""
            },
            "PullOpts": {
              "OutputDirectory": "",
              "PublicKeyPath": "",
              "Source": ""
            },
            "InspectOpts": {
              "PublicKeyPath": "",
              "Source": "",
              "IncludeSBOM": false,
              "ExtractSBOM": false,
              "ListImages": false,
              "ListVariables": false,
              "IsYAMLFile": false
            },
            "RemoveOpts": {
              "Source": "",
              "Packages": []
            },
            "DevDeployOpts": {
              "FlavorInput": "",
              "Flavor": null,
              "ForceCreate": false,
              "Ref": {}
            }
          })
  DEBUG   2026-02-12T11:22:38-05:00  -  Reading YAML at /Users/palassis/code/scratch/uds-cli-issue/uds-bundle.yaml


  🎁 BUNDLE DEFINITION


kind: UDSBundle
metadata:
  name: test
  version: 0.1.0
packages:
- name: init
  repository: ghcr.io/zarf-dev/packages/init
  ref: v0.71.1
  optionalComponents:
  - k3s

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  DEBUG   2026-02-12T11:22:39-05:00  -  Validating package: {
            "name": "init",
            "repository": "ghcr.io/zarf-dev/packages/init",
            "ref": "v0.71.1",
            "optionalComponents": [
              "k3s"
            ]
          }
  ✔  Bundle Validated


  🐕 Fetching Packages

  DEBUG   2026-02-12T11:22:39-05:00  -  Bundling test to /var/folders/vp/x2g345_n1yx6fzx501q1k5rc0000gp/T/zarf-2071313314
  ⠸  Fetching package init (1s)
     ERROR:  failed to create bundle: error applying filter *filters.deploymentFilter: no compatible components found: k3s, suggestions ()

Visual Proof (screenshots, videos, text, etc)

Severity/Priority

Additional Context

Add any other context or screenshots about the technical debt here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    possible-bugSomething may not be working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions