-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Ability to install an HCP self-managed cluster (#8)
* Add global.cloud to values.yaml * Map global.cloud.secreeName to environment variables and hcl in command for server container. * Adding cloud preset and validation for it. * add parsing gnm response to struct. * Added functionality and unit tests for SaveSecretsFromBootstrapConfig() * Added functionality and unit tests for GetHelmConfigWithMapSecretNames * Added functionality and unit tests for FetchAgentBootstrapConfig() * Rename cloud_preset_installer to cloud_preset_helper * hooked preset installer helper to install command. have unit test that works like acceptance test. passing. * changing code to work with the certs that get generated from HCP. affects setting -tls-server-name on get-auto-encrypt-client-ca, server-acl-init, and the acl-init init containers for clients. * Adding CLI Output changes. * Moving and consolidating cloud preset files * Moved preset templates to implementations of a Preset interface * removing upgrade tests * change context.TODO() to context.Background() * docstrings * fixing description for preset flag to properly show the list ofvalid presets. * Renaming coud_prset.go to cloud_set.go * refactor out common logic from the local getPreset functions in install and uninstall commands. * upgrade helm and k8s deps related to customize error. * refactor to use hcp-sdk * removing unused vars * updated based on latest specs. * Refactor usage of sdk client so that it properly picks up environment variables and starts oauth flow. * Make proper use of the resourceid to supply the BootstrapParams. Add the ability to pass in an http client to the install command and the CloudPreset so that TLS can be used with httptest mock server since tls is enforced for the oauth request in the hcp-sdk. * updated to latest hcp-sdk-go-internal version * include HCP_AUTH_URL and HCP_API_HOST in configuring server-statefulset * Adding comment to server-statefulset and commenting out test * update comment to correct hcp-go-sdk * update bats test comments for -tls-server-name * get rid of cli lint error * removing manual test * Apply suggestions from code review Co-authored-by: Kyle Schochenmaier <kschoche@gmail.com> * updating new secrets to not have quotes. using os.Unsetenv in tests * adding global.cloud.enabled * adding space in values.yaml * Apply suggestions from code review Co-authored-by: Iryna Shustava <ishustava@users.noreply.github.com> Co-authored-by: Kyle Schochenmaier <kschoche@gmail.com> * fixing test in install_test.go to have cleaner simpler logic around expecting errors. * update function comments in cloud_preset.go * updated conditional logic on server-statefulset.yaml to also look for cloud secret name in addition to cloud enabled when setting the cloud stanza * updated getDeepyCopyOfValidBootstrapConfig() to get DeepCopy.... * removing unused test logic Co-authored-by: Kyle Schochenmaier <kschoche@gmail.com> Co-authored-by: Iryna Shustava <ishustava@users.noreply.github.com>
- Loading branch information
1 parent
ffcd208
commit a2ffcb1
Showing
39 changed files
with
2,367 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.