/srv/irclogs.ubuntu.com/2021/10/15/#cloud-init.txt

akutzDoes anyone here know of any Cloud-Init userdata validators/models for Golang or Typescript?16:17
hgtunafishHello! Does anyone know if there is a publicly available JSON schema for the cloud-config format?16:27
hgtunafishI can see that there is code (found in <https://github.com/canonical/cloud-init/blob/main/cloudinit/config/schema.py>) that generates a JSON schema when files are being validated, but I don't see a published JSON schema file that could be consumed by an IDE. 16:28
akutzhgtunafish: That's so funny, I literally just asked the same question for Golang and/or Typescript :) 16:58
akutz(kind of)16:59
akutzThere's https://github.com/pulumi/pulumi-cloudinit, but it's focused on the mime format, not the cloud-config.16:59
akutzAlso, you'd need to know the specific cloud-init version for such a schema.17:00
blackboxswhgtunafish. that is an idea this is on Canonical's roadmap for next cycle (within 6 months) Since the JSON schema definitions are not yet covering all cloud-config modules we can't produce a full schema yet to allow for validation. We are hoping we get the commitment for this next cycle or work to make that a reality for #cloud-config validation18:15

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!