kudobuilder / kudo

Kubernetes Universal Declarative Operator (KUDO)
https://kudo.dev
Apache License 2.0
1.17k stars 103 forks source link

kubectl kudo package create fails verification of child KudoOperators parameter files #1772

Closed akirillov closed 3 years ago

akirillov commented 3 years ago

What happened: I have a KudoOperator task defined as following:

  - name: child
    kind: KudoOperator
    spec:
      package: "../components/child"
      parameterFile: child-params.yaml

And the following parameter file child-params.yaml:

someChildParameter: "{{ .Params.someChildParameter }}"

When I run kubectl kudo package create I'm unable to proceed due to the following error:

Warnings
template "child-params.yaml" is not referenced from any task

Errors
parsing rendered YAML from child-params.yaml failed: decoding chunk "someChildParameter: \"true\"" failed: error unmarshaling JSON: while decoding JSON: Object 'Kind' is missing in '{"someChildParameter":"true"}'

What you expected to happen: I expect the verification to skip parameter files or have a documented schema for them if kind is necessary.

How to reproduce it (as minimally and precisely as possible): See the description

Anything else we need to know?: N/A Environment: