Skip to content

Commit

Permalink
Update profile bucket validation code to account for custom s3 endpoi…
Browse files Browse the repository at this point in the history
…nt (#1631)

Signed-off-by: Ivan Sim <ivan.sim@kasten.io>

Signed-off-by: Ivan Sim <ivan.sim@kasten.io>
  • Loading branch information
ihcsim committed Sep 14, 2022
1 parent 9f8d11a commit 7f9742f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ func ProfileBucket(ctx context.Context, p *crv1alpha1.Profile, cli kubernetes.In
Type: pType,
Region: p.Location.Region,
}

if p.Location.Endpoint != "" {
pc.Endpoint = p.Location.Endpoint
}

secret, err := osSecretFromProfile(ctx, pType, p, cli)
if err != nil {
return err
Expand Down

0 comments on commit 7f9742f

Please sign in to comment.