From 762f48aca128188da9981aa5ff973176109e0cf5 Mon Sep 17 00:00:00 2001 From: Carlisia Date: Tue, 17 Mar 2020 07:29:56 -0700 Subject: [PATCH] Handle GitOps Signed-off-by: Carlisia --- design/cli-install-changes.md | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/design/cli-install-changes.md b/design/cli-install-changes.md index 997893eb1..635c5521a 100644 --- a/design/cli-install-changes.md +++ b/design/cli-install-changes.md @@ -343,11 +343,29 @@ WIP #### GitOps Compatibility -WIP +To maintain compatibility with gitops practices, each of the new commands will generate `yaml` output that can be stored in source control. -#### CRDs +For content examples, please refer to the files here: -WIP +https://github.com/carlisia/velero/tree/c-cli-design/design/CLI/PoC + +Note: actual `yaml` file names are defined by the user. + +`velero config server` - base/deployment.yaml + +`velero config restic` - overlays/plugins/restic.yaml + +`velero backup-location create` - base/backupstoragelocations.yaml + +`velero snapshot-location create` - base/volumasnapshotlocations.yaml + +`velero plugin add velero/velero-plugin-for-aws:v1.0.1` - overlays/plugins/aws-plugin.yaml + +`velero plugin add velero/velero-plugin-for-microsoft-azure:v1.0.1` - overlay/plugins/azure-plugin.yaml + +These files can be deployed using the included kustomize setup by running `k apply -k design/CLI/PoC/overlays/plugins/`. + +Note: All CRDs, including the `ResticRepository`, may continue to be deployed at startup as it is now, or together with their respective instantiation. ## Alternatives Considered