vmware-tanzu-labs / educates-training-platform

A platform for hosting interactive workshop environments in Kubernetes, or on top of a local container runtime.
https://docs.educates.dev
Apache License 2.0
63 stars 14 forks source link

Changes in local and platform set of commands #461

Closed jorgemoralespou closed 1 week ago

jorgemoralespou commented 1 week ago

New command group local for everything that has to do with local development cluster setup, that is cluster creation, registry, secrets, resolver and config

Cluster creation uses --local-config or --config to provide a configuration file. Will always sync the secrets and augment the configuration.

New command to view configuration for the platform, instead of --show-packages values in admin platform deploy, there's now a admin platform config view that also can show the config in the cluster with educates admin platform values --from-cluster

Added some examples to the commands and refactored some code for better reusability.

There's the option to use NULL as keyword for --config flag to use the default/empty configuration for kind (nip.io and default packages)

Closes #431 Closes #432

netlify[bot] commented 1 week ago

Deploy Preview for educates-docs ready!

Built without sensitive environment variables

Name Link
Latest commit 7b6516f71c4b26cd4a84f95f90e697b78fefb599
Latest deploy log https://app.netlify.com/sites/educates-docs/deploys/6674785e73fd3c000874e477
Deploy Preview https://deploy-preview-461--educates-docs.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

GrahamDumpleton commented 1 week ago

Not sure I see the need for special --config NULL when running educates local config view. When would you want this?

Not exactly the same result, but can use:

educates local config view --config <( echo '{"clusterInfrastructure":{"provider":"kind"}}')

or:

educates admin platform values --config <( echo '{"clusterInfrastructure":{"provider":"kind"}}')
GrahamDumpleton commented 1 week ago

Going to merge so can do build. Deal with NULL config question after.