zarf icon indicating copy to clipboard operation
zarf copied to clipboard

Choosing 'auth' as ZarfPackageConfig component name will break deploy

Open NunoSav opened this issue 6 months ago • 1 comments

Environment

Device and OS: MBP M3, macOS 15.5 App version: 0.56.0

Steps to reproduce

  1. Create zarf.yaml and paste:
kind: ZarfPackageConfig
metadata:
  name: auth
  description: "Package bug reproduction"

components:
  - name: auth
    required: true
    charts:
      - name: app-template
        version: 3.6.1
        url: https://bjw-s-labs.github.io/helm-charts
        namespace: dti
        releaseName: auth
        valuesFiles:
          - values.yaml
    images:
      - busybox:stable
  1. Create values.yaml in same folder and paste:
controllers:
  auth:
    strategy: RollingUpdate
    containers:
      appauth:
        nameOverride: "auth"
        image:
          repository: "busybox"
          tag: "stable"
          pullPolicy: IfNotPresent

service:
  appauth:
    controller: auth
    ports:
      http:
        port: 8080
  1. Run zarf package create .
  2. Run either zarf package deploy <package_name> or zarf package inspect values-files <package_name>

Expected result

successful output

Actual Result

unable to decompress: extracting "/var/folders/h7/hp1475d95m5f5263t8rdv83w0000gn/T/zarf-274063970/components/auth.tar": archive/tar: invalid tar header

Visual Proof (screenshots, videos, text, etc)

Image

Severity/Priority

Additional Context

Changing the components name to something else fixes the issue.

NunoSav avatar Jun 17 '25 15:06 NunoSav

Hey @NunoSav thanks for sending up this bug report and repro steps. Once the maintainers team has a chance to triage it we'll update the issue.

mkcp avatar Jun 17 '25 16:06 mkcp