Add endpoint to ProviderConfig
@@ -106,6 +106,8 @@ func getProviderType(lType crv1alpha1.LocationType) (objectstore.ProviderType, e
func getBucket(ctx context.Context, pType objectstore.ProviderType, profile param.Profile) (objectstore.Bucket, error) {
pc := objectstore.ProviderConfig{
Type: pType,
+ Endpoint: profile.Location.Endpoint,
+ SkipSSLVerify: profile.SkipSSLVerify,
}
secret, err := getOSSecret(pType, profile.Credential)
if err != nil {
