* Fixing the build failures from a missing GCS Key
Accidentally introduced in https://github.com/gomods/athens/pull/1428
* Adding a TODO to the drone build
* adding a step to test the Athens server startup
* Adding the JSONKey back to the default config
* use temporary image
* Switching back to the old env var for the GCS JSON Key
cc/ @marwan-at-work
* removing the ServiceAccount. we want to stick with JSONKey
* reverting to original key fetching code
* fixing build err
* bumping chart ver
* Add GCS to helm chart
* base64 encode serviceAccount in the chart
* Standardize GCP Service Account references
* pipe storage.gcp.serviceAccount to quote
* Unescape key before attempting to split module and version
* PathUnescape key in minio/lister
* use unescaped path for module
* Compare againse escaped key
* Exctract common key parsing from cataloger and lister
* Add working image for minio
Between RELEASE.2019-09-26T19-42-35Z and RELEASE.2019-10-02T21-19-38Z
there's an issue with continuation tokens that's caused #1414 and #1413
to fail.
Signed-off-by: Chris M <me@christophermills.co.uk>
* Undo docker changes, update minio to v6
* Narrow issue down to catalog compliance test
Signed-off-by: Chris M <me@christophermills.co.uk>
* fix ignoring error
* fix operator
* fix minio error handling
* fix get url to return error if failed parsing
* add error handling
* position of statement to get redirect url was wrong.
* Updated mongo init to use db name env variable.
* Updated mongo init to use coll name env var.
* Fixed merge conflict.
* Updated formatting in mongo_test.
* Updates to mongo getter.
- Consolidated duplicate code in getter.Info and getter.GoMod functions.
- Due to consolidation, removed ptr to 'result' in getter.Info.
* Updates to getter.go.
Added tracing back into Info and GoMod functions.
Made query a private function.
* Changed mongo.go to use new driver
* Modified mongo cataloger
* More new driver related changes
* Change lister.go
* Change saver.go
* Change imports
* Remove unnecessary Count query
* Use IndexView for indexing
* Rename ModuleStore fields
* Use map of key:sorting-order for creating the index
* Minor changes
* Use client options to configure mongo client
* Use method chaining
* gofmt changes
* Change imports
* Fix some build errors
* Use new GridFS API
* Fix more build errors
* Add Go Mongo driver to dependency modules
* Use multierror
* Leave download stream open
* Remove mgo error handling
* Copy zip instead of loading all in memory
* Use context.WithTimeout() wherever possible
* Raise KindNotFound when mod@ver isn't found
* NopCloser not needed
* Fix IndexView error
* Fix build errors
* Remove another mgo error usage
* Fix build error
* Changes according to review
* Formatting changes as per gofmt
* Modify gofmt argument to show the expected formatting (diff)
* Handle ErrNoDocument error and error arising from query execution
* Fix kind of returned error
* Minor changes
* Bug fixes
* gofmt related changes
* Minor change
* Use Insecure from MongoConfig, remove Insecure from global Config
* Remove stray print statement
* Allow mgo.ParseURL to set [/database]
As per Michael's solution we need to be able to set the database from
either the parsed connection string, or fallback to athens if not set.
Signed-off-by: Chris M <me@christophermills.co.uk>
* Remove TimeoutDuration which was removed #928
Signed-off-by: Chris M <me@christophermills.co.uk>
* Correct conf_test to accommodate for changes
I'd missed out the addition of DefaultDBName from the test, this has now
been corrected
Signed-off-by: Chris M <me@christophermills.co.uk>
* Make sure gofmt runs automatically on this machine
Y'know simple stuff.
Signed-off-by: Chris M <me@christophermills.co.uk>