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

Crash: copyFrom[0][targetPath] is not allowed to be empty #5218

Closed
stefreak opened this issue Oct 9, 2023 · 0 comments · Fixed by #5234
Closed

Crash: copyFrom[0][targetPath] is not allowed to be empty #5218

stefreak opened this issue Oct 9, 2023 · 0 comments · Fixed by #5234

Comments

@stefreak
Copy link
Member

stefreak commented Oct 9, 2023

Crash report

Error message

Error processing config for Build action remote-source:
Configure handler for exec Build set a templated value on a config field which could not be resolved. This may be a bug in the plugin, please report this. Error: Error: Error validating exec Build remote-source 'remote-source':
copyFrom[0][targetPath] is not allowed to be empty

What did you do?

Ran garden build remote-source with this config (Requires a directory called kustomization with a .yaml file inside, e.g. kustomization.yaml. The contents do not matter.

kind: Build
type: exec
name: remote-source
dependencies:
 - build.kustomization
copyFrom:
  - build: kustomization
    sourcePath: kustomization
source:
  repository:
    url: https://github.com/prometheus-operator/kube-prometheus.git#3fff8b56097778f1491edba968aee3cfbd5652ef
---
# Combine the dashboards we need with the kustomization we need
kind: Build
type: exec
name: kustomization
include:
 - kustomization/**/*.yaml

Your environment

  • OS: macos
  • How I'm running Kubernetes: orbstack
  • Garden version: 0.13.17

Frequency

Reproducable

Workaround

Define the targetPath

Additional context

According to the docs, the targetPath is optional: https://docs.garden.io/reference/action-types/build/exec#copyfrom-.targetpath

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