kubeshop / monokle-cli

CLI for Monokle core validation library
20 stars 3 forks source link

Allow more control over how and when remote policies are synchronized #17

Open f1ames opened 1 year ago

f1ames commented 1 year ago

We would like to allow users to have more control over how and when remote policies are synchronized

One of the solutions will be introducing sync command:

Maybe we should have an explicit command monokle sync projectId similar to VSC which pulls in the policies in local dir.

The extended workflow would be monokle auth && monokle sync $projectId && monokle validate --config $projectId. But now we start providing shortcuts for that monokle auth && monokle validate --config $projectId where we indicate that projectId will be automatically re-sync. You can opt-out if you use monokle validate --config $projectId --no-sync.

I think the benefit is a short tutorial is clear and explicit how it works under the hood; that you can go and check that directory for all your policies etc; but then we provide the easy use sugar on top for daily usage