arlonproj / arlon

A kubernetes cluster lifecycle management and configuration tool
Apache License 2.0
145 stars 14 forks source link

Arlon cli - Validation of Profile, Bundle, ClusterSpec when writing to Git #66

Open cre8minus1 opened 2 years ago

cre8minus1 commented 2 years ago

As an Arlon user leveraging the Create Profile and Create ClusterSpec commands to wtite to git I expect Arlon to validate the YAML prior to writing it to Git.

So that i do not hit issues when attempting to use the newly created profile.

Specifically I would like it to

Look for malformated YAML

Incorrect ClusterAPI CRDs or APIs based on the version of ClusterAPI in my managment cluster and the installed providers

Aha! Link: https://pf9.aha.io/features/ARLON-150

bcle commented 2 years ago

In 0.3.x, bundles, profiles and clusterspecs are not stored in the user's git. Instead, they are stored in secrets (bundles), configmaps (gen1 profiles, clusterspecs) and resources (gen2 profiles), and manipulated through the arlon CLI/Library. Dynamic profiles also have a "compiled" component that is arlon generates and stores in a "workspace git repo" that the user supplies, but the user is not supposed to manipulate the compiled content. So there isn't really anything to check or validate.