-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[kots]: add storage to preflight checks #9939
Conversation
a11fb2e
to
1fccdca
Compare
/werft run no-preview publish-to-kots 👍 started the job as gitpod-build-sje-kots-storage-check.6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Putting this on hold for now until we handled my comments in #9759.
9271a07
to
5f69faf
Compare
1fccdca
to
f2aec10
Compare
/werft run no-preview publish-to-kots 👍 started the job as gitpod-build-sje-kots-storage-check.8 |
This checks the connection is correct, based upon the configuration given.
f2aec10
to
4db0500
Compare
/werft run no-preview publish-to-kots 👍 started the job as gitpod-build-sje-kots-storage-check.10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this and the changes look good!
Description
Add a storage check to the KOTS preflight checks. This validates that the given configuration is able to create a bucket, upload a file, download a file and then delete the bucket. The bucket names include two randomly generated strings to avoid global name collisions. This checks against Azure, GCP and S3.
In-cluster connections always return as valid
Arguably, it may look a little strange how I've done the test. As the test is for the connection to be valid and we use the commands, I took the view that testing that it's able to fulfil the required requests was a good idea as there's no "are these credentials valid?" command. I'm open to a discussion on a better way if you can think of one
NB Azure doesn't test the region because this is defined on the storage account and the access key/secret are generated within the storage account.
Related Issue(s)
Fixes #9933
How to test
Install with KOTS - the version to use is
sje-kots-storage-check.10
insje/kots-storage-check
channelRelease Notes
Documentation