arlon icon indicating copy to clipboard operation
arlon copied to clipboard

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

Open cre8minus1 opened this issue 2 years ago • 1 comments

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

cre8minus1 avatar Jun 03 '22 01:06 cre8minus1

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.

bcle avatar Jun 23 '22 01:06 bcle