Comments (3)
I was thinking about making the region
optional, and use the GetBucketLocation() minio client call to figure it out.
But it seems that isn't working either. I was trying to get the bucket location with:
- aws cli
- a small go program using mini-go
aws cli returns the correct location, even when talking to the wrong endpoint, while the mini-go client
responds wrongly with the same region as the endpoint is:
$ AWS_DEFAULT_REGION=eu-west-1 aws s3api get-bucket-location --bucket $BUCKET
{
"LocationConstraint": "eu-central-1"
}
$ go run main.go
location: eu-west-1
Here is my minio-go tester code:
package main
import (
"fmt"
"os"
"github.com/minio/minio-go/v6"
"github.com/minio/minio-go/v6/pkg/credentials"
)
func main() {
client, _ := minio.NewWithOptions("s3.eu-west-1.amazonaws.com", &minio.Options{
Creds: credentials.NewEnvAWS(),
})
bl, _ := client.GetBucketLocation(os.Getenv("BUCKET"))
fmt.Println("location:", bl)
}
from backup-restore-operator.
Hi @lalyos thanks for taking a look into the cause of the bug. We decided to use the minio client because it seems to work for other s3 compatible stores too, whereas there were some problems with using the s3 go client.
from backup-restore-operator.
This issue/PR has been automatically marked as stale because it has not had activity (commit/comment/label) for 60 days. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
from backup-restore-operator.
Related Issues (20)
- Required policy to access bucket? HOT 1
- Impossible to store backups in AWS S3 eu-south-2 (Spain) region HOT 1
- [2.7] Update Wrangler Go Package HOT 6
- Backup not stored to S3: Request Entity Too Large HOT 2
- no kind "Backup" is registered for version "resources.cattle.io/v1" HOT 2
- Avoid restoring system cluster resources HOT 4
- rancher-charts repo doesn't have latest version? HOT 4
- Add initial Renovate configuration HOT 5
- Add Hull coverage to Rancher Backups HOT 1
- Add prometheus metrics to backups HOT 2
- restore is not working: Error restoring CRDs restoreCRDs: restoreResource: err creating resource the server could not find the requested resource HOT 2
- Issues with restoring rancher.cattle.io resources, cannot update userName for creator-cluster-owner HOT 1
- Unable to perform a restore when Rancher resides in an AKS cluster with a imported generic cluster HOT 2
- Backup fails due to retention enforcement on a versioned AWS S3 bucket.
- test issue HOT 1
- Restoring rancher mgr from minio/s3 backup results in "creatorID annotation cannot be changed" for vsphere downstream HOT 8
- Migration from k3s local cluster to rke2 breaks with config restore HOT 4
- [Feature Request] Restore Resource Patches
- Kubernetes 1.28 support for Backup/Restore Operator HOT 1
- Kubernetes 1.29 support for Backup/Restore Operator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backup-restore-operator.