Skip to content

Don't work with multiple files #10

@jianzs

Description

@jianzs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions