open-horizon / anax

Horizon agent control system
https://open-horizon.github.io/docs/anax/docs/
Apache License 2.0
70 stars 99 forks source link

Kubeworker should ignore the non-yaml file in the operator.tar.gz #4024

Open LiilyZhang opened 3 months ago

LiilyZhang commented 3 months ago

When reading the files inside operator.tar.gz, kubeworker should check the file format and ignore non-yaml files in this function:

https://github.com/open-horizon/anax/blob/5beeb53715a4b0978b6e0c6e78b0f397e9a28bff/kube_operator/client.go#L500

MaxMcAdam commented 3 months ago

Also maybe add yaml validation to the cli to check before tarring the provided folder that everything in it is valid yaml