Implement export to YAML

- add export commands for git sources and kustomizations
- add export e2e tests
This commit is contained in:
stefanprodan
2020-04-30 00:12:16 +03:00
parent 6d590fe4d2
commit f127adc8ea
8 changed files with 233 additions and 1 deletions

View File

@ -38,6 +38,9 @@ var rootCmd = &cobra.Command{
# Trigger a git sync
tk sync source git webapp-latest
# Export git sources in YAML format
tk export source git --all > sources.yaml
# Create a kustomization for deploying a series of microservices
tk create kustomization webapp-dev \
--source=webapp-latest \
@ -56,6 +59,9 @@ var rootCmd = &cobra.Command{
# Suspend a kustomization reconciliation
tk suspend kustomization webapp-dev
# Export kustomizations in YAML format
tk export kustomization --all > kustomizations.yaml
# Resume a kustomization reconciliation
tk resume kustomization webapp-dev