edgelesssys / contrast

Deploy and manage confidential containers on Kubernetes
https://docs.edgeless.systems/contrast
GNU Affero General Public License v3.0
161 stars 6 forks source link

cli: error checking for struct fields #547

Closed davidweisse closed 3 weeks ago

davidweisse commented 3 weeks ago

During contrast generate, the parsed YAML file is not guaranteed to be valid. This checks for all struct fields that are necessary for the generation process if they are nil or not, to avoid runtime panics on an invalid YAML file.

katexochen commented 3 weeks ago

Should we lable this as bug fix? Or put it otherwise in the changelog, I think it is a nice improvement we don't panic on unexpected yaml anymore. :)