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

Kapitan fails to compile with compose_node_name: true #972

Closed
ademariag opened this issue Mar 20, 2023 · 0 comments
Closed

Kapitan fails to compile with compose_node_name: true #972

ademariag opened this issue Mar 20, 2023 · 0 comments
Assignees

Comments

@ademariag
Copy link
Contributor

Describe the bug/feature
When using #933 and compose_node_name: true, kapitan fails to compile when targeting individual target or labels

/kapitan compile -t test.dev
Rendered inventory (0.24s)
Compiled test.dev (0.12s)

Unknown (Non-Kapitan) error occurred:
Traceback (most recent call last):
  File "/opt/venv/lib/python3.7/site-packages/kapitan/targets.py", line 179, in compile_targets
    shutil.copytree(temp_path_target, compile_path_target)
  File "/usr/local/lib/python3.7/shutil.py", line 318, in copytree
    names = os.listdir(src)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpufn67nog.kapitan/compiled/test.dev'

To Reproduce
Steps to reproduce the behavior:

  1. Enable compose_node_name: true following add compile option compose-node-name #933
  2. run kapitan compile -t target_name
  3. crash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants