Howdy. I was just kicking the tires on the new YAML feature. I gave it a challenge: can it use a moderately complex Kubernetes Helm Chart manifest without major changes? Sadly, no.
My preparation process:
* Go to a random Kubernetes Helm chart (https://github.com/prometheus-operator/kube-prometheus.git), and grabbed https://github.com/prometheus-operator/kube-prometheus.git/manifests/grafana-deployment.yaml
* Validate it in a YAML Validator at https://yamlvalidator.com/
* Put "@startyaml" at the beginning of the file, and "@endyaml" at the end - no other changes.
* Run "plantuml -v' and see:
PlantUML version 1.2021.00 (Sun Jan 10 05:25:05 EST 2021)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Default Encoding: UTF-8
Language: en
Country: US
PLANTUML_LIMIT_SIZE: 4096
Dot version: dot - graphviz version 2.44.1 (20200629.0846)
Installation seems OK. File generation OK
* Then, after renaming the file, run 'plantuml grafana-deployment.plantuml', and see
$ plantuml grafana-deployment.plantuml
java.lang.UnsupportedOperationException: app.kubernetes.io/component: grafana
at net.sourceforge.plantuml.yaml.SimpleYamlParser.parseSingleLine(SimpleYamlParser.java:182)
at net.sourceforge.plantuml.yaml.SimpleYamlParser.parse(SimpleYamlParser.java:68)
at net.sourceforge.plantuml.yaml.YamlDiagramFactory.createSystem(YamlDiagramFactory.java:70)
at net.sourceforge.plantuml.PSystemBuilder.createPSystem(PSystemBuilder.java:134)
at net.sourceforge.plantuml.BlockUml.getDiagram(BlockUml.java:163)
at net.sourceforge.plantuml.SourceFileReaderAbstract.getGeneratedImages(SourceFileReaderAbstract.java:149)
at net.sourceforge.plantuml.Run.manageFileInternal(Run.java:538)
at net.sourceforge.plantuml.Run.processArgs(Run.java:422)
at net.sourceforge.plantuml.Run.manageAllFiles(Run.java:389)
at net.sourceforge.plantuml.Run.main(Run.java:198)
I tried to also run it in the online plantuml server
here. Happy to provide more info. Thank you for PlantUML! :)