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

Can't deploy an actions-only Zarf package pulled from an OCI registry #1963

Closed
UncleGedd opened this issue Aug 10, 2023 · 0 comments · Fixed by #1973
Closed

Can't deploy an actions-only Zarf package pulled from an OCI registry #1963

UncleGedd opened this issue Aug 10, 2023 · 0 comments · Fixed by #1973
Assignees

Comments

@UncleGedd
Copy link
Contributor

UncleGedd commented Aug 10, 2023

Environment

Device and OS: Mac m1
App version: v0.28.3

Steps to reproduce

Given the following zarf.yaml:

kind: ZarfPackageConfig
metadata:
  name: no-cluster-pkg
  version: 0.0.1

variables:
  - name: COUNTRY
    default: Scotland
components:
  - name: echo
    required: true
    actions:
      onDeploy:
        before:
          - cmd: echo "Unicorns are the national animal of "${ZARF_VAR_COUNTRY}""
  1. Build the Zarf pkg and push to an OCI registry
  2. Pull the pkg down and deploy

Expected result

The package deploys successfully!

Actual Result

Pulling the Zarf pkg down and running zarf p deploy zarf-package-no-cluster-pkg-arm64-0.0.1.tar.zst yields:

ERROR:  Failed to deploy package: unable to load the Zarf Package: unable to get a list of components...
             open /var/folders/sf/_jrk8zgs5tg33r_h1gzh_6t40000gn/T/zarf-2374842217/components: no such file or
             directory

Additional Context

  • At some point in the OCI reg, the components folder is removed from the Zarf pkg because it is an empty folder that a digest can't be computed for, so it's left out of the Zarf tarball artifact.
  • Noting that the error comes from here
@cmwylie19 cmwylie19 self-assigned this Aug 10, 2023
@Noxsios Noxsios linked a pull request Aug 15, 2023 that will close this issue
1 task
Noxsios added a commit that referenced this issue Aug 15, 2023
## Related Issue

Fixes #1963 

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

---------

Signed-off-by: razzle <harry@razzle.cloud>
Co-authored-by: Wayne Starr <Racer159@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants