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

Don't work with multiple files #10

Open
jianzs opened this issue Nov 10, 2023 · 0 comments
Open

Don't work with multiple files #10

jianzs opened this issue Nov 10, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jianzs
Copy link

jianzs commented Nov 10, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

kubectl kcl run -f original.yaml kcl.yaml

I have a bunch of YAML files and I want to make changes to all of them using kcl. So, I created a KCL object in a YAML file called kcl.yaml. Then, I tried running kubectl kcl run with multiple YAML files. Unfortunately, it didn't work out as expected. It seems like this command doesn't support this use case.

$ kubectl kcl run --help
Run KCL codes.

Usage:
  kcl run [flags]

Flags:
  -f, --filename string   input kcl spec file to pass to kubectl kcl
  -h, --help              help for run
  -o, --output string     output yaml path, default is stdout

2. What did you expect to see? (Required)

The YAML content has been modified.

3. What did you see instead (Required)

Doesn't work.

4. What is your KCL components version? (Required)

  • kubectl-kcl 0.4.0
  • kcl 0.5.3
@jianzs jianzs added the bug Something isn't working label Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant