Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print out GitSource from config repository on dry-run (#1320)
* Make dry-run in install working * write manifests to repo after applying them * Moving gitOpsWriter out of Install * Run raw flux install to get fancy progress logging * Removed creation of namespace as `flux install` already creates it * Removed unused osysClient parameter * Create namespace before creating git clients * Created new repoWriter layer to simplify the code Added function to convert from Manifest to CommitFile * Moving generation of manifests files to models folder. Removed AssociateCluster method from GitOpsDirectoryWriter * Pack all constants in the same place * Removed cluster_generator.go file * Removed unused constants * Added error paths unit tests for installer * Added missing files changes * Fixed lint issues * Added unit tests manifests functions * Added initial code for install success when auto-merge is true * Added rest of code for install success when auto-merge is true * Fix lint issues * Removed old install tests * Remove unused variables * Added success path for install when auto-merge is false * Added missing validate wego installation functionality * Use the right yaml library * Fixed yaml dependency * Added missing keep and source manifests and fixed unit tests * Fixed manifests order in unit tests * Fixed acceptance test "Verify that gitops quits if flux-system namespace is present" * Fixed `install --dry-run` it was printing out raw bytes instead of string Fixed regex on acceptance test * Fixed Kustomize file on unit test * Fixed Kustomize file on unit test * Fixed typo and added specif error matches * Clean up and fixed typo on assertion message * Made some lines more readable * Rename function CreateKustomize to CreateKustomization Co-authored-by: Jordan Pellizzari <jordan@weave.works> * Renamed function from GitopsConfigMap to CreateGitopsConfigMap * Fixed references to old function A function was renamed but their calls were not * Fixed references to old function A function was renamed but their calls were not * Initial work to get token and deploy key right before setting git clients This work could let us use flags to pass in some info like 1.- Secret names(in case they are already in the cluster) 2.- Deploy keys path. In case the user has the deploy key saved in a file 3.- Provider deploy key name. In case the user already has a deploy key in the provider. That we can later save to the cluster as secret. We would need to authenticate the first time to retrieve it. Instantiating git clients separately * Added source flux resource back to dry-run output * Fixed lint issues * Fixed references to old function A function was renamed but their calls were not * Use the right manifests when creating the PR * Fixed unit test it was not generating adding the wego app path to the kustomization of the expected file * Clean up comments * Updated comments * Fixed installer unit tests * Fixed manifests unit tests * Removed commented code * Removed old SetupDeployKey2 function * Fixed lint issue * Fixed install unit tests * Fixed manifests unit tests * Fixed auth unit tests * Removed targetName field as it wasn't used * Fixed auth unit tests * Organize imports on install command * Fixed parameters on install/cmd.go Co-authored-by: Jordan Pellizzari <jordan@weave.works>
- Loading branch information